treewide: use scons setup hook

Lots of packages can use it. Here is the list:

- jackmix
- klick
- mixx
- nova-filters
- rhvoice
- giv
- mypaint
- swift-im
- bombono
- mapnik
- serf
- nuitka
- pyexiv2
- godot
- hammer
- toluapp
- btanks
- dxx-rebirth
- endless-sky
- globulation
- the-powder-toy
- fceux
- gpsd
- mongodb
- rippled
- mariadb
- lprof
This commit is contained in:
Matthew Bauer
2018-11-11 20:52:07 -06:00
parent 1ba9fd335d
commit bfbfe941ab
28 changed files with 149 additions and 260 deletions

View File

@@ -10,13 +10,12 @@ buildPythonPackage rec {
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
};
buildPhase = ''
preBuild = ''
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" src/SConscript
scons
'';
installPhase = ''
preInstall = ''
sed -i -e "s@ python_lib_path = get_python_lib(plat_specific=True)@ python_lib_path = \'/lib/python2.7/site-packages\'@" src/SConscript
scons install DESTDIR=$out
'';
buildInputs = [ python exiv2 scons boost ];