python: enable 2.7 for x86

This commit is contained in:
Jerome Duval
2014-12-13 00:00:20 +00:00
parent f939fb9db5
commit b54dd3d4b2
2 changed files with 1 additions and 42 deletions

View File

@@ -1,41 +0,0 @@
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
HOMEPAGE="http://www.python.org"
SRC_URI="http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tar.bz2"
CHECKSUM_MD5="aa27bc25725137ba155910bd8e5ddc4f"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="sys-libs/readline >= 6.0"
BUILD()
{
cd Python-2.7.1/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 \
CFLAGS=-I/boot/develop/headers/3rdparty
make
}
INSTALL()
{
cd Python-2.7.1
make install
}
TEST()
{
cd Python-2.7.1
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-2010, Python Software Foundation"

View File

@@ -14,7 +14,7 @@ COPYRIGHT="1990-2012, Python Software Foundation"
SRC_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="edde10a0cb7d14e2735e682882d5b287028d1485c456758154c19573db68075a"
REVISION="1"
ARCHITECTURES="x86_gcc2 !x86 x86_64"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="python-$portVersion.patchset"