mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 00:00:07 +02:00
idna, bump version, drop python2.7, add python3.10 (#7175)
This commit is contained in:
@@ -2,16 +2,16 @@ SUMMARY="Internationalized Domain Names in Applications (IDNA)"
|
||||
DESCRIPTION="Support for the Internationalised Domain Names in Applications \
|
||||
(IDNA) protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>."
|
||||
HOMEPAGE="https://pypi.python.org/pypi/idna"
|
||||
COPYRIGHT="2013-2019 Kim Davie"
|
||||
COPYRIGHT="2013-2021 Kim Davies"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.io/packages/source/i/idna/idna-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407"
|
||||
CHECKSUM_SHA256="9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
idna = $portVersion
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
@@ -19,31 +19,26 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
setuptools_python
|
||||
setuptools_python3
|
||||
setuptools_python38
|
||||
setuptools_python39
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python
|
||||
cmd:python3
|
||||
cmd:python3.8
|
||||
cmd:python3.9
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python python3 python38 python39)
|
||||
PYTHON_VERSIONS=(2.7 3.7 3.8 3.9)
|
||||
PYTHON_PACKAGES=(python3 python38 python39 python310)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
REQUIRES_$pythonPackage=\"\
|
||||
haiku\n\
|
||||
cmd:python$pythonVersion\n\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
cmd:python$pythonVersion"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
@@ -60,16 +55,11 @@ INSTALL()
|
||||
$python setup.py build install \
|
||||
--root=/ --prefix=$prefix
|
||||
|
||||
install -m 755 -d "$dataDir"/licenses
|
||||
install -m 644 -T LICENSE.rst "$dataDir"/licenses/idna.rst
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$dataDir" \
|
||||
"$prefix"/lib/$python
|
||||
done
|
||||
|
||||
install -m 755 -d "$dataDir"/licenses "$docDir"
|
||||
install -m 644 -T LICENSE.rst "$dataDir"/licenses/idna.rst
|
||||
install -m 755 -d "$docDir"
|
||||
install -m 644 -t "$docDir" README.rst
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user