mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
60 lines
1.4 KiB
Bash
60 lines
1.4 KiB
Bash
SUMMARY="Makes Python extensions easier to write"
|
|
DESCRIPTION="A small C++ header library which makes it easier to write Python extension modules.\
|
|
The primary feature is a PyObject smart pointer which automatically handles reference counting \
|
|
and provides convenience methods for performing common object operations."
|
|
HOMEPAGE="https://github.com/nucleic/cppy/"
|
|
COPYRIGHT="2014-2022, Nucleic Development Team"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/py3/${portName:0:1}/$portName/$portName-$portVersion-py3-none-any.whl#noarchive"
|
|
CHECKSUM_SHA256='c5b5eac3d3f42593a07d35275b0bc27f447b76b9ad8f27c62e3cfa286dc1988a'
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
defaultVersion=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+="
|
|
installer_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
python=python$pythonVersion
|
|
|
|
$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|