* 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,10 +1,16 @@
buildinputs="$python $wxPython" buildInputs="$python $wxPython"
. $stdenv/setup . $stdenv/setup
tar xvfz $src buildPhase=buildPhase
cd BitTorrent-* buildPhase() {
python setup.py build install --prefix=$out python setup.py build
}
installPhase=installPhase
installPhase() {
python setup.py install --prefix=$out
# Create wrappers that set the environment correctly.
mv $out/bin $out/bin-orig mv $out/bin $out/bin-orig
mkdir $out/bin mkdir $out/bin
for i in $(cd $out/bin-orig && ls); do for i in $(cd $out/bin-orig && ls); do
@ -14,3 +20,6 @@ PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-package
EOF EOF
chmod +x $out/bin/$i chmod +x $out/bin/$i
done done
}
genericBuild

View File

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