fonttools: add recipes.

This commit is contained in:
Jerome Duval
2016-05-10 18:26:53 +00:00
parent 1a99cddf3a
commit dac8013ab0
3 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
Copyright 1999-2004
by Just van Rossum, Letterror, The Netherlands.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the names of Just van Rossum
or Letterror not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
JUST VAN ROSSUM AND LETTERROR DISCLAIM ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL JUST VAN ROSSUM OR
LETTERROR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
just@letterror.com

View File

@@ -0,0 +1,52 @@
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
}

View 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
}