aboutsummaryrefslogtreecommitdiff
path: root/devel/py-rbtree/Makefile
blob: 004707da90a12a092868098b25ac01075bc7224f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for:	py-rbtree
# Date created:				08 Mai 2006
# Whom:					Marcus Alves Grando <mnag@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	rbtree
PORTVERSION=	0.7
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

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>