2006-02-23 15:26:10 +00:00
|
|
|
|
# Description: Python interpreter
|
|
|
|
|
# URL: http://www.python.org
|
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
|
# Depends on: db, gdbm, ncurses, openssl, readline, zlib
|
|
|
|
|
|
|
|
|
|
name=python
|
2006-03-30 07:57:35 +00:00
|
|
|
|
version=2.4.3
|
2006-08-28 14:45:35 +00:00
|
|
|
|
release=2
|
2006-02-23 15:26:10 +00:00
|
|
|
|
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2 \
|
2006-03-30 07:57:35 +00:00
|
|
|
|
$name-$version.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd Python-$version
|
2006-02-24 08:54:10 +00:00
|
|
|
|
|
2006-03-30 07:57:35 +00:00
|
|
|
|
patch -p1 < $SRC/$name-$version.patch
|
2006-02-24 08:54:10 +00:00
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--enable-shared \
|
|
|
|
|
--with-threads \
|
|
|
|
|
--enable-ipv6
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
ln -sf python2.4 $PKG/usr/bin/python
|
|
|
|
|
ln -sf python2.4 $PKG/usr/lib/python
|
|
|
|
|
ln -sf python2.4 $PKG/usr/include/python
|
2006-02-24 08:54:10 +00:00
|
|
|
|
|
2006-08-28 14:45:35 +00:00
|
|
|
|
rm -r $PKG/usr/lib/python/{email,bsddb}/test
|
2006-02-23 15:26:10 +00:00
|
|
|
|
rm -r $PKG/usr/lib/python/distutils/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-02-23 15:26:10 +00:00
|
|
|
|
}
|