diff --git a/dev-python/cycler/cycler-0.11.0.recipe b/dev-python/cycler/cycler-0.11.0.recipe new file mode 100644 index 000000000..66070efec --- /dev/null +++ b/dev-python/cycler/cycler-0.11.0.recipe @@ -0,0 +1,67 @@ +SUMMARY="Composable style cycles" +DESCRIPTION="Cycling through combinations of values, producing dictionaries. +The public API of cycler consists of a class Cycler, a factory function cycler(), and a \ +concatenation function concat(). The factory function provides a simple interface for creating \ +*base* Cycler objects while the class takes care of the composition and iteration logic." +HOMEPAGE="https://github.com/matplotlib/cycler" +COPYRIGHT="2015 matplotlib project" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="2530b40270be9e5e8c5f570d15a934c5dc9737ce3f3ba54307b371655e48e7e4" +SOURCE_FILENAME="cycler-v$portVersion.tar.gz" + +ARCHITECTURES="any" + +PROVIDES=" + $portName = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " + +PYTHON_PACKAGES=(python39 python310) +PYTHON_VERSIONS=(3.9 3.10) +for i in "${!PYTHON_PACKAGES[@]}"; do + pythonPackage=${PYTHON_PACKAGES[i]} + pythonVersion=${PYTHON_VERSIONS[$i]} + + eval "PROVIDES_$pythonPackage=\" + ${portName}_$pythonPackage = $portVersion + \"" + eval "REQUIRES_$pythonPackage=\" + haiku + cmd:python$pythonVersion + \"" + BUILD_REQUIRES+=" + setuptools_$pythonPackage + " + BUILD_PREREQUIRES+=" + cmd:python$pythonVersion + " +done + +INSTALL() +{ + for i in "${!PYTHON_PACKAGES[@]}"; do + pythonPackage=${PYTHON_PACKAGES[i]} + pythonVersion=${PYTHON_VERSIONS[$i]} + + python=python$pythonVersion + installLocation=$prefix/lib/$python/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + + mkdir -p $installLocation + rm -rf build + + $python setup.py build install \ + --root=/ --prefix=$prefix + + packageEntries $pythonPackage \ + $prefix/lib/python* + done +}