Support stage

This commit is contained in:
Baptiste Daroussin 2014-01-05 00:53:05 +00:00
parent 48213b26e0
commit bd1e989923
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338724

View File

@ -5,37 +5,31 @@ PORTNAME= pybench
PORTVERSION= 2.0
CATEGORIES= benchmarks python
MASTER_SITES= http://downloads.egenix.com/python/
EXTRACT_SUFX= .zip
MAINTAINER= sylvio@FreeBSD.org
COMMENT= An extensible benchmark suite for Python
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_ZIP= yes
USE_PYTHON= yes
PORTDOCS= README
NO_STAGE= yes
.include <bsd.port.options.mk>
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
@${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${TAR} --exclude README -c -f - .) \
| (cd ${DATADIR} && ${TAR} --unlink -x -f -)
@${MKDIR} ${STAGEDIR}${DATADIR}
@${TAR} --exclude README -C ${WRKSRC} -c -f - . \
| ${TAR} --unlink -x -C ${STAGEDIR}${DATADIR} -f -
@${PRINTF} '#!/bin/sh\n${PYTHON_CMD} ${DATADIR}/pybench.py "$$@"\n' \
> ${WRKDIR}/pybench.sh
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${PREFIX}/bin/pybench
@${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${STAGEDIR}${PREFIX}/bin/pybench
.include <bsd.port.mk>