mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
fonttools: add recipes.
This commit is contained in:
25
dev-python/fonttools/licenses/FONTTOOLS
Normal file
25
dev-python/fonttools/licenses/FONTTOOLS
Normal 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
|
||||
52
dev-python/fonttools/python3_fonttools-3.0.recipe
Normal file
52
dev-python/fonttools/python3_fonttools-3.0.recipe
Normal 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
|
||||
}
|
||||
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