mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
adjust recipes to use python 3.6, bump revisions.
This commit is contained in:
@@ -5,11 +5,12 @@ Mac-specific formats."
|
||||
HOMEPAGE="https://github.com/behdad/fonttools"
|
||||
COPYRIGHT="1999-2004 Just van Rossum, Letterror, The Netherlands."
|
||||
LICENSE="FONTTOOLS"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/behdad/fonttools/archive/$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3bc9141d608603faac3f800482feec78a550d0a94c29ff3850471dbe4ad9e941"
|
||||
SOURCE_DIR="fonttools-$portVersion"
|
||||
PYTHON_VERSION="3.6"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
@@ -18,7 +19,7 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python3
|
||||
cmd:python$PYTHON_VERSION
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
@@ -26,19 +27,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
|
||||
@@ -48,5 +49,5 @@ INSTALL()
|
||||
--prefix=$prefix
|
||||
|
||||
# conflict with python_fonttools
|
||||
rm -rf $binDir
|
||||
rm -rf $binDir $prefix/share
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user