Files
haikuports/dev-python/fonttools/python3_fonttools-3.0.recipe
2016-05-10 18:28:01 +00:00

53 lines
1.3 KiB
Bash

SUMMARY="A library for manipulating fonts"
DESCRIPTION="FontTools is a library for manipulating fonts, written in Python.\
It supports TrueType, OpenType, AFM and to an extent Type 1 and some \
Mac-specific formats."
HOMEPAGE="https://github.com/behdad/fonttools"
COPYRIGHT="1999-2004 Just van Rossum, Letterror, The Netherlands."
LICENSE="FONTTOOLS"
REVISION="1"
SOURCE_URI="https://github.com/behdad/fonttools/archive/$portVersion.tar.gz"
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
CHECKSUM_SHA256="3bc9141d608603faac3f800482feec78a550d0a94c29ff3850471dbe4ad9e941"
SOURCE_DIR="fonttools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_fonttools = $portVersion
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
python3_setuptools
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python3
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3/bin/python3
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py install \
--prefix=$prefix
# conflict with python_fonttools
rm -rf $binDir
}