1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/devel/py-rbtree/Makefile
Marcus Alves Grando 03ad0df1b9 - New port devel/py-rbtree
An RBTree is a fast, balanced efficient data structure with the
following properties:

get          O(log n)
set          O(log n)
delete       O(log n)
min          O(log n)
max          O(log n)
contains     O(log n)

Because the worst case timing is minimal across the range of standard
dict and ordered data operations it makes sense to use this when you
have volatile/dynamic sorted data.

In common usage its nearly as fast as the Python dict impl but has a
slightly more expensive usage of the compare function as the keys are
ordered and not hashed.

WWW:	http://www.python.org/pypi/RBTree/
2006-05-08 14:25:19 +00:00

41 lines
869 B
Makefile

# New ports collection makefile for: py-rbtree
# Date created: 08 Mai 2006
# Whom: Marcus Alves Grando <mnag@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rbtree
PORTVERSION= 0.6
CATEGORIES= devel python
MASTER_SITES= http://cheeseshop.python.org/packages/source/R/RBTree/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mnag@FreeBSD.org
COMMENT= A fast tree with ordered data and expanded iterator support
BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
WRKSRC= ${WRKDIR}/${PORTNAME}
DIST_SUBDIR= python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/rbtree.so
PORTDOCS= *
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
.endif
test: build
(cd ${WRKSRC} && ${PYTHON_CMD} test_rbtree.py)
.include <bsd.port.mk>