1SUMMARY="Composable style cycles"
2DESCRIPTION="Cycling through combinations of values, producing dictionaries.
3The public API of cycler consists of a class Cycler, a factory function cycler(), and a \
4concatenation function concat(). The factory function provides a simple interface for creating \
5*base* Cycler objects while the class takes care of the composition and iteration logic."
6HOMEPAGE="https://github.com/matplotlib/cycler"
7COPYRIGHT="2015 matplotlib project"
8LICENSE="BSD (3-clause)"
9REVISION="1"
10SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
11CHECKSUM_SHA256="2530b40270be9e5e8c5f570d15a934c5dc9737ce3f3ba54307b371655e48e7e4"
12SOURCE_FILENAME="cycler-v$portVersion.tar.gz"
13
14ARCHITECTURES="any"
15
16PROVIDES="
17	$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
30	pythonPackage=${PYTHON_PACKAGES[i]}
31	pythonVersion=${PYTHON_VERSIONS[$i]}
32
33	eval "PROVIDES_$pythonPackage=\"
34		${portName}_$pythonPackage = $portVersion
35		\""
36	eval "REQUIRES_$pythonPackage=\"
37		haiku
38		cmd:python$pythonVersion
39		\""
40	BUILD_REQUIRES+="
41		setuptools_$pythonPackage
42		"
43	BUILD_PREREQUIRES+="
44		cmd:python$pythonVersion
45		"
46done
47
48INSTALL()
49{
50	for i in "${!PYTHON_PACKAGES[@]}"; do
51		pythonPackage=${PYTHON_PACKAGES[i]}
52		pythonVersion=${PYTHON_VERSIONS[$i]}
53
54		python=python$pythonVersion
55		installLocation=$prefix/lib/$python/vendor-packages/
56		export PYTHONPATH=$installLocation:$PYTHONPATH
57
58		mkdir -p $installLocation
59		rm -rf build
60
61		$python setup.py build install \
62			--root=/ --prefix=$prefix
63
64		packageEntries $pythonPackage \
65			$prefix/lib/python*
66	done
67}
68