34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
# Description: Python interpreter, version 2.7
|
|
# URL: http://www.python.org
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3
|
|
|
|
name=python
|
|
version=2.7.1
|
|
release=1
|
|
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2)
|
|
|
|
build () {
|
|
cd Python-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--enable-shared \
|
|
--with-threads \
|
|
--enable-ipv6
|
|
|
|
make EXTRA_CFLAGS="$CFLAGS"
|
|
make -j1 DESTDIR=$PKG install
|
|
|
|
ln -sf python2.7 $PKG/usr/bin/python
|
|
ln -s python2.7 $PKG/usr/lib/python
|
|
ln -s python2.7 $PKG/usr/include/python
|
|
ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
|
|
|
|
rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
|
|
rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
|
|
rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
|
|
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
|
|
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
|
|
}
|