1284194SdelphijSUMMARY="Filters to enhance web typography"
2284194SdelphijDESCRIPTION="Typogrify provides a set of custom filters that automatically apply various \
3284194Sdelphijtransformations to plain text in order to yield typographically-improved HTML.
4284194SdelphijWhile often used in conjunction with Jinja_ and Django_ template systems, the filters can be \
5284194Sdelphijused in any environment."
6284194SdelphijHOMEPAGE="https://github.com/mintchaos/typogrify"
7284194SdelphijCOPYRIGHT="2007 Christian Metts
8284194Sdelphij	2014 Justin Mayer"
9284194SdelphijLICENSE="MIT"
10284194SdelphijREVISION="3"
11284194SdelphijSOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
12284194SdelphijCHECKSUM_SHA256="d5081966c1c1423157e240d5cfe7435b56ca30be57ff8c7fe6f90f6cc42295ee"
13284194Sdelphij
14284194SdelphijARCHITECTURES="any"
15284194Sdelphij
16284194SdelphijPROVIDES="
17284194Sdelphij	$portName = $portVersion
18	"
19REQUIRES="
20	haiku
21	"
22
23BUILD_REQUIRES="
24	haiku_devel
25	"
26
27PYTHON_PACKAGES=(python39 python310)
28PYTHON_VERSIONS=(3.9 3.10)
29for i in "${!PYTHON_PACKAGES[@]}"; do
30pythonPackage=${PYTHON_PACKAGES[i]}
31pythonVersion=${PYTHON_VERSIONS[$i]}
32eval "PROVIDES_${pythonPackage}=\"\
33	${portName}_$pythonPackage = $portVersion\
34	\"; \
35REQUIRES_$pythonPackage=\"\
36	haiku\n\
37	cmd:python$pythonVersion\n\
38	smartypants_$pythonPackage\
39	\""
40BUILD_REQUIRES="$BUILD_REQUIRES
41	setuptools_$pythonPackage"
42BUILD_PREREQUIRES="$BUILD_PREREQUIRES
43	cmd:python$pythonVersion"
44done
45
46INSTALL()
47{
48	for i in "${!PYTHON_PACKAGES[@]}"; do
49		pythonPackage=${PYTHON_PACKAGES[i]}
50		pythonVersion=${PYTHON_VERSIONS[$i]}
51
52		python=python$pythonVersion
53		installLocation=$prefix/lib/$python/vendor-packages/
54		export PYTHONPATH=$installLocation:$PYTHONPATH
55		mkdir -p $installLocation
56		rm -rf build
57		$python setup.py build install \
58			--root=/ --prefix=$prefix
59
60		packageEntries  $pythonPackage \
61			$prefix/lib/python*
62	done
63}
64