aiodns: update to version 3.5.0.

This commit is contained in:
Oscar Lesta
2025-08-27 01:18:07 -03:00
committed by OscarL
parent a63a406970
commit 54c8e0a9f9
2 changed files with 74 additions and 62 deletions

View File

@@ -1,62 +0,0 @@
SUMMARY="Simple DNS resolver for asyncio"
DESCRIPTION="aiodns provides a simple way for doing asynchronous DNS \
resolutions with a synchronous looking interface by using pycares"
HOMEPAGE="https://pypi.python.org/pypi/aiodns"
COPYRIGHT="2016 Saúl Ibarra Corretgé"
LICENSE="MIT"
REVISION="4"
SOURCE_URI="https://pypi.org/packages/source/a/aiodns/aiodns-$portVersion.tar.gz"
CHECKSUM_SHA256="815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
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
\""
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
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
}

View File

@@ -0,0 +1,74 @@
SUMMARY="Simple DNS resolver for asyncio"
DESCRIPTION="aiodns provides a simple way for doing asynchronous DNS \
resolutions with a synchronous looking interface by using pycares"
HOMEPAGE="https://pypi.python.org/pypi/aiodns"
COPYRIGHT="2014 Saúl Ibarra Corretgé"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="11264edbab51896ecf546c18eb0dd56dff0428c6aa6d2cd87e643e07300eb310"
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
pycares_$pythonPackage # >=4.9.0
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
BUILD()
{
# This is an "any" package, "building" it will create a
# "$portBaseName-$portVersion-py3-none-any.whl" file that can be installed
# on multiple Python versions, so we only need to build once.
python=python${PYTHON_VERSIONS[0]}
$python -m build --wheel --skip-dependency-check --no-isolation
}
INSTALL()
{
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
# wheel filename has the pattern: $portBaseName-$portVersion-*-none-any.whl
# with the asterisk being: "py2-py3" or "py3".
$python -m installer --p $prefix dist/$portName-$portVersion-*-none-any.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}