Ignore:
Timestamp:
Aug 8, 2011, 6:23:42 AM (8 years ago)
Author:
dports@…
Message:

Update texlive ports to 2011 versions
[merge from /users/dports to trunk]

Major port changes this year include:

  • ConTeXt MkIV support: install texmfcnf.lua config file with the appropriate search paths; set the search path so that context knows how to find that file; keep the luatex cache (equivalent of ls-R) up to date
  • generate language.dat.lua for LuaTeX hyphenation with appropriate lua-specific option
  • move user-local texmf tree to ~/Library/texmf for MacTeX compatibility
  • add texlive.mktexlsr and texlive.use_mktexlsr commands to the portgroup
  • split distfiles into three pieces so that documentation and source do not need to be downloaded if they are not going to be installed (i.e. if +doc or +src variants not selected)
  • use a stripped source distfile for texlive-bin that does not contain the parts we don't build
  • fix symlinks ("texlinks") for generated formats; do not install ones that are not requested, and make sure those that are installed point to the right place
  • simplify variants for texlive-bin
  • and lots of things I'm forgetting
Location:
trunk/dports/tex/texlive-common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/texlive-common

  • trunk/dports/tex/texlive-common/Portfile

    r79385 r82097  
    66
    77name                texlive-common
    8 version             2010
    9 revision            1
     8version             2011
    109
    1110categories          tex
     
    1918platforms           darwin
    2019supported_archs     noarch
     20license             Permissive
    2121
    2222master_sites        http://flute.csail.mit.edu/texlive/
    2323worksrcdir          ${distname}
    2424use_xz              yes
    25 checksums           sha1     4bbab1829c4218b51e00eb07d7bd741cf29fce55 \
    26                     rmd160   fc20939680399ec60e2ff80c312f994f975cfd83
     25
     26checksums           rmd160  ebb014281c37d2fab37fb464a9739b7fb48b5478 \
     27                    sha256  3a428bdbb8e82aa2281fcba64afcccff21ef30e6ff3bd6d96621c7b0b355c610
    2728
    2829livecheck.type  regex
     
    3031livecheck.regex ${name}-(\[\\d-\]+)\\.tar
    3132
    32 
    3333post-patch {
    34     foreach x {texmf.cnf.d/10paths.cnf texlive-update-cnf} {
     34    foreach x {texmf.cnf.d/10paths.cnf texmfcnf.lua texlive-update-cnf} {
    3535        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/${x}
    3636        reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|g" ${worksrcpath}/${x}
     
    4040        reinplace "s|@@TEXMFSYSVAR@@|${texlive_texmfsysvar}|g" ${worksrcpath}/${x}
    4141        reinplace "s|@@TEXMFSYSCONFIG@@|${texlive_texmfsysconfig}|g" ${worksrcpath}/${x}
     42        reinplace "s|@@TEXMFHOME@@|${texlive_texmfhome}|g" ${worksrcpath}/${x}
     43        reinplace "s|@@TEXLIVE_BINDIR@@|${texlive_bindir}|g" ${worksrcpath}/${x}
    4244    }
    4345}
     
    7779    xinstall -m 644 ${worksrcpath}/language.us.def \
    7880        ${destroot}${texlive_texmfsysconfig}/language.d/00language.us.def
     81    xinstall -m 644 ${worksrcpath}/language.us.lua \
     82        ${destroot}${texlive_texmfsysconfig}/language.d/00language.us.lua
    7983    xinstall -d ${destroot}${texlive_texmfsysvar}/web2c
    8084    touch ${destroot}${texlive_texmfsysvar}/web2c/updmap.cfg
     
    8286    xinstall -d ${destroot}${texlive_texmfsysvar}/tex/generic/config
    8387    touch ${destroot}${texlive_texmfsysvar}/tex/generic/config/language.dat
     88    touch ${destroot}${texlive_texmfsysvar}/tex/generic/config/language.def
     89    touch ${destroot}${texlive_texmfsysvar}/tex/generic/config/language.dat.lua
    8490    xinstall -m 755 ${worksrcpath}/texlive-update-cnf \
    8591        ${destroot}${prefix}/libexec/texlive-update-cnf
     
    98104    ln -s ${texlive_texmfsysconfig}/texmf.cnf \
    99105        ${destroot}${texlive_texmfports}/web2c/texmf.cnf
     106
     107    # Install texmfcnf.lua (for ConTeXt MkIV)
     108    xinstall -m 644 ${worksrcpath}/texmfcnf.lua \
     109        ${destroot}${texlive_texmfsysconfig}/
     110
    100111}
    101112
     
    106117            delete ${texmfdir}/ls-R
    107118        }
     119    }
     120
     121    # An earlier version forgot to register language.def to this port,
     122    # so delete it if it exists to prevent a conflict
     123    if [file exists ${texlive_texmfsysvar}/tex/generic/config/language.def] {
     124        delete ${texlive_texmfsysvar}/tex/generic/config/language.def
    108125    }
    109126
     
    127144    system "${prefix}/libexec/texlive-update-cnf language.dat"
    128145    system "${prefix}/libexec/texlive-update-cnf language.def"
     146    system "${prefix}/libexec/texlive-update-cnf language.dat.lua"
    129147    system "${prefix}/libexec/texlive-update-cnf updmap.cfg"
    130148
     
    132150    # installation)
    133151    if [file exists ${prefix}/bin/mktexlsr] {
    134         system "${prefix}/bin/mktexlsr"
     152        texlive.mktexlsr
    135153    }
    136154}
Note: See TracChangeset for help on using the changeset viewer.