opt/python/Pkgfile

33 lines
967 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01: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-10-20 07:17:59 +02:00
version=2.4.4
release=1
2006-02-23 16:26:10 +01:00
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2 \
2006-03-30 09:57:35 +02:00
$name-$version.patch)
2006-02-23 16:26:10 +01:00
build () {
cd Python-$version
2006-02-24 09:54:10 +01:00
2006-03-30 09:57:35 +02:00
patch -p1 < $SRC/$name-$version.patch
2006-02-24 09:54:10 +01:00
2006-02-23 16:26:10 +01: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 09:54:10 +01:00
rm -r $PKG/usr/lib/python/{email,bsddb}/test
2006-02-23 16:26:10 +01:00
rm -r $PKG/usr/lib/python/distutils/tests
rm $PKG/usr/lib/python/{distutils,site-packages,test}/README
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
2006-02-23 16:26:10 +01:00
}