Files
haikuports/dev-python/idna/idna-3.3.recipe
2025-07-24 01:02:28 -03:00

76 lines
1.6 KiB
Bash

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-2021 Kim Davies"
LICENSE="BSD (3-clause)"
REVISION="4"
SOURCE_URI="https://files.pythonhosted.org/packages/source/i/idna/idna-$portVersion.tar.gz"
CHECKSUM_SHA256="9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
"$prefix"/lib/$python
done
install -m 755 -d "$docDir"
install -m 644 -t "$docDir" README.rst
}
TEST()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
python=python$pythonVersion
$python setup.py test
done
}