# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description TeX Live common infrastructure.
long_description This port provides files that support a MacPorts \
installation of TeX Live, such as configuration \
files and the scripts that generate them.
homepage http://www.tug.org/texlive/
master_sites http://flute.csail.mit.edu/texlive/
checksums rmd160 ebb014281c37d2fab37fb464a9739b7fb48b5478 \
sha256 3a428bdbb8e82aa2281fcba64afcccff21ef30e6ff3bd6d96621c7b0b355c610
livecheck.url ${master_sites}
livecheck.regex ${name}-(\[\\d-\]+)\\.tar
foreach x {texmf.cnf.d/10paths.cnf texmfcnf.lua 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}
reinplace "s|@@TEXMFHOME@@|${texlive_texmfhome}|g" ${worksrcpath}/${x}
reinplace "s|@@TEXLIVE_BINDIR@@|${texlive_bindir}|g" ${worksrcpath}/${x}
set texmfdirs [list ${texlive_texmfmain} \
${texlive_texmfsysconfig}]
# Create texmf directories
foreach texmfdir $texmfdirs {
xinstall -d ${destroot}${texmfdir}
# Create empty ls-R files so that they're marked as owned by this