SUMMARY="A substitute for Py2.7's collections.OrderedDict for Python 2.4-2.6"
DESCRIPTION="Drop-in substitute for Py2.7's new collections.OrderedDict. The \
recipe has big-oh performance that matches regular dictionaries (amortized \
O(1) insertion/deletion/lookup and O(n) iteration/repr/copy/equality_testing)."
HOMEPAGE="https://pypi.python.org/pypi/ordereddict"
COPYRIGHT="2009 Raymond Hettinger"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz"
CHECKSUM_SHA256="1c35b4ac206cef2d24816c89f89cf289dd3d38cf7c449bb3fab7bf6d43f01b1f"

ARCHITECTURES="x86 x86_gcc2"

PROVIDES="
	ordereddict = $portVersion
	"
REQUIRES="
	haiku
	cmd:python < 2.7
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:python < 2.7
	"

BUILD()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py build
}

INSTALL()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py install \
		--prefix=$prefix
}
