mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
54 lines
1.4 KiB
Bash
54 lines
1.4 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="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"
|
|
|
|
PROVIDES="
|
|
python3_fonttools = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python$PYTHON_VERSION
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
python3_setuptools
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:python$PYTHON_VERSION
|
|
cmd:gcc
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
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
|
|
mkdir -p $installLocation
|
|
|
|
$python setup.py install \
|
|
--prefix=$prefix
|
|
|
|
# conflict with python_fonttools
|
|
rm -rf $binDir $prefix/share
|
|
}
|