mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
dev-python: merge most python2 and python3 recipes.
* adjust recipes depending on these, ie python_dateutil=>dateutil_python. * switch architectures to any for relevant python recipes. * bump versions for retext, argh, beautifulsoup, cssselect, dateutil, docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko, pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
This commit is contained in:
98
dev-python/fonttools/fonttools-3.10.0.recipe
Normal file
98
dev-python/fonttools/fonttools-3.10.0.recipe
Normal file
@@ -0,0 +1,98 @@
|
||||
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/fonttools/fonttools/archive/$portVersion.tar.gz"
|
||||
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="91fbab7277017587d9c6bfaf6770cbf1b38983d02308eb3f948b7915e43ef6bb"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
cmd:fonttools
|
||||
cmd:pyftinspect
|
||||
cmd:pyftmerge
|
||||
cmd:pyftsubset
|
||||
cmd:ttx
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python3)
|
||||
PYTHON_VERSIONS=(2.7 3.6)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
PROVIDES_python="$PROVIDES_python
|
||||
cmd:fonttools
|
||||
cmd:pyftinspect
|
||||
cmd:pyftmerge
|
||||
cmd:pyftsubset
|
||||
cmd:ttx
|
||||
"
|
||||
REPLACES_python="
|
||||
python_fonttools
|
||||
"
|
||||
PROVIDES_python3="$PROVIDES_python3
|
||||
cmd:fonttools3
|
||||
cmd:pyftinspect3
|
||||
cmd:pyftmerge3
|
||||
cmd:pyftsubset3
|
||||
cmd:ttx3
|
||||
"
|
||||
REPLACES_python3="
|
||||
python3_fonttools
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
installLocation=$prefix/lib/$python/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
rm -rf build
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
if [ $pythonPackage != python ]; then
|
||||
for f in $binDir/*; do
|
||||
mv $f ${f}3
|
||||
done
|
||||
fi
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python* \
|
||||
$binDir
|
||||
done
|
||||
|
||||
mkdir -p $(dirname $manDir)
|
||||
mv $prefix/share/man $manDir
|
||||
rmdir $prefix/share
|
||||
}
|
||||
Reference in New Issue
Block a user