mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
typogrify, re-enable, required for gi-docgen (#13677)
This commit is contained in:
67
dev-python/typogrify/typogrify-2.1.0.recipe
Normal file
67
dev-python/typogrify/typogrify-2.1.0.recipe
Normal file
@@ -0,0 +1,67 @@
|
||||
SUMMARY="Filters to enhance web typography"
|
||||
DESCRIPTION="Typogrify provides a set of custom filters that automatically apply various \
|
||||
transformations to plain text in order to yield typographically-improved HTML.
|
||||
While often used in conjunction with Jinja_ and Django_ template systems, the filters can be \
|
||||
used in any environment."
|
||||
HOMEPAGE="https://github.com/mintchaos/typogrify
|
||||
https://github.com/justinmayer/typogrify"
|
||||
COPYRIGHT="2007 Christian Metts
|
||||
2014 Justin Mayer"
|
||||
LICENSE="MIT"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/justinmayer/typogrify/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="212603210fb5a55fd5bed4c34cd9043b96ab605b190d4e17e27396330147e523"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_VERSIONS=(3.10)
|
||||
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_${pythonPackage}=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\n\
|
||||
smartypants_$pythonPackage\
|
||||
\""
|
||||
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
build_$pythonPackage
|
||||
hatchling_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
$python -m build --wheel --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user