mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 15:20:07 +02:00
fonttools: add recipes.
This commit is contained in:
55
dev-python/fonttools/python_fonttools-3.0.recipe
Normal file
55
dev-python/fonttools/python_fonttools-3.0.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
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="
|
||||
python_fonttools = $portVersion
|
||||
cmd:pyftmerge
|
||||
cmd:pyftsubset
|
||||
cmd:ttx
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
python_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:python2
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
python=$portPackageLinksDir/cmd~python2/bin/python2
|
||||
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
|
||||
|
||||
# we don't have pygtk
|
||||
rm $binDir/pyftinspect
|
||||
}
|
||||
Reference in New Issue
Block a user