forked from ports/contrib
python3k: NEW port
This commit is contained in:
parent
1ee36f3464
commit
94375f8f9b
2482
python3k/.footprint
Normal file
2482
python3k/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
1
python3k/.md5sum
Normal file
1
python3k/.md5sum
Normal file
@ -0,0 +1 @@
|
||||
89356ece9bd276e78a9e63cfe4a83a23 Python-3.0a1.tgz
|
50
python3k/Pkgfile
Normal file
50
python3k/Pkgfile
Normal file
@ -0,0 +1,50 @@
|
||||
# Description: Python 3000 Interpreter
|
||||
# URL: http://www.python.org
|
||||
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
||||
#
|
||||
# Depends on: db, gdbm, ncurses, openssl, readline, zlib
|
||||
|
||||
name=python3k
|
||||
version=3.0a1
|
||||
release=1
|
||||
source=(http://www.python.org/ftp/python/3.0/Python-$version.tgz)
|
||||
|
||||
build () {
|
||||
cd Python-$version
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-threads \
|
||||
--enable-ipv6 \
|
||||
make
|
||||
make -j1 DESTDIR=$PKG install
|
||||
|
||||
rm -r $PKG/usr/lib/python3.0/{bsddb,ctypes,email,sqlite3}/test
|
||||
rm -r $PKG/usr/lib/python3.0/distutils/tests
|
||||
rm $PKG/usr/lib/python3.0/{distutils,site-packages,test}/README
|
||||
rm $PKG/usr/lib/python3.0/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
|
||||
rm $PKG/usr/lib/python3.0/ctypes/macholib/README.ctypes
|
||||
|
||||
# Don't conflict with an existing installation
|
||||
if [ -f /usr/bin/idle ]; then
|
||||
mv $PKG/usr/bin/idle $PKG/usr/bin/idle3.0
|
||||
fi
|
||||
if [ -f /usr/bin/pydoc ]; then
|
||||
mv $PKG/usr/bin/pydoc $PKG/usr/bin/pydoc3.0
|
||||
fi
|
||||
if [ -x /usr/bin/python ]; then
|
||||
rm $PKG/usr/bin/python
|
||||
fi
|
||||
if [ -x /usr/bin/python-config ]; then
|
||||
rm $PKG/usr/bin/python-config
|
||||
fi
|
||||
if [ -f /usr/bin/smtpd.py ]; then
|
||||
rm $PKG/usr/bin/smtpd.py
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/man/man1/
|
||||
mv $PKG/usr/share/man/man1/python.1 $PKG/usr/man/man1/python3.1
|
||||
rm -rf $PKG/usr/share/
|
||||
|
||||
chown -R root:root $PKG
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user