diff --git a/dev-python/dnspython/dnspython-1.16.0.recipe b/dev-python/dnspython/dnspython-1.16.0.recipe index b811c679e..e4e74183d 100644 --- a/dev-python/dnspython/dnspython-1.16.0.recipe +++ b/dev-python/dnspython/dnspython-1.16.0.recipe @@ -7,7 +7,7 @@ COPYRIGHT="Dnspython Contributors 2001-2017 Nominum, Inc. Google Inc." LICENSE="ISC" -REVISION="5" +REVISION="6" SOURCE_URI="https://github.com/rthalley/dnspython/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="b339ac2eb070d0133f020a6e0cc137a10fc380f3eba3e0655d62a19e64626cbd" @@ -24,13 +24,12 @@ 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) - eval "PROVIDES_${pythonPackage}=\" +for pythonVersion in ${PYTHON_VERSIONS[@]}; do + pythonPackage=python${pythonVersion//.} + + eval "PROVIDES_$pythonPackage=\" ${portName}_$pythonPackage = $portVersion \"" eval "REQUIRES_$pythonPackage=\" @@ -48,9 +47,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/