mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
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
|
|
}
|