summaryrefslogtreecommitdiffstats
path: root/extra/twisted/Pkgfile
blob: 2a21bfdd41c6bed06c2162a334f6bed60905b03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Description: Communication mode asynchrone écrit en Python 
# URL: http://twistedmatrix.com/trac/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: python2

name=twisted
version=10.2.0
release=1
source=(http://tmrc.mit.edu/mirror/twisted/Twisted/10.2/Twisted-$version.tar.bz2)

build() {
        cd Twisted-$version
        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
}