mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
python3: bump version.
This commit is contained in:
142
dev-lang/python/python3-3.6.3.recipe
Normal file
142
dev-lang/python/python3-3.6.3.recipe
Normal file
@@ -0,0 +1,142 @@
|
||||
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-2017, Python Software Foundation"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="cda7d967c9a4bfa52337cdf551bcc5cff026b6ac50a8834e568ce4a794ca81da"
|
||||
SOURCE_DIR="Python-$portVersion"
|
||||
PATCHES="python3-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES=" !x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
python3$secondaryArchSuffix = $portVersion compat >= 3.6
|
||||
cmd:2to3 = $portVersion compat >= 3.6
|
||||
cmd:2to3_3.6 = $portVersion compat >= 3.6
|
||||
cmd:idle = $portVersion compat >= 3.6
|
||||
cmd:idle3 = $portVersion compat >= 3.6
|
||||
cmd:idle3.6 = $portVersion compat >= 3.6
|
||||
cmd:pydoc3 = $portVersion compat >= 3.6
|
||||
cmd:pydoc3.6 = $portVersion compat >= 3.6
|
||||
cmd:python3 = $portVersion compat >= 3.6
|
||||
cmd:python3_config = $portVersion compat >= 3.6
|
||||
cmd:python3.6 = $portVersion compat >= 3.6
|
||||
cmd:python3.6_config = $portVersion compat >= 3.6
|
||||
cmd:python3.6m = $portVersion compat >= 3.6
|
||||
cmd:python3.6m_config = $portVersion compat >= 3.6
|
||||
cmd:pyvenv = $portVersion compat >= 3.6
|
||||
cmd:pyvenv_3.6 = $portVersion compat >= 3.6
|
||||
devel:libpython3.6m$secondaryArchSuffix = 1.0
|
||||
lib:libpython3.6m$secondaryArchSuffix = 1.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
cmd:file
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libffi$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libreadline$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libffi$secondaryArchSuffix
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix
|
||||
devel:libreadline$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:python
|
||||
"
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
non-packaged/lib/python3.6/site-packages directory keep-old
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CFLAGS="-D_BSD_SOURCE"
|
||||
rm -Rf Modules/zlib Modules/expat
|
||||
|
||||
cd Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
runConfigure --omit-dirs binDir,includeDir ./configure \
|
||||
--enable-shared --without-ensurepip \
|
||||
--with-system-expat --bindir=$commandBinDir --includedir=$developDir/headers
|
||||
|
||||
# prevent make from rebuilding stuff that requires python
|
||||
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
|
||||
rm -f python
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm $libDir/libpython3.so
|
||||
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
# On x86_gcc2, move lib-dynload to lib/python3.x/
|
||||
mv $libDir/python3.6/lib-dynload $prefix/lib/python3.6/
|
||||
fi
|
||||
prepareInstalledDevelLibs libpython3.6m
|
||||
fixPkgconfig
|
||||
|
||||
mkdir -p $prefix/lib/python3.6/vendor-packages
|
||||
echo 'This directory contains packaged python modules.' \
|
||||
>$prefix/lib/python3.6/vendor-packages/README
|
||||
|
||||
mkdir -p $prefix/non-packaged/lib/python3.6
|
||||
mv $prefix/lib/python3.6/site-packages $prefix/non-packaged/lib/python3.6/
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd Lib/test
|
||||
rm -f test_asynchat.py # this one stalls, so skip it for now
|
||||
rm -f test_multiprocessing.py # this one stalls, so skip it for now
|
||||
|
||||
python3 regrtest.py
|
||||
}
|
||||
Reference in New Issue
Block a user