* Bittorrent: latest version (3.4.2).
svn path=/nixpkgs/trunk/; revision=1264
This commit is contained in:
parent
4d7572e261
commit
92fbc10356
@ -1,16 +1,25 @@
|
|||||||
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
|
||||||
|
}
|
||||||
|
|
||||||
mv $out/bin $out/bin-orig
|
installPhase=installPhase
|
||||||
mkdir $out/bin
|
installPhase() {
|
||||||
for i in $(cd $out/bin-orig && ls); do
|
python setup.py install --prefix=$out
|
||||||
cat > $out/bin/$i <<EOF
|
|
||||||
|
# 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
|
#! /bin/sh
|
||||||
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
|
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/$i
|
chmod +x $out/bin/$i
|
||||||
done
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
genericBuild
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user