3
0
Fork 0
forked from mirrors/nixpkgs

pkgs/development/tools/build-managers/scons: cosmetic build improvements

- The flag "--mandir" has no effect with setup.py. Instead, "--install-data"
   must be used.

 - Don't generate wrappers for trivial symlink aliases in bin.

 - Prefer symlinks over hard-links.

 - The dependencies of this expression don't need to be propagated.

svn path=/nixpkgs/trunk/; revision=25021
This commit is contained in:
Peter Simons 2010-12-07 11:41:25 +00:00
parent 04ec671c8a
commit baa9150130

View file

@ -13,16 +13,15 @@ stdenv.mkDerivation {
sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a";
};
buildInputs = [python makeWrapper];
preConfigure = ''
configureFlags="--mandir=$out/share/man"
for i in "script/"*; do
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
done
'';
propagatedBuildInputs = [python makeWrapper];
buildPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) --hardlink-scons -O1";
installPhase = "for n in $out/bin/*; do wrapProgram $n --suffix PYTHONPATH ':' \"$(toPythonPath $out)\"; done";
buildPhase = "python setup.py install --prefix=$out --install-data=$out/share --install-lib=$(toPythonPath $out) --symlink-scons -O1";
installPhase = "for n in $out/bin/*-${version}; do wrapProgram $n --suffix PYTHONPATH ':' \"$(toPythonPath $out)\"; done";
meta = {
homepage = "http://scons.org/";