Files
haikuports/dev-python/discid/discid-1.2.0.recipe
Oscar Lesta 71a1db040f discid: drop Python 3.9 support.
Only user on-tree (picard) is Python 3.10 only already.
2025-09-19 22:53:14 -03:00

64 lines
1.4 KiB
Bash

SUMMARY="Python bindings of libdiscid by MusicBrainz"
DESCRIPTION="Python-discid implements Python bindings for MusicBrainz Libdiscid."
HOMEPAGE="https://python-discid.readthedocs.io/"
COPYRIGHT="Johannes Dewender"
LICENSE="GNU LGPL v2.1"
REVISION="7"
SOURCE_URI="https://files.pythonhosted.org/packages/source/d/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="cd9630bc53f5566df92819641040226e290b2047573f2c74a6e92b8eed9e86b9"
SOURCE_DIR="discid-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
libdiscid
"
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=\"$REQUIRES
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
}