python: update to 2.7b2

This commit is contained in:
Juergen Daubert 2010-06-03 11:36:08 +00:00
parent a29d31e5ab
commit dac1cfee28
3 changed files with 3769 additions and 3555 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1 @@
6bef0417e71a1a1737ccf5750420fdb3 Python-2.6.5.tar.bz2
f1db504e47f716f058b6082309a45d15 python-2.6.patch
051aa52f7956c3d92b9621ae44e2a575 Python-2.7b2.tar.bz2

View File

@ -4,16 +4,13 @@
# Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3
name=python
version=2.6.5
version=2.7b2
release=1
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2
$name-2.6.patch)
source=(http://www.python.org/ftp/$name/2.7/Python-$version.tar.bz2)
build () {
cd Python-$version
patch -p1 -i $SRC/$name-2.6.patch
./configure --prefix=/usr \
--mandir=/usr/man \
--enable-shared \
@ -23,14 +20,14 @@ build () {
make EXTRA_CFLAGS="$CFLAGS"
make -j1 DESTDIR=$PKG install
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
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}/README
rm $PKG/usr/lib/python/{distutils,site-packages}/README
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
}