diff --git a/dev-python/icecream/icecream-2.1.3.recipe b/dev-python/icecream/icecream-2.1.3.recipe index fdc849d19..e07488303 100644 --- a/dev-python/icecream/icecream-2.1.3.recipe +++ b/dev-python/icecream/icecream-2.1.3.recipe @@ -12,7 +12,7 @@ ic() is like print(), but better: HOMEPAGE="https://github.com/gruns/icecream" COPYRIGHT="2018 Ansgar Grunseid" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://pypi.io/packages/source/i/$portName/$portName-$portVersion.tar.gz" CHECKSUM_SHA256="0aa4a7c3374ec36153a1d08f81e3080e83d8ac1eefd97d2f4fe9544e8f9b49de" PATCHES="icecream-$portVersion.patchset" @@ -26,11 +26,10 @@ REQUIRES=" haiku " -PYTHON_PACKAGES=(python39 python310) -PYTHON_VERSIONS=(3.9 3.10) -for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} +PYTHON_VERSIONS=(3.10) + +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion @@ -41,6 +40,7 @@ for i in "${!PYTHON_PACKAGES[@]}"; do pygments_$pythonPackage cmd:python$pythonVersion \"" + BUILD_REQUIRES+=" build_$pythonPackage installer_$pythonPackage @@ -58,13 +58,15 @@ done INSTALL() { - for i in "${!PYTHON_PACKAGES[@]}"; do - python=python${PYTHON_VERSIONS[$i]} + for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} + + python=python$pythonVersion $python -m build --wheel --skip-dependency-check --no-isolation $python -m installer -p $prefix dist/*.whl - packageEntries ${PYTHON_PACKAGES[i]} \ + packageEntries $pythonPackage \ $prefix/lib/python* done }