2008-10-01 13:07:24 +02:00
|
|
|
# Description: Python interpreter, version 2.6
|
2006-02-23 15:26:10 +00:00
|
|
|
# URL: http://www.python.org
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2008-10-01 13:07:24 +02:00
|
|
|
# Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=python
|
2008-12-05 09:33:45 +01:00
|
|
|
version=2.6.1
|
2008-10-01 13:07:24 +02:00
|
|
|
release=1
|
2008-12-05 09:33:45 +01:00
|
|
|
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2
|
2008-10-01 13:07:24 +02:00
|
|
|
$name-2.6.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd Python-$version
|
2008-03-12 17:14:20 +01:00
|
|
|
|
2008-10-01 13:07:24 +02:00
|
|
|
patch -p1 -i $SRC/$name-2.6.patch
|
2008-08-07 10:14:56 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
2008-03-12 17:14:20 +01:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--enable-shared \
|
|
|
|
--with-threads \
|
2008-03-12 17:14:20 +01:00
|
|
|
--enable-ipv6
|
2008-10-01 13:07:24 +02:00
|
|
|
|
|
|
|
make EXTRA_CFLAGS="$CFLAGS"
|
2007-04-19 08:40:41 +02:00
|
|
|
make -j1 DESTDIR=$PKG install
|
2008-03-12 17:14:20 +01:00
|
|
|
|
2008-10-01 13:07:24 +02:00
|
|
|
ln -sf python2.6 $PKG/usr/bin/python
|
|
|
|
ln -s python2.6 $PKG/usr/lib/python
|
|
|
|
ln -s python2.6 $PKG/usr/include/python
|
|
|
|
ln -s /usr/lib/libpython2.6.so $PKG/usr/lib/python2.6/config/libpython2.6.so
|
2008-03-12 17:14:20 +01:00
|
|
|
|
2006-11-25 18:07:07 +01:00
|
|
|
rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
|
2008-10-01 13:07:24 +02:00
|
|
|
rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
|
2006-08-28 14:45:35 +00:00
|
|
|
rm $PKG/usr/lib/python/{distutils,site-packages,test}/README
|
|
|
|
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
|
2006-11-25 18:07:07 +01:00
|
|
|
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|