diff --git a/dev-python/tomli/tomli-2.0.1.recipe b/dev-python/tomli/tomli-2.0.1.recipe index fb5b02558..957b2540d 100644 --- a/dev-python/tomli/tomli-2.0.1.recipe +++ b/dev-python/tomli/tomli-2.0.1.recipe @@ -3,10 +3,10 @@ DESCRIPTION="A version of Tomli, the new tomllib module, will be added to the st Python 3.11 via PEP 680. Tomli continues to provide a backport on PyPI for Python versions where the standard library \ module is not available and that have not yet reached their end-of-life." -HOMEPAGE="https://pypi.org/project/gitdb/" +HOMEPAGE="https://github.com/hukkin/tomli" COPYRIGHT="2021 Taneli Hukkinen" LICENSE="BSD (3-clause)" -REVISION="4" +REVISION="5" pypiVersion="97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9" SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/tomli-2.0.1-py3-none-any.whl#noarchive" CHECKSUM_SHA256='939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc' @@ -24,37 +24,36 @@ 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\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\ - \"" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - installer_$pythonPackage - cmd:python$pythonVersion" + +for i in "${!PYTHON_VERSIONS[@]}"; do + pythonVersion=${PYTHON_VERSIONS[$i]} + pythonPackage=python${pythonVersion//.} + + eval "PROVIDES_${pythonPackage}=\" + ${portName}_$pythonPackage = $portVersion + \"" + eval "REQUIRES_$pythonPackage=\" + haiku + cmd:python$pythonVersion + \"" + BUILD_PREREQUIRES+=" + installer_$pythonPackage + cmd:python$pythonVersion + " done INSTALL() { - for i in "${!PYTHON_PACKAGES[@]}"; do - pythonPackage=${PYTHON_PACKAGES[i]} + for i in "${!PYTHON_VERSIONS[@]}"; do pythonVersion=${PYTHON_VERSIONS[$i]} + pythonPackage=python${pythonVersion//.} python=python$pythonVersion - installLocation=$prefix/lib/$python/vendor-packages/ - export PYTHONPATH=$installLocation:$PYTHONPATH - mkdir -p $installLocation - rm -rf build + $python -m installer -p $prefix tomli-2.0.1-py3-none-any.whl - packageEntries $pythonPackage \ + packageEntries $pythonPackage \ $prefix/lib/python* done }