mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
haiku-pyapi: Release 0.1 (#9636)
This commit is contained in:
65
dev-python/haiku-pyapi/haiku_pyapi-0.1.recipe
Normal file
65
dev-python/haiku-pyapi/haiku_pyapi-0.1.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
SUMMARY="Python bindings for the Haiku API"
|
||||
DESCRIPTION="An initial release of the python bindings for the Haiku API. \
|
||||
The API is not stable and subject to change. The bindings for the app kit \
|
||||
are mostly complete, but a couple of functions are missing. The interface \
|
||||
kit has the essentials (buttons, text boxes, etc.), but many items are \
|
||||
missing. The other kits have not been ported yet."
|
||||
HOMEPAGE="https://github.com/coolcoder613eb/Haiku-PyAPI/"
|
||||
COPYRIGHT="2023 Elozor Bruce
|
||||
2023 Zardshard"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/coolcoder613eb/Haiku-PyAPI/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="32b52f52a44546459aabf3df56e650f9db8113413d10948b00d759546067aee0"
|
||||
SOURCE_DIR="Haiku-PyAPI-0.1"
|
||||
|
||||
ARCHITECTURES="x86_64"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:jam
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultVersion=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
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
pybind11_$pythonPackage
|
||||
"
|
||||
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
|
||||
|
||||
jam -q $jobArgs -spython_version="$pythonVersion" \
|
||||
-sinstall_location="$installLocation" install
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user