mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Convert python 2.6.8 recipe to an actual recipe
Some additional patching was required to get things to build (among other things the bz2, ssl, and related modules). Remove superfluous Modules/timemodule.c patch.
This commit is contained in:
@@ -1,41 +1,94 @@
|
||||
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
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.8/Python-2.6.8.tar.bz2"
|
||||
CHECKSUM_MD5="c6e0420a21d8b23dee8b0195c9b9a125"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="sys-libs/readline >= 6.0"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
PATCHES="python-2.6.8.patch"
|
||||
|
||||
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
|
||||
lib:libpython2.6 = 1.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
bzip2
|
||||
ncurses
|
||||
openssl
|
||||
readline
|
||||
sqlite
|
||||
zlib
|
||||
cmd:nano
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
$REQUIRES
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:find
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="Python-2.6.8"
|
||||
|
||||
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 Python-2.6.8/Modules/_ctypes/libffi
|
||||
cd Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--enable-shared LDFLAGS=-L/boot/common/lib \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
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()
|
||||
{
|
||||
cd Python-2.6.8
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libpython2.6
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd Python-2.6.8
|
||||
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
|
||||
}
|
||||
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2012, Python Software Foundation"
|
||||
|
||||
Reference in New Issue
Block a user