0
0
Fork 0
haikuports/dev-python/pyenet/pyenet-20141025.recipe

56 lines
1.4 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"
SOURCE_URI="https://github.com/aresch/pyenet/archive/265b18eda4556c893f5851f6dcb1084bddc758a7.tar.gz"
CHECKSUM_SHA256="b29256914593af0ad606eccb92dc143ab89dc2e8c83ea7405b98459528639943"
SOURCE_DIR="pyenet-265b18eda4556c893f5851f6dcb1084bddc758a7"
# Note that at the time of writing the latest stable release of enet does not
# contain getaddrinfo() support. The specific commit introducing this support
# (which is also currently the HEAD) is therefore used here.
SOURCE_URI_2="https://github.com/lsalzman/enet/archive/5f476546edabdf37509cd3448d1a616f5eca535d.tar.gz"
CHECKSUM_SHA256_2="1c49f074d611b3e00c79abd94cb1df8f1b4bb013ebd20e0d03015ddac955ff16"
SOURCE_DIR_2="enet-5f476546edabdf37509cd3448d1a616f5eca535d"
LICENSE="
BSD (3-clause)
MIT
"
COPYRIGHT="2003 Scott Robinson; 2009,2010 Andrew Resch"
REVISION="3"
ARCHITECTURES="all"
PATCHES="pyenet-$portVersion.patchset"
PROVIDES="
pyenet = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_PREREQUIRES="
haiku_devel
cmd:cython2
cmd:gcc
cmd:python
"
BUILD()
{
ln -sf $sourceDir2 enet
python setup.py build
}
INSTALL()
{
python setup.py install --prefix=$prefix
}