pyopengl: drop outdated and unused recipe. (#11941)

This was broken before 8dec539418, and never
referenced on-tree since then (`git log --since=2020-03 -S pyopengl`
gives nothing except that commit).

Users should try to `pip install` this, if they need it.
This commit is contained in:
OscarL
2025-03-13 02:24:41 -03:00
committed by GitHub
parent 76b21857c8
commit 668a0cf78f

View File

@@ -1,68 +0,0 @@
SUMMARY="Common cross platform Python binding to OpenGL"
DESCRIPTION="PyOpenGL is the most common cross platform Python binding to \
OpenGL and related APIs.
The binding is created using the standard ctypes library, and is provided \
under an extremely liberal BSD-style Open-Source license."
HOMEPAGE="https://pypi.org/project/PyOpenGL/"
COPYRIGHT="1997-1998, 2004-2020 Mike C. Fletcher"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://files.pythonhosted.org/packages/5b/01/f8fd986bc7f456f1a925ee0239f0391838ade92cdb6e5b674ffb8b86cfd6/PyOpenGL-3.1.6.tar.gz"
CHECKSUM_SHA256="8ea6c8773927eda7405bffc6f5bb93be81569a7b05c8cac50cd94e969dce5e27"
SOURCE_DIR="PyOpenGL-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 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
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
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/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}