2006-05-08 14:25:19 +00:00
|
|
|
# New ports collection makefile for: py-rbtree
|
|
|
|
# Date created: 08 Mai 2006
|
|
|
|
# Whom: Marcus Alves Grando <mnag@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rbtree
|
2007-04-05 02:17:16 +00:00
|
|
|
PORTVERSION= 0.8.0
|
2006-05-08 14:25:19 +00:00
|
|
|
CATEGORIES= devel python
|
2007-04-07 23:35:16 +00:00
|
|
|
MASTER_SITES= http://cheeseshop.python.org/packages/source/r/rbtree/ \
|
|
|
|
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
|
2006-05-08 14:25:19 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2007-04-05 02:17:16 +00:00
|
|
|
DIST_SUBDIR= python
|
2006-05-08 14:25:19 +00:00
|
|
|
|
2007-04-05 02:17:16 +00:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2006-05-08 14:25:19 +00:00
|
|
|
COMMENT= A fast tree with ordered data and expanded iterator support
|
|
|
|
|
2007-07-30 17:49:35 +00:00
|
|
|
BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex
|
|
|
|
|
2006-05-08 14:25:19 +00:00
|
|
|
USE_PYTHON= yes
|
2007-07-30 09:42:28 +00:00
|
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
PYEASYINSTALL_ARCHDEP= yes
|
2006-05-08 14:25:19 +00:00
|
|
|
|
2007-04-05 02:17:16 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
2006-05-08 14:25:19 +00:00
|
|
|
PORTDOCS= *
|
2007-04-05 02:17:16 +00:00
|
|
|
.endif
|
|
|
|
|
2007-08-01 22:31:39 +00:00
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${PYEASYINSTALL_OSARCH:S/^-//}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${PYEASYINSTALL_OSARCH:S/^-//}-${PYTHON_VER}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${PYEASYINSTALL_OSARCH:S/^-//}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${PYEASYINSTALL_OSARCH:S/^-//}
|
|
|
|
|
2006-05-08 14:25:19 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
test: build
|
|
|
|
(cd ${WRKSRC} && ${PYTHON_CMD} test_rbtree.py)
|
|
|
|
|
2007-07-30 09:42:28 +00:00
|
|
|
.include <bsd.port.mk>
|