mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
Nothing currently uses it on-tree. Only known user, "unknown-horizons", is broken on-tree, upstream is porting the game to Godot, and considers current engine "dead".
79 lines
1.9 KiB
Bash
79 lines
1.9 KiB
Bash
SUMMARY="A python wrapper for the ENet library"
|
|
DESCRIPTION="pyenet is a python wrapper for the ENet library by Lee Salzman, \
|
|
http://enet.bespin.org.\
|
|
It was originally written by Scott Robinson scott@tranzoa.com and is currently \
|
|
maintained by Andrew Resch andrewresch@gmail.com."
|
|
HOMEPAGE="https://github.com/aresch/pyenet"
|
|
LICENSE="BSD (3-clause)
|
|
MIT"
|
|
COPYRIGHT="2003 Scott Robinson; 2009,2010 Andrew Resch"
|
|
REVISION="2"
|
|
srcGitRev="e2b7544ff7d57fe421bdf4563d958e0fcb496d9f"
|
|
SOURCE_URI="https://github.com/aresch/pyenet/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="a23ec1a8f8373aabcbb68d32fff0a8088205eeb1ee3f945853c738927143cd7e"
|
|
SOURCE_DIR="pyenet-$srcGitRev"
|
|
PATCHES="pyenet-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
pyenet$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
|
|
if [ "$targetArchitecture" = "x86_gcc2" ]; then
|
|
eval "PROVIDES_${pythonPackage}+=\"
|
|
pyenet_$pythonPackage = $portVersion
|
|
\""
|
|
fi
|
|
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
|
|
BUILD_REQUIRES+="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libenet$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:cython$pythonVersion
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
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
|
|
}
|