mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
jdtranslationhelper: drop Python 3.10 support.
Only users on-tree (jdreplace, jdtextedit) are already 3.10 only.
This commit is contained in:
@@ -3,7 +3,7 @@ DESCRIPTION="With this lib you can translate your programs using .lang files"
|
||||
HOMEPAGE="https://codeberg.org/JakobDev/jdTranslationHelper"
|
||||
COPYRIGHT="2019 JakobDev"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://codeberg.org/JakobDev/jdTranslationHelper/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3e9da9743839b1223fa190c5449ce460b9cb97504610a36db0a93530dfae4b58"
|
||||
SOURCE_DIR="jdtranslationhelper"
|
||||
@@ -21,13 +21,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=\"
|
||||
@@ -47,8 +46,8 @@ done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
@@ -57,7 +56,7 @@ INSTALL()
|
||||
$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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user