SUMMARY="Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"
DESCRIPTION="An enumeration is a set of symbolic names (members) \
bound to unique, constant values. Within an enumeration, the members can be \
compared by identity, and the enumeration itself can be iterated over."
HOMEPAGE="https://bitbucket.org/stoneleaf/enum34"
COPYRIGHT="2013-2016 Ethan Furman"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-$portVersion.tar.gz"
CHECKSUM_SHA256="8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1"

ARCHITECTURES="any"

pythonVersion="2.7"

PROVIDES="
	enum34
	enum34_python
	"
REQUIRES="
	haiku
	cmd:python$pythonVersion
	"

BUILD_REQUIRES="
	setuptools_python
	"
BUILD_PREREQUIRES="
	cmd:python$pythonVersion
	"

INSTALL()
{
	python=python$pythonVersion
	installLocation="$prefix/lib/$python/vendor-packages"
	export PYTHONPATH="$installLocation"
	install -d -m 755 "$installLocation"
	$python setup.py build install --root=/ --prefix="$prefix"
}
