* BitTorrent 5.0.3.
* wxPython 2.6.3. svn path=/nixpkgs/trunk/; revision=7341
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
source $stdenv/setup
|
||||
source $makeWrapper
|
||||
|
||||
buildPhase=buildPhase
|
||||
buildPhase() {
|
||||
python setup.py build
|
||||
}
|
||||
# Workaround for:
|
||||
# File "...-python-2.4.4/lib/python2.4/posixpath.py", line 62, in join
|
||||
# elif path == '' or path.endswith('/'):
|
||||
# AttributeError: 'NoneType' object has no attribute 'endswith'
|
||||
export HOME=$TMP
|
||||
|
||||
buildPhase="python setup.py build"
|
||||
|
||||
installPhase=installPhase
|
||||
installPhase() {
|
||||
@@ -16,7 +19,7 @@ installPhase() {
|
||||
# so don't move them.
|
||||
mv $out/bin/$i $out/bin/.orig-$i
|
||||
makeWrapper $out/bin/.orig-$i $out/bin/$i \
|
||||
--set PYTHONPATH "$out/lib/python2.4/site-packages:$pygtk/lib/python2.4/site-packages/gtk-2.0"
|
||||
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,23 @@
|
||||
{stdenv, fetchurl, python, pygtk, makeWrapper}:
|
||||
{ gui ? false
|
||||
, stdenv, fetchurl, makeWrapper
|
||||
, python, wxPython ? null, pycrypto, twisted
|
||||
}:
|
||||
|
||||
assert gui -> wxPython != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "bittorrent-5.0.3";
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://download.bittorrent.com/dl/BitTorrent-5.0.3.tar.gz;
|
||||
md5 = "592363a33c35e9f66759a736dbf7e038";
|
||||
};
|
||||
buildInputs = [python pygtk];
|
||||
inherit python pygtk makeWrapper;
|
||||
|
||||
buildInputs = [python pycrypto twisted]
|
||||
++ (if gui then [wxPython] else []);
|
||||
|
||||
inherit makeWrapper;
|
||||
|
||||
meta = {
|
||||
description = "The original client for the BitTorrent peer-to-peer file sharing protocol";
|
||||
|
||||
Reference in New Issue
Block a user