summaryrefslogtreecommitdiffstats
path: root/extra/twisted/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-27 14:04:37 +0000
committersibel <lesibel@free.fr>2010-12-27 14:04:37 +0000
commit6ad7be461d0f6bae6afb5053676e27b7d660b245 (patch)
tree36108163a1b902a2810b992ac1acd626371ada4c /extra/twisted/Pkgfile
parentef21bb4ede07342c94d6387715dcd3a964f69089 (diff)
downloadnutyx-pakxe-6ad7be461d0f6bae6afb5053676e27b7d660b245.tar.gz
nutyx-pakxe-6ad7be461d0f6bae6afb5053676e27b7d660b245.tar.bz2
nutyx-pakxe-6ad7be461d0f6bae6afb5053676e27b7d660b245.tar.xz
nutyx-pakxe-6ad7be461d0f6bae6afb5053676e27b7d660b245.zip
twisted#10.2.0-1, maj port
Diffstat (limited to 'extra/twisted/Pkgfile')
-rwxr-xr-xextra/twisted/Pkgfile16
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/twisted/Pkgfile b/extra/twisted/Pkgfile
index 2a3598c37..2a21bfdd4 100755
--- a/extra/twisted/Pkgfile
+++ b/extra/twisted/Pkgfile
@@ -2,15 +2,21 @@
# URL: http://twistedmatrix.com/trac/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: python, pycrypto, zope-interface
+# Depends on: python2
name=twisted
-version=8.2.0
+version=10.2.0
release=1
-source=(http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/Twisted-$version.tar.bz2)
+source=(http://tmrc.mit.edu/mirror/twisted/Twisted/10.2/Twisted-$version.tar.bz2)
build() {
cd Twisted-$version
- python setup.py install --prefix=/usr --root=$PKG
+ python2 setup.py install --prefix=/usr --root=$PKG --optimize=1
+
+ install -D -m644 LICENSE "$PKG/usr/share/licenses/$name/LICENSE"
+
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ -i $PKG/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ -i $PKG/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py
}
-