blob: db45ba36b0eff5194f07a5ab704f90d8fafbddbb (
plain)
1 # Description: Python interpreter, version 2.7
2 # URL: http://www.python.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: gdbm openssl bzip2 zlib sqlite3
5
6 name=python
7 version=2.7.3
8 release=3
9 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
10 pyconfig.h)
11
12 build () {
13 cd Python-$version
14
15 ./configure --prefix=/usr \
16 --mandir=/usr/man \
17 --enable-shared \
18 --with-threads \
19 --enable-ipv6 \
20 --with-dbmliborder=gdbm
21
22 make EXTRA_CFLAGS="$CFLAGS"
23 make -j1 DESTDIR=$PKG install
24
25 ln -sf python2.7 $PKG/usr/bin/python
26 ln -s python2.7 $PKG/usr/lib/python
27 ln -s python2.7 $PKG/usr/include/python
28 ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
29
30 rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
31 rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
32 rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
33 rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
34 rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
35
36 mv $PKG/usr/include/python2.7/pyconfig{,-64}.h
37 cp $SRC/pyconfig.h $PKG/usr/include/python2.7/
38 }
|