diff options
Diffstat (limited to 'extra/twisted/Pkgfile')
-rwxr-xr-x | extra/twisted/Pkgfile | 16 |
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 } - |