From a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 24 Dec 2011 18:03:51 +0000 Subject: [PATCH] asymptote: added fixInfoDir hook to move the generated info files into the correct location svn path=/nixpkgs/trunk/; revision=31059 --- pkgs/tools/graphics/asymptote/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 303fc086874..e49b5a45cab 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -23,9 +23,10 @@ rec { configureFlags = []; /* doConfigure should be removed if not needed */ - phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex" - "doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult"]; - + phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex" + "doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult" + "fixInfoDir"]; + setVars = a.noDepEntry '' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.boehmgc}/include/gc" export HOME="$PWD" @@ -38,6 +39,12 @@ rec { fixPaths = a.doPatchShebangs ''.''; fixPathsResult = a.doPatchShebangs ''$out/bin''; + fixInfoDir = a.noDepEntry '' + mv -v "$out/share/info/asymptote/"*.info $out/share/info/ + rmdir $out/share/info/asymptote + rm $out/share/info/dir + ''; + extractTexinfoTex = a.fullDepEntry '' lzma -d < ${a.texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex cp texinfo-*/doc/texinfo.tex doc/