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:
parent
04ec671c8a
commit
baa9150130
@ -13,16 +13,15 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a";
|
sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [python makeWrapper];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
configureFlags="--mandir=$out/share/man"
|
|
||||||
for i in "script/"*; do
|
for i in "script/"*; do
|
||||||
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
|
substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
buildPhase = "python setup.py install --prefix=$out --install-data=$out/share --install-lib=$(toPythonPath $out) --symlink-scons -O1";
|
||||||
propagatedBuildInputs = [python makeWrapper];
|
installPhase = "for n in $out/bin/*-${version}; do wrapProgram $n --suffix PYTHONPATH ':' \"$(toPythonPath $out)\"; done";
|
||||||
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";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://scons.org/";
|
homepage = "http://scons.org/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user