Files
haikuports/dev-python/pyzmq/pyzmq-25.1.2.recipe
OscarL 47e286a20f pyzmq: recipe clean up. Drop _python39 package. (#11315)
Only on-tree user of this package is 3.10 only (openshot).
2024-11-07 08:23:37 +01:00

84 lines
1.8 KiB
Bash

SUMMARY="Python bindings for ØMQ"
DESCRIPTION="
This package contains Python bindings for ØMQ. \
ØMQ is a lightweight and fast messaging implementation."
HOMEPAGE="https://zeromq.org/"
COPYRIGHT="2009-2019, Brian Granger, Min Ragan-Kelley"
LICENSE="GNU LGPL v3"
REVISION="2"
SOURCE_URI="https://github.com/zeromq/pyzmq/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="4df6361aa20dad1572ef83b441d0ef43125e86e139b30e215cad95883166ee4d"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pyzmq$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libzmq$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
PYTHON_VERSIONS=(3.10)
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
\""
if [ "$targetArchitecture" = x86_gcc2 ]; then
eval "PROVIDES_${pythonPackage}+=\"
pyzmq_$pythonPackage = $portVersion
\""
fi
eval "REQUIRES_$pythonPackage=\"
haiku$secondaryArchSuffix
lib:libzmq$secondaryArchSuffix
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
packaging_$pythonPackage
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:cython$pythonVersion
cmd:python$pythonVersion
"
done
INSTALL()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}