adjust recipes to use python 3.6, bump revisions.

This commit is contained in:
Jerome Duval
2017-03-27 23:08:42 +02:00
parent 7a7ebe6cae
commit 7204e0f284
10 changed files with 69 additions and 62 deletions

View File

@@ -4,10 +4,11 @@ libraries."
HOMEPAGE="https://pypi.python.org/pypi/httplib2"
COPYRIGHT="2006 Joe Gregorio"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/h/httplib2/httplib2-$portVersion.tar.gz"
CHECKSUM_SHA256="c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988"
SOURCE_DIR="httplib2-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
@@ -16,7 +17,7 @@ PROVIDES="
"
REQUIRES="
haiku
cmd:python3
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
@@ -24,19 +25,19 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python3
cmd:python$PYTHON_VERSION
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3/bin/python3
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH