1SUMMARY="A configurable sidebar-enabled Sphinx theme"
2DESCRIPTION="Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx \
3documentation system. It is Python 3.6+ compatible.
4
5It began as a third-party theme, and is still maintained separately, but as of Sphinx 1.3, \
6Alabaster is an install-time dependency of Sphinx and is selected as the default theme."
7HOMEPAGE="https://github.com/sphinx-doc/alabaster"
8COPYRIGHT="2020 Jeff Forcier
9	2011 Kenneth Reitz
10	2010 Armin Ronacher"
11LICENSE="BSD (3-clause)"
12REVISION="1"
13SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
14CHECKSUM_SHA256="c5efad86e1bb8215d037e2890e62aa2bb5e4f13f6fa455be100413835b5bfe43"
15SOURCE_FILENAME="alabaster-$portVersion.tar.gz"
16
17ARCHITECTURES="any"
18
19PROVIDES="
20	$portName = $portVersion
21	"
22REQUIRES="
23	haiku
24	"
25
26BUILD_REQUIRES="
27	haiku_devel
28	"
29
30PYTHON_PACKAGES=(python39 python310)
31PYTHON_VERSIONS=(3.9 3.10)
32for i in "${!PYTHON_PACKAGES[@]}"; do
33	pythonPackage=${PYTHON_PACKAGES[i]}
34	pythonVersion=${PYTHON_VERSIONS[$i]}
35
36	eval "PROVIDES_$pythonPackage=\"
37		${portName}_$pythonPackage = $portVersion
38		\""
39	eval "REQUIRES_$pythonPackage=\"
40		haiku
41		cmd:python$pythonVersion
42		\""
43	BUILD_REQUIRES+="
44		setuptools_$pythonPackage
45		"
46	BUILD_PREREQUIRES+="
47		cmd:python$pythonVersion
48		"
49done
50
51INSTALL()
52{
53	for i in "${!PYTHON_PACKAGES[@]}"; do
54		pythonPackage=${PYTHON_PACKAGES[i]}
55		pythonVersion=${PYTHON_VERSIONS[$i]}
56
57		python=python$pythonVersion
58		installLocation=$prefix/lib/$python/vendor-packages/
59		export PYTHONPATH=$installLocation:$PYTHONPATH
60
61		mkdir -p $installLocation
62		rm -rf build
63
64		$python setup.py build install \
65			--root=/ --prefix=$prefix
66
67		packageEntries $pythonPackage \
68			$prefix/lib/python*
69	done
70}
71