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-04-05 02:17:16 +00:00
|
|
|
BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools \
|
|
|
|
pyrexc:${PORTSDIR}/devel/pyrex
|
|
|
|
RUN_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools
|
2006-05-08 14:25:19 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2007-04-05 02:17:16 +00:00
|
|
|
PYDISTUTILS_BUILD_TARGET= bdist_egg
|
|
|
|
PYDISTUTILS_INSTALL_TARGET= easy_install
|
|
|
|
PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYRBTREE_EGG}
|
|
|
|
|
|
|
|
PYRBTREE_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}-${OSINFOS}.egg
|
|
|
|
OSINFOS= ${OPSYS:L}-${OSRELEASE}-${ARCH}
|
2006-05-08 14:25:19 +00:00
|
|
|
|
2007-04-05 02:17:16 +00:00
|
|
|
PLIST_SUB+= PYRBTREE_EGG=${PYRBTREE_EGG}
|
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
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-platlib -s lib.${OSINFOS}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c build -o build-temp -s temp.${OSINFOS}-${PYTHON_VER}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist_egg -o plat-name -s ${OSINFOS}
|
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py setopt -c bdist -o plat-name -s ${OSINFOS}
|
|
|
|
|
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-04-05 02:17:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
OSRELEASE!= uname -r
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|