mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 12:44:20 +00:00
asymptote: added fixInfoDir hook to move the generated info files into the correct location
svn path=/nixpkgs/trunk/; revision=31059
This commit is contained in:
parent
f13c4dba3d
commit
a4a5a35f2d
@ -23,9 +23,10 @@ rec {
|
|||||||
configureFlags = [];
|
configureFlags = [];
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
/* doConfigure should be removed if not needed */
|
||||||
phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex"
|
phaseNames = ["setVars" "doUnpack" "fixPaths" "extractTexinfoTex"
|
||||||
"doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult"];
|
"doConfigure" "dumpRealVars" "doMakeInstall" "fixPathsResult"
|
||||||
|
"fixInfoDir"];
|
||||||
|
|
||||||
setVars = a.noDepEntry ''
|
setVars = a.noDepEntry ''
|
||||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.boehmgc}/include/gc"
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${a.boehmgc}/include/gc"
|
||||||
export HOME="$PWD"
|
export HOME="$PWD"
|
||||||
@ -38,6 +39,12 @@ rec {
|
|||||||
fixPaths = a.doPatchShebangs ''.'';
|
fixPaths = a.doPatchShebangs ''.'';
|
||||||
fixPathsResult = a.doPatchShebangs ''$out/bin'';
|
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 ''
|
extractTexinfoTex = a.fullDepEntry ''
|
||||||
lzma -d < ${a.texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
|
lzma -d < ${a.texinfo.src} | tar --wildcards -x texinfo-'*'/doc/texinfo.tex
|
||||||
cp texinfo-*/doc/texinfo.tex doc/
|
cp texinfo-*/doc/texinfo.tex doc/
|
||||||
|
Loading…
Reference in New Issue
Block a user