mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
python: add 2.6.9
* Fix user site package directory
This commit is contained in:
116
dev-lang/python/python-2.6.9.recipe
Normal file
116
dev-lang/python/python-2.6.9.recipe
Normal file
@@ -0,0 +1,116 @@
|
||||
SUMMARY="An interpreted, interactive, object-oriented programming language"
|
||||
DESCRIPTION="
|
||||
Python is a programming language that lets you work more quickly and integrate \
|
||||
your systems more effectively. You can learn to use Python and see almost \
|
||||
immediate gains in productivity and lower maintenance costs.
|
||||
Python runs on Windows, Linux/Unix, Mac OS X, and has been ported to the Java \
|
||||
and .NET virtual machines.
|
||||
Python is free to use, even for commercial products, because of its \
|
||||
OSI-approved open source license.
|
||||
"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2012, Python Software Foundation"
|
||||
SRC_URI="http://www.python.org/ftp/python/2.6.9/Python-2.6.9.tar.xz"
|
||||
CHECKSUM_MD5="933a811f11e3db3d73ae492f6c3a7a76"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PATCHES="python-2.6.9.patchset"
|
||||
|
||||
PROVIDES="
|
||||
python = $portVersion compat >= 2.6
|
||||
cmd:2to3 = $portVersion compat >= 2.6
|
||||
cmd:idle = $portVersion compat >= 2.6
|
||||
cmd:pydoc = $portVersion compat >= 2.6
|
||||
cmd:python = $portVersion compat >= 2.6
|
||||
cmd:python2.6 = $portVersion compat >= 2.6
|
||||
cmd:python2.6_config = $portVersion compat >= 2.6
|
||||
cmd:python_config = $portVersion compat >= 2.6
|
||||
cmd:smtpd.py = $portVersion compat >= 2.6
|
||||
devel:libpython2.6 = 1.0
|
||||
lib:libpython2.6 = 1.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
cmd:nano
|
||||
lib:libbz2
|
||||
lib:libncurses
|
||||
lib:libssl
|
||||
lib:libreadline
|
||||
lib:libsqlite3
|
||||
lib:libz
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libbz2
|
||||
devel:libncurses
|
||||
devel:libssl
|
||||
devel:libreadline
|
||||
devel:libsqlite3
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:nano
|
||||
"
|
||||
|
||||
SOURCE_DIR="Python-2.6.9"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
non-packaged/lib/python2.6/site-packages directory keep-old
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
find . -name '*.py' -exec sed -i -e 's|/usr/bin/env|/bin/env|g' {} \;
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
runConfigure ./configure \
|
||||
--enable-shared \
|
||||
--enable-unicode=ucs4
|
||||
|
||||
# prevent make from rebuilding stuff that requires python
|
||||
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libpython2.6
|
||||
|
||||
mkdir -p $prefix/lib/python2.6/vendor-packages
|
||||
echo 'This directory contains packaged python modules.' \
|
||||
>$prefix/lib/python2.6/vendor-packages/README
|
||||
|
||||
mkdir -p $prefix/non-packaged/lib/python2.6
|
||||
mv $prefix/lib/python2.6/site-packages $prefix/non-packaged/lib/python2.6/
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd Lib/test
|
||||
rm test_asynchat.py # this one stalls, so skip it for now
|
||||
rm test_multiprocessing.py # this one stalls, so skip it for now
|
||||
|
||||
python regrtest.py
|
||||
}
|
||||
Reference in New Issue
Block a user