1SUMMARY="A sphinx extension which renders HTML help files"
2DESCRIPTION="sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
3HOMEPAGE="https://www.sphinx-doc.org/
4	https://github.com/sphinx-doc/sphinxcontrib-htmlhelp"
5COPYRIGHT="2007-2019 by the Sphinx team"
6LICENSE="BSD (2-clause)"
7REVISION="1"
8SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp-$portVersion.tar.gz"
9CHECKSUM_SHA256="0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff"
10SOURCE_DIR="sphinxcontrib-htmlhelp-$portVersion"
11
12ARCHITECTURES="any"
13
14PROVIDES="
15	$portName = $portVersion
16	"
17REQUIRES="
18	haiku
19	"
20
21BUILD_REQUIRES="
22	haiku_devel
23	"
24
25PYTHON_PACKAGES=(python39 python310)
26PYTHON_VERSIONS=(3.9 3.10)
27defaultTestVersion="python39"
28for i in "${!PYTHON_PACKAGES[@]}"; do
29	pythonPackage=${PYTHON_PACKAGES[i]}
30	pythonVersion=${PYTHON_VERSIONS[$i]}
31
32	eval "PROVIDES_$pythonPackage=\"
33		${portName}_$pythonPackage = $portVersion
34		\""
35	eval "REQUIRES_$pythonPackage=\"
36		haiku
37		cmd:python$pythonVersion
38		\""
39	BUILD_REQUIRES+="
40		build_$pythonPackage
41		installer_$pythonPackage
42		setuptools_$pythonPackage
43		wheel_$pythonPackage
44		"
45	BUILD_PREREQUIRES+="
46		cmd:python$pythonVersion
47		"
48done
49
50TEST_REQUIRES="
51	html5lib_$defaultTestVersion
52	sphinx_$defaultTestVersion
53	cmd:pytest
54	"
55
56INSTALL()
57{
58	for i in "${!PYTHON_PACKAGES[@]}"; do
59		pythonVersion=${PYTHON_VERSIONS[$i]}
60
61		python=python$pythonVersion
62
63		$python -m build --wheel --skip-dependency-check --no-isolation
64		$python -m installer -p $prefix dist/*.whl
65
66		packageEntries ${PYTHON_PACKAGES[i]} \
67			$prefix/lib/python*
68	done
69}
70
71TEST()
72{
73	pytest -v
74}
75