# -*- 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
maintainers {dports @drkp}
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 https://giraffe.cs.washington.edu/texlive/ \
https://alpaca.cs.washington.edu/texlive/ \
https://www.ambulatoryclam.net/texlive/
checksums rmd160 6fb366c4bddd6b98840d1e852af123ad25ffeafa \
sha256 feef1314f09f5a13db4cb84803e7f879bb31a8ae50fdd8a89fd92ac1e37cb028
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${name}-(\[\\d-\]+(?:\\.\\d+)?)\\.tar
foreach x {texmf.cnf.d/10paths.cnf texmfcnf.lua texlive-update-cnf} {
reinplace -q "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFDIST@@|${texlive_texmfdist}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFPORTS@@|${texlive_texmfports}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFLOCAL@@|${texlive_texmflocal}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFSYSVAR@@|${texlive_texmfsysvar}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFSYSCONFIG@@|${texlive_texmfsysconfig}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXMFHOME@@|${texlive_texmfhome}|g" ${worksrcpath}/${x}
reinplace -q "s|@@TEXLIVE_BINDIR@@|${texlive_bindir}|g" ${worksrcpath}/${x}
set texmfdirs [list ${texlive_texmfdist} \
${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
# port. The contents will be generated/updated by mktexlsr.