Revision: 72895 http://trac.macports.org/changeset/72895 Author: dports@macports.org Date: 2010-10-29 14:05:20 -0700 (Fri, 29 Oct 2010) Log Message: ----------- texlive-common 2010: * update texmf.cnf to that for texlive 2010 * build texmf.cnf from the contents of $prefix/etc/texmf/texmf.cnf.d (see #24204) * separate $texlive_texmfports and $texlive_texmflocal * run mktexlsr in post-activate hook Modified Paths: -------------- users/dports/ports/tex/texlive-common/Portfile Modified: users/dports/ports/tex/texlive-common/Portfile =================================================================== --- users/dports/ports/tex/texlive-common/Portfile 2010-10-29 21:02:04 UTC (rev 72894) +++ users/dports/ports/tex/texlive-common/Portfile 2010-10-29 21:05:20 UTC (rev 72895) @@ -5,8 +5,7 @@ PortGroup texlive 1.0 name texlive-common -version 2009 -revision 1 +version 2010 categories tex maintainers dports @@ -21,20 +20,21 @@ master_sites http://flute.csail.mit.edu/texlive/ worksrcdir ${distname} -use_bzip2 yes -checksums md5 8f2f1f88a2c7944204e2c2c09becaa03 \ - sha1 4b6052734c78aff3cbfed303b78dea0d67f3a685 \ - rmd160 48c92d5a815587034691446c0e9f93a7a5fabf6d +use_xz yes +checksums sha1 90e5ce4e291dbae2b8bce8086c82e224218bbd85 \ + rmd160 a9aca77e6552d6e353146923e301e29d2e83e1a0 livecheck.type regex livecheck.url ${master_sites} -livecheck.regex ${name}-(\[\\d-\]+)\\.tar\\.bz2 +livecheck.regex ${name}-(\[\\d-\]+)\\.tar post-patch { - foreach x {texmf.cnf texlive-update-cnf} { + foreach x {texmf.cnf.d/10paths.cnf texlive-update-cnf} { + reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFMAIN@@|${texlive_texmfmain}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFDIST@@|${texlive_texmfdist}|g" ${worksrcpath}/${x} + reinplace "s|@@TEXMFPORTS@@|${texlive_texmfports}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFLOCAL@@|${texlive_texmflocal}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFSYSVAR@@|${texlive_texmfsysvar}|g" ${worksrcpath}/${x} reinplace "s|@@TEXMFSYSCONFIG@@|${texlive_texmfsysconfig}|g" ${worksrcpath}/${x} @@ -49,6 +49,7 @@ # Create texmf directories xinstall -d ${destroot}${texlive_texmfmain} xinstall -d ${destroot}${texlive_texmfdist} + xinstall -d ${destroot}${texlive_texmfports} xinstall -d ${destroot}${texlive_texmflocal} xinstall -d ${destroot}${texlive_texmfsysvar} xinstall -d ${destroot}${texlive_texmfsysconfig} @@ -57,17 +58,11 @@ # port. The contents will be generated/updated by mktexlsr. touch ${destroot}${texlive_texmfmain}/ls-R touch ${destroot}${texlive_texmfdist}/ls-R + touch ${destroot}${texlive_texmfports}/ls-R touch ${destroot}${texlive_texmflocal}/ls-R touch ${destroot}${texlive_texmfsysvar}/ls-R touch ${destroot}${texlive_texmfsysconfig}/ls-R - # Install texmf.cnf and symlink to its usual expected location - xinstall -d ${destroot}${texlive_texmflocal}/web2c - xinstall -m 644 ${worksrcpath}/texmf.cnf \ - ${destroot}${texlive_texmfsysconfig}/texmf.cnf - ln -s ${texlive_texmfsysconfig}/texmf.cnf \ - ${destroot}${texlive_texmflocal}/web2c/texmf.cnf - # Create fmt/updmap/hyphen files, directories, and install update script xinstall -d ${destroot}${texlive_texmfsysconfig}/fmtutil.d xinstall -d ${destroot}${texlive_texmfsysconfig}/language.d @@ -87,6 +82,20 @@ touch ${destroot}${texlive_texmfsysvar}/tex/generic/config/language.dat xinstall -m 755 ${worksrcpath}/texlive-update-cnf \ ${destroot}${prefix}/libexec/texlive-update-cnf + + # Install texmf.cnf files + touch ${destroot}${texlive_texmfsysconfig}/texmf.cnf + xinstall -d ${destroot}${texlive_texmfsysconfig}/texmf.cnf.d + foreach cnffile [glob -directory ${worksrcpath}/texmf.cnf.d *.cnf] { + xinstall -m 644 $cnffile \ + ${destroot}${texlive_texmfsysconfig}/texmf.cnf.d/ + } + + # Symlink texmf.cnf to its usual expected location, just in case + # anything tries to look for it there + xinstall -d ${destroot}${texlive_texmflocal}/web2c + ln -s ${texlive_texmfsysconfig}/texmf.cnf \ + ${destroot}${texlive_texmflocal}/web2c/texmf.cnf } pre-activate { @@ -106,8 +115,15 @@ } post-activate { + system "${prefix}/libexec/texlive-update-cnf texmf.cnf" system "${prefix}/libexec/texlive-update-cnf fmtutil.cnf" system "${prefix}/libexec/texlive-update-cnf language.dat" system "${prefix}/libexec/texlive-update-cnf language.def" system "${prefix}/libexec/texlive-update-cnf updmap.cfg" + + # run mktexlsr if it exists (i.e. if we are upgrading an existing + # installation) + if [file exists ${prefix}/bin/mktexlsr] { + system "${prefix}/bin/mktexlsr" + } }
participants (1)
-
dports@macports.org