summaryrefslogtreecommitdiffstats
path: root/twisted/Pkgfile
blob: 0665a8a404c63f29020e2e3cacd8c54e21315113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Description: Cadre de réseaux asynchrones écrit en Python 
# URL: http://twistedmatrix.com/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: pycrypto,zope-interface
# Run on:pycrypto,zope-interface

name=twisted
version=11.1.0
release=1
source=( http://twistedmatrix.com/Releases/Twisted/${version%.*}/Twisted-$version.tar.bz2)

build() {
	cd $SRC/Twisted-*
	python2 setup.py build
	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
}