Ignore:
Timestamp:
Nov 10, 2010, 4:19:13 AM (9 years ago)
Author:
dports@…
Message:

Merge texlive 2010 update from /users/dports to /trunk

texlive: update to TeX Live 2010 (#26430)

  • generate texmf.cnf from contents of $prefix/etc/texmf/texmf.cnf.d (#24204)
  • build binaries in texlive-bin but stage them in $prefix/libexec/texlive/binaries until they are activated by other ports when their support files are installed (#25460, #25875)
  • symlink binaries to $prefix/libexec/texlive/texbin for MacTeX support (#26784)
  • fix up some dependency problems, including pulling pgf out of texlive-pictures so texlive-latex-recommended can depend on it (#25478)
  • add pre-activate hooks to deactivate texlive 2009 ports when necessary to avoid conflicts during upgrade
  • remove asymptote and xindy texmf files so that we can have separate ports someday
  • many minor changes to packaging
Location:
trunk/dports/tex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex

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

    r69215 r73314  
    66
    77name                texlive-common
    8 version             2009
    9 revision            1
     8version             2010
    109
    1110categories          tex
     
    2221master_sites        http://flute.csail.mit.edu/texlive/
    2322worksrcdir          ${distname}
    24 use_bzip2           yes
    25 checksums           md5     8f2f1f88a2c7944204e2c2c09becaa03 \
    26                     sha1    4b6052734c78aff3cbfed303b78dea0d67f3a685 \
    27                     rmd160  48c92d5a815587034691446c0e9f93a7a5fabf6d
     23use_xz              yes
     24checksums           sha1     4bbab1829c4218b51e00eb07d7bd741cf29fce55 \
     25                    rmd160   fc20939680399ec60e2ff80c312f994f975cfd83
    2826
    2927livecheck.type  regex
    3028livecheck.url   ${master_sites}
    31 livecheck.regex ${name}-(\[\\d-\]+)\\.tar\\.bz2
     29livecheck.regex ${name}-(\[\\d-\]+)\\.tar
    3230
    3331
    3432post-patch {
    35     foreach x {texmf.cnf texlive-update-cnf} {
     33    foreach x {texmf.cnf.d/10paths.cnf texlive-update-cnf} {
     34        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/${x}
    3635        reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|g" ${worksrcpath}/${x}
    3736        reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|g" ${worksrcpath}/${x}
     37        reinplace "s|@@TEXMFPORTS@@|${texlive_texmfports}|g" ${worksrcpath}/${x}
    3838        reinplace "s|@@TEXMFLOCAL@@|${texlive_texmflocal}|g" ${worksrcpath}/${x}
    3939        reinplace "s|@@TEXMFSYSVAR@@|${texlive_texmfsysvar}|g" ${worksrcpath}/${x}
     
    5050    xinstall -d ${destroot}${texlive_texmfmain}
    5151    xinstall -d ${destroot}${texlive_texmfdist}
     52    xinstall -d ${destroot}${texlive_texmfports}
    5253    xinstall -d ${destroot}${texlive_texmflocal}
    5354    xinstall -d ${destroot}${texlive_texmfsysvar}
     
    5859    touch ${destroot}${texlive_texmfmain}/ls-R
    5960    touch ${destroot}${texlive_texmfdist}/ls-R
     61    touch ${destroot}${texlive_texmfports}/ls-R
    6062    touch ${destroot}${texlive_texmflocal}/ls-R
    6163    touch ${destroot}${texlive_texmfsysvar}/ls-R
    6264    touch ${destroot}${texlive_texmfsysconfig}/ls-R
    63 
    64     # Install texmf.cnf and symlink to its usual expected location
    65     xinstall -d ${destroot}${texlive_texmflocal}/web2c
    66     xinstall -m 644 ${worksrcpath}/texmf.cnf \
    67         ${destroot}${texlive_texmfsysconfig}/texmf.cnf
    68     ln -s ${texlive_texmfsysconfig}/texmf.cnf \
    69         ${destroot}${texlive_texmflocal}/web2c/texmf.cnf
    7065
    7166    # Create fmt/updmap/hyphen files, directories, and install update script
     
    8883    xinstall -m 755 ${worksrcpath}/texlive-update-cnf \
    8984        ${destroot}${prefix}/libexec/texlive-update-cnf
     85
     86    # Install texmf.cnf files
     87    touch ${destroot}${texlive_texmfsysconfig}/texmf.cnf
     88    xinstall -d ${destroot}${texlive_texmfsysconfig}/texmf.cnf.d
     89    foreach cnffile [glob -directory ${worksrcpath}/texmf.cnf.d *.cnf] {
     90        xinstall -m 644 $cnffile \
     91            ${destroot}${texlive_texmfsysconfig}/texmf.cnf.d/
     92    }
     93
     94    # Symlink texmf.cnf to its usual expected location, just in case
     95    # anything tries to look for it there
     96    xinstall -d ${destroot}${texlive_texmflocal}/web2c
     97    ln -s ${texlive_texmfsysconfig}/texmf.cnf \
     98        ${destroot}${texlive_texmflocal}/web2c/texmf.cnf
    9099}
    91100
     
    107116
    108117post-activate {
     118    system "${prefix}/libexec/texlive-update-cnf texmf.cnf"
    109119    system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf"
    110120    system "${prefix}/libexec/texlive-update-cnf language.dat"
    111121    system "${prefix}/libexec/texlive-update-cnf language.def"
    112122    system "${prefix}/libexec/texlive-update-cnf updmap.cfg"
     123
     124    # run mktexlsr if it exists (i.e. if we are upgrading an existing
     125    # installation)
     126    if [file exists ${prefix}/bin/mktexlsr] {
     127        system "${prefix}/bin/mktexlsr"
     128    }
    113129}
Note: See TracChangeset for help on using the changeset viewer.