pkgs/tools/text/replace: move --mandir to standard location $out/share/man

Also, fixed the type of $makeFlags, which is a string, not a list.

svn path=/nixpkgs/branches/stdenv-updates/; revision=25006
This commit is contained in:
Peter Simons 2010-12-06 17:43:57 +00:00
parent 09bcba17f5
commit 475cbea101

View File

@ -8,12 +8,13 @@ stdenv.mkDerivation {
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
};
makeFlags = ["TREE=\$(out)"];
makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man";
crossAttrs = {
makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ];
makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man CC=${stdenv.cross.config}-gcc";
};
preInstall = "ensureDir \$out/share/man";
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
patches = [./malloc.patch];