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