mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
fonttools: bump version, switch to python 3.10
This commit is contained in:
78
dev-python/fonttools/fonttools-4.39.2.recipe
Normal file
78
dev-python/fonttools/fonttools-4.39.2.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
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="f49a6d3cf67c44a2e8da4435f42e736cbc96591c7033f86ab9f778b11b266b17"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python310)
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
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\n\
|
||||
setuptools_$pythonPackage\n\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
PROVIDES_python310="$PROVIDES_python310
|
||||
cmd:fonttools
|
||||
cmd:pyftinspect
|
||||
cmd:pyftmerge
|
||||
cmd:pyftsubset
|
||||
cmd:ttx
|
||||
"
|
||||
REPLACES_python310="
|
||||
fonttools_python3
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
rm -rf build
|
||||
$python -m build -wn
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
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