2004-08-13 12:11:11 +02:00
|
|
|
buildInputs="$python $wxPython"
|
2004-02-17 21:03:12 +01:00
|
|
|
. $stdenv/setup
|
|
|
|
|
2004-08-13 12:11:11 +02:00
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
python setup.py build
|
|
|
|
}
|
2004-02-17 21:03:12 +01:00
|
|
|
|
2004-08-13 12:11:11 +02:00
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
|
|
|
python setup.py install --prefix=$out
|
|
|
|
|
|
|
|
# Create wrappers that set the environment correctly.
|
|
|
|
mv $out/bin $out/bin-orig
|
|
|
|
mkdir $out/bin
|
|
|
|
for i in $(cd $out/bin-orig && ls); do
|
|
|
|
cat > $out/bin/$i <<EOF
|
2004-02-17 21:03:12 +01:00
|
|
|
#! /bin/sh
|
2004-04-01 00:47:06 +02:00
|
|
|
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
|
2004-02-17 21:03:12 +01:00
|
|
|
EOF
|
2004-08-13 12:11:11 +02:00
|
|
|
chmod +x $out/bin/$i
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|