Files
haikuports/dev-python/pythonzeroconf/pythonzeroconf-0.29.0.recipe
Oscar Lesta dbc994dbd4 pythonzeroconf: drop Python 3.9 support.
Only user on-tree (calibre) is already 3.10 only.
2025-09-19 22:53:14 -03:00

65 lines
1.5 KiB
Bash

SUMMARY="A Python module for Multicast DNS Service Discovery"
DESCRIPTION="This is fork of pyzeroconf, Multicast DNS Service Discovery for Python."
HOMEPAGE="https://github.com/jstasiak/python-zeroconf/"
COPYRIGHT="2003 Paul Scott-Murphy
2014 William McBrine"
LICENSE="GNU LGPL v2.1"
REVISION="5"
SOURCE_URI="https://github.com/jstasiak/python-zeroconf/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="b8e7c55f36973362314b7d8cf716a76afea3c91abe9d2f435329dc67b973fe06"
SOURCE_FILENAME="zeroconf-$portVersion.tar.gz"
SOURCE_DIR="python-zeroconf-$portVersion"
ARCHITECTURES="any"
PROVIDES="
pythonzeroconf = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
pythonzeroconf_$pythonPackage = $portVersion
\""
eval "REQUIRES_$pythonPackage=\"
haiku
ifaddr_$pythonPackage
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
}