* Bittorrent: latest version (3.4.2).

svn path=/nixpkgs/trunk/; revision=1264
This commit is contained in:
Eelco Dolstra 2004-08-13 10:11:11 +00:00
parent 4d7572e261
commit 92fbc10356
2 changed files with 23 additions and 14 deletions

View file

@ -1,16 +1,25 @@
buildinputs="$python $wxPython"
buildInputs="$python $wxPython"
. $stdenv/setup
tar xvfz $src
cd BitTorrent-*
python setup.py build install --prefix=$out
buildPhase=buildPhase
buildPhase() {
python setup.py build
}
mv $out/bin $out/bin-orig
mkdir $out/bin
for i in $(cd $out/bin-orig && ls); do
cat > $out/bin/$i <<EOF
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
#! /bin/sh
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
EOF
chmod +x $out/bin/$i
done
chmod +x $out/bin/$i
done
}
genericBuild

View file

@ -3,12 +3,12 @@
assert wxPython.python.zlibSupport;
stdenv.mkDerivation {
name = "bittorrent-3.3";
name = "bittorrent-3.4.2";
builder = ./builder.sh;
src = fetchurl {
url = http://bitconjurer.org/BitTorrent/BitTorrent-3.3.tar.gz;
md5 = "1ecf1fc40b4972470313f9ae728206e8";
url = http://heanet.dl.sourceforge.net/sourceforge/bittorrent/BitTorrent-3.4.2.tar.gz;
md5 = "b854f25a33289565bcaeaded04955c1a";
};
python = wxPython.python;
inherit wxPython;
inherit (wxPython) python;
}