CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 1106 -
(hide annotations)
Sun Oct 4 15:12:13 2009 UTC (3 years, 8 months ago) by cjg
File size: 1191 byte(s)
Sun Oct 4 15:12:13 2009 UTC (3 years, 8 months ago) by cjg
File size: 1191 byte(s)
python: autoupdated to 2.6.2-1
| 1 | cjg | 829 | # Description: Python interpreter, version 2.6 |
| 2 | # URL: http://www.python.org | ||
| 3 | # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de | ||
| 4 | # Depends on: db gdbm ncurses openssl readline bzip2 zlib sqlite3 | ||
| 5 | cjg | 720 | |
| 6 | name=python | ||
| 7 | cjg | 1106 | version=2.6.2 |
| 8 | cjg | 829 | release=1 |
| 9 | source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.bz2 | ||
| 10 | $name-2.6.patch) | ||
| 11 | cjg | 720 | |
| 12 | build () { | ||
| 13 | cd Python-$version | ||
| 14 | |||
| 15 | cjg | 829 | patch -p1 -i $SRC/$name-2.6.patch |
| 16 | cjg | 720 | |
| 17 | ./configure --prefix=/usr \ | ||
| 18 | --mandir=/usr/man \ | ||
| 19 | --enable-shared \ | ||
| 20 | --with-threads \ | ||
| 21 | --enable-ipv6 | ||
| 22 | cjg | 829 | |
| 23 | make EXTRA_CFLAGS="$CFLAGS" | ||
| 24 | cjg | 720 | make -j1 DESTDIR=$PKG install |
| 25 | |||
| 26 | cjg | 829 | ln -sf python2.6 $PKG/usr/bin/python |
| 27 | ln -s python2.6 $PKG/usr/lib/python | ||
| 28 | ln -s python2.6 $PKG/usr/include/python | ||
| 29 | ln -s /usr/lib/libpython2.6.so $PKG/usr/lib/python2.6/config/libpython2.6.so | ||
| 30 | cjg | 720 | |
| 31 | rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test | ||
| 32 | cjg | 829 | rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests |
| 33 | cjg | 720 | rm $PKG/usr/lib/python/{distutils,site-packages,test}/README |
| 34 | rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt} | ||
| 35 | rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes | ||
| 36 | } |