diff options
author | Peter Simons <simons@cryp.to> | 2011-12-24 18:03:51 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2011-12-24 18:03:51 +0000 |
commit | a4a5a35f2d30e158cfd05ad6e859cdb222dfbf0a (patch) | |
tree | a5ae61272e4b900e6ba306e9bff32472aaec3702 /pkgs/tools/graphics | |
parent | f13c4dba3d4119dfaf278100631454c15d04a2d5 (diff) |
asymptote: added fixInfoDir hook to move the generated info files into the correct location
svn path=/nixpkgs/trunk/; revision=31059
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/asymptote/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 303fc08687459..e49b5a45cab12 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/ |