2010-08-31 22:55:01 +02:00
|
|
|
# Description: Python interpreter, version 2.7
|
2006-02-23 15:26:10 +00:00
|
|
|
# URL: http://www.python.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2013-04-07 10:49:36 +02:00
|
|
|
# Depends on: db gdbm openssl bzip2 zlib sqlite3
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=python
|
2014-07-04 09:39:08 +02:00
|
|
|
version=2.7.8
|
2013-05-16 08:59:34 +02:00
|
|
|
release=1
|
2012-11-22 12:50:35 -06:00
|
|
|
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
|
2013-04-07 10:49:36 +02:00
|
|
|
pyconfig.h)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd Python-$version
|
2013-04-07 10:49:36 +02:00
|
|
|
|
|
|
|
# set OPT to the python default without -O3
|
|
|
|
# our CFLAGS are used as well
|
|
|
|
OPT="-Wall -Wstrict-prototypes -fwrapv" \
|
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 \
|
2013-04-07 10:49:36 +02:00
|
|
|
--enable-ipv6
|
2008-10-01 13:07:24 +02:00
|
|
|
|
2013-04-07 10:49:36 +02:00
|
|
|
make
|
2007-04-19 08:40:41 +02:00
|
|
|
make -j1 DESTDIR=$PKG install
|
2008-03-12 17:14:20 +01:00
|
|
|
|
2013-04-21 11:48:33 +02:00
|
|
|
# fix issue with man-page symlink
|
|
|
|
ln -sf python2.7.1 $PKG/usr/man/man1/python.1
|
|
|
|
|
2010-06-03 11:36:08 +00:00
|
|
|
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
|
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
|
2010-11-29 12:54:13 +01:00
|
|
|
rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
|
2006-08-28 14:45:35 +00:00
|
|
|
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
|
2012-11-22 12:50:35 -06:00
|
|
|
|
2013-04-07 10:49:36 +02:00
|
|
|
mv $PKG/usr/include/python2.7/pyconfig{,-64}.h
|
2013-11-11 14:57:54 +01:00
|
|
|
install -m 0644 $SRC/pyconfig.h $PKG/usr/include/python2.7/
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|