3
0
Fork 0
forked from mirrors/nixpkgs

TeXLive: attempt to pre-build format files.

svn path=/nixpkgs/trunk/; revision=20473
This commit is contained in:
Ludovic Courtès 2010-03-08 10:40:05 +00:00
parent 8863a06fff
commit 9502391275

View file

@ -46,15 +46,19 @@ rec {
doPostInstall = fullDepEntry(''
mv $out/bin $out/libexec
ensureDir $out/bin
for i in $out/libexec/*/*; do
for i in "$out/libexec/"*"/"*; do
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i)
chmod a+x $out/bin/$(basename $i)
done
[ -d $out/texmf-config ] || ln -s $out/texmf $out/texmf-config
ln -s $out/*texmf* $out/share/
ln -s "$out/"*texmf* "$out/share/"
sed -e 's/.*pyhyph.*/=&/' -i $out/texmf-config/tex/generic/config/language.dat
# Prebuild the format files, as it used to be done with TeXLive 2007.
ensureDir "$out/texmf-var/web2c"
PATH="$PATH:$out/bin" mktexfmt --fmtdir="$out/texmf-var/web2c" --all
PATH=$PATH:$out/bin mktexlsr $out/texmf*
HOME=. PATH=$PATH:$out/bin updmap-sys --syncwithtrees