diff --git a/dev-python/pythonzeroconf/pythonzeroconf-0.29.0.recipe b/dev-python/pythonzeroconf/pythonzeroconf-0.29.0.recipe index a0b4ec147..2220c7a49 100644 --- a/dev-python/pythonzeroconf/pythonzeroconf-0.29.0.recipe +++ b/dev-python/pythonzeroconf/pythonzeroconf-0.29.0.recipe @@ -4,7 +4,7 @@ HOMEPAGE="https://github.com/jstasiak/python-zeroconf/" COPYRIGHT="2003 Paul Scott-Murphy 2014 William McBrine" LICENSE="GNU LGPL v2.1" -REVISION="4" +REVISION="5" SOURCE_URI="https://github.com/jstasiak/python-zeroconf/archive/$portVersion.tar.gz" CHECKSUM_SHA256="b8e7c55f36973362314b7d8cf716a76afea3c91abe9d2f435329dc67b973fe06" SOURCE_FILENAME="zeroconf-$portVersion.tar.gz" @@ -22,11 +22,10 @@ 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]} +PYTHON_VERSIONS=(3.10) + +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} eval "PROVIDES_$pythonPackage=\" pythonzeroconf_$pythonPackage = $portVersion @@ -46,9 +45,8 @@ done INSTALL() { - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} - pythonVersion=${PYTHON_VERSIONS[$i]} + for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} python=python$pythonVersion installLocation=$prefix/lib/$python/vendor-packages/