Update TeX packages

svn path=/nixpkgs/trunk/; revision=19926
This commit is contained in:
Michael Raskin 2010-02-11 09:45:07 +00:00
parent f71d6f9f91
commit 76328b76b7
4 changed files with 34 additions and 21 deletions

View file

@ -9,7 +9,7 @@ rec {
for currentPath in ${lib.concatStringsSep " " buildInputs}; do for currentPath in ${lib.concatStringsSep " " buildInputs}; do
echo Symlinking "$currentPath" echo Symlinking "$currentPath"
find $currentPath/share ! -type d | while read; do find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*) ! -type d | while read; do
REPLY="''${REPLY#$currentPath}" REPLY="''${REPLY#$currentPath}"
ensureDir $out/"$(dirname "$REPLY")" ensureDir $out/"$(dirname "$REPLY")"
ln -fs $currentPath/"$REPLY" $out/"$REPLY" ln -fs $currentPath/"$REPLY" $out/"$REPLY"
@ -20,10 +20,12 @@ rec {
cp -Trfp $currentPath/libexec $out/libexec || true cp -Trfp $currentPath/libexec $out/libexec || true
done done
rm -r $out/share/texmf-config ln -s $out/texmf* $out/share/
find $out/share/texmf -type d | while read; do
REPLY="''${REPLY#$out/share/texmf}" rm -r $out/texmf-config
ensureDir $out/share/texmf-config/"$REPLY" find $out/texmf/ -type d | while read; do
REPLY="''${REPLY#$out/texmf}"
ensureDir $out/texmf-config/"$REPLY"
done done
ensureDir $out/bin ensureDir $out/bin
@ -32,15 +34,15 @@ rec {
chmod a+x $out/bin/$(basename $i) chmod a+x $out/bin/$(basename $i)
done done
rm $out/share/texmf*/ls-R rm $out/texmf*/ls-R
for i in web2c texconfig fonts/map; do for i in web2c texconfig fonts/map; do
cp -r $out/share/texmf/$i/* $out/share/texmf-config/$i || true cp -r $out/texmf/$i/* $out/texmf-config/$i || true
done done
TEXMFCONFIG=$out/share/texmf-config HOME=$PWD PATH=$PATH:$out/bin updmap --syncwithtrees TEXMFCONFIG=$out/texmf-config HOME=$PWD PATH=$PATH:$out/bin updmap --syncwithtrees
PATH=$PATH:$out/bin mktexlsr $out/share/texmf* PATH=$PATH:$out/bin mktexlsr $out/texmf*
TEXMFCONFIG=$out/share/texmf-config HOME=$PWD PATH=$PATH:$out/bin updmap --syncwithtrees TEXMFCONFIG=$out/texmf-config HOME=$PWD PATH=$PATH:$out/bin updmap --syncwithtrees
PATH=$PATH:$out/bin mktexlsr $out/share/texmf* PATH=$PATH:$out/bin mktexlsr $out/texmf*
'') ["minInit" "defEnsureDir" "addInputs"]; '') ["minInit" "defEnsureDir" "addInputs"];
meta = { meta = {

View file

@ -1,9 +1,9 @@
args: with args; args: with args;
rec { rec {
name = "texlive-cm-super-2007"; name = "texlive-cm-super-2009";
src = fetchurl { src = fetchurl {
url = mirror://debian/pool/main/c/cm-super/cm-super_0.3.3.orig.tar.gz; url = mirror://debian/pool/main/c/cm-super/cm-super_0.3.4.orig.tar.gz;
sha256 = "1lxvnhqds2zi6ssz66r1b7s6p855lab7cgp0hdg247zkacbjxcfg"; sha256 = "0zrq4sr9ank35svkz3cfd7f978i9c8xbzdqm2c8kvxia2753v082";
}; };
phaseNames = ["doCopy"]; phaseNames = ["doCopy"];
@ -18,10 +18,16 @@ rec {
cp dvips/*.map $out/share/texmf/fonts/map cp dvips/*.map $out/share/texmf/fonts/map
ensureDir $out/share/texmf/dvipdfm/config ensureDir $out/share/texmf/dvipdfm/config
cp dvipdfm/*.map $out/share/texmf/dvipdfm/config cp dvipdfm/*.map $out/share/texmf/dvipdfm/config
ln -s $out/share/texmf* $out/
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"]; '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
buildInputs = [texLive]; buildInputs = [texLive];
meta = { meta = {
description = "Extra components for TeXLive: CM-Super fonts"; description = "Extra components for TeXLive: CM-Super fonts";
maintainers = [ args.lib.maintainers.raskin ];
# Actually, arch-independent..
platforms = [] ;
}; };
} }

View file

@ -1,9 +1,9 @@
args: with args; args: with args;
rec { rec {
name = "context-2008.01.28"; name = "context-2009.11.26";
src = fetchurl { src = fetchurl {
url = http://ftp.de.debian.org/debian/pool/main/c/context/context_2008.01.28.orig.tar.gz; url = mirror://debian/pool/main/c/context/context_2009.11.26.orig.tar.gz;
sha256 = "0infkn73v3kwqgg6b7rqnr28i5z5dbdfapy6ppzlcnr19yj4nh9y"; sha256 = "1qv3h97cyhjyvivs30fz9bqr77j348azagm7ijiyfrclvjjlwav9";
}; };
buildInputs = [texLive]; buildInputs = [texLive];

View file

@ -1,19 +1,24 @@
args: with args; args: with args;
rec { rec {
name = "texlive-extra-2007"; name = "texlive-extra-2009";
src = fetchurl { src = fetchurl {
url = mirror://debian/pool/main/t/texlive-extra/texlive-extra_2007.dfsg.17.orig.tar.gz; url = mirror://debian/pool/main/t/texlive-extra/texlive-extra_2009.orig.tar.gz;
sha256 = "093i40616vphyxycdi4z55sd2m0qfjypgprm7v182mgf55i2hpzc"; sha256 = "04k48lxy76bad1270gb9k4aza2q13can2dbcf2hj0a3byls099kp";
}; };
buildInputs = [texLive]; buildInputs = [texLive];
phaseNames = ["doCopy"]; phaseNames = ["doCopy"];
doCopy = fullDepEntry ('' doCopy = fullDepEntry (''
ensureDir $out/share ensureDir $out/share
cp -r texmf* $out/share/ cp -r texmf* $out/
ln -s $out/texmf* $out/share
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"]; '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
meta = { meta = {
description = "Extra components for TeXLive"; description = "Extra components for TeXLive";
maintainers = [ args.lib.maintainers.raskin ];
# Actually, arch-independent..
platforms = [] ;
}; };
} }