From ecc14afbdacb3b1c1c30a0f3096246f61e162d73 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 23 Feb 2010 19:14:31 +0000 Subject: [PATCH] Roll back the changes to TeXLive. I failed to make Context work, and these changes made the situation worse svn path=/nixpkgs/trunk/; revision=20202 --- pkgs/misc/tex/texlive/aggregate.nix | 23 ++++------------------- pkgs/misc/tex/texlive/context.nix | 11 ----------- pkgs/misc/tex/texlive/default.nix | 12 +++--------- 3 files changed, 7 insertions(+), 39 deletions(-) diff --git a/pkgs/misc/tex/texlive/aggregate.nix b/pkgs/misc/tex/texlive/aggregate.nix index aabdccef93ab..f8e19b0994a2 100644 --- a/pkgs/misc/tex/texlive/aggregate.nix +++ b/pkgs/misc/tex/texlive/aggregate.nix @@ -7,11 +7,9 @@ rec { doAggregate = fullDepEntry ('' - ensureDir $out/libexec - for currentPath in ${lib.concatStringsSep " " buildInputs}; do echo Symlinking "$currentPath" - find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*) ! -type d | while read; do + find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) ! -type d | while read; do REPLY="''${REPLY#$currentPath}" ensureDir $out/"$(dirname "$REPLY")" ln -fs $currentPath/"$REPLY" $out/"$REPLY" @@ -19,18 +17,7 @@ rec { done | while read; do head -n 99 >/dev/null; echo -n .; done echo - find "$currentPath/libexec" -type d | while read; do - REPLY="''${REPLY#$currentPath}" - ensureDir $out/"$REPLY" - done - find "$currentPath/libexec" -type f | while read; do - REPLY="''${REPLY#$currentPath}" - ln -s "$currentPath"/"$REPLY" $out/"$REPLY" - done - find "$currentPath/libexec" -type l | while read; do - REPLY="''${REPLY#$currentPath}" - ln -s "$currentPath"/"$REPLY" $out/"$REPLY" - done + cp -Trfp $currentPath/libexec $out/libexec || true done ln -s $out/texmf* $out/share/ @@ -43,10 +30,8 @@ rec { ensureDir $out/bin for i in $out/libexec/*/*; do - if [ -x $(readlink -f $i) ]; then - echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) - chmod a+x $out/bin/$(basename $i) - fi; + echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) + chmod a+x $out/bin/$(basename $i) done rm $out/texmf*/ls-R diff --git a/pkgs/misc/tex/texlive/context.nix b/pkgs/misc/tex/texlive/context.nix index 2bffc7aaf98d..b502b0f2108a 100644 --- a/pkgs/misc/tex/texlive/context.nix +++ b/pkgs/misc/tex/texlive/context.nix @@ -15,19 +15,8 @@ rec { cp -r * $out/texmf ln -s $out/texmf* $out/share/ - - sysName=$(ls -d ${args.texLive}/libexec/*/ | head -1) - sysName=''${sysName%%/} - sysName=''${sysName##*/} - - ensureDir $out/libexec/$sysName - for i in $out/texmf/scripts/*/*/*; do - ln -s $i $out/libexec/$sysName/$(basename $i) - done '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"]; - - meta = { description = "ConTEXt TeX wrapper"; }; diff --git a/pkgs/misc/tex/texlive/default.nix b/pkgs/misc/tex/texlive/default.nix index e104d7648ba2..50a6e7ab088a 100644 --- a/pkgs/misc/tex/texlive/default.nix +++ b/pkgs/misc/tex/texlive/default.nix @@ -62,12 +62,6 @@ rec { PATH=$PATH:$out/bin mktexlsr $out/texmf* '') ["minInit" "defEnsureDir" "doUnpack" "doMakeInstall"]; - doFixPathsBin = (doPatchShebangs "$out/bin"); - doPreparePathsLibexec = args.fullDepEntry '' - for i in $out/libexec/*/*; do sed -r -e '1s/^#! *([a-z])/#! \/\1/' -i $i || true; done - '' ["minInit" "addInputs"]; - doFixPathsLibexec = (doPatchShebangs "$(echo $out/libexec/*)"); - buildInputs = [ zlib bzip2 ncurses libpng flex bison libX11 libICE xproto freetype t1lib gd libXaw icu ghostscript ed @@ -79,9 +73,9 @@ rec { "--enable-ipc" "--with-mktexfmt" ]; - phaseNames = ["addInputs" "doMainBuild" "doMakeInstall" - "doPostInstall" "doFixPathsBin" "doPreparePathsLibexec" - "doFixPathsLibexec"]; + phaseNames = ["addInputs" (doDump "0") "doMainBuild" + (doDump "1") + "doMakeInstall" "doPostInstall"]; name = "texlive-core-2009"; meta = {