Support stage
This commit is contained in:
parent
48213b26e0
commit
bd1e989923
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338724
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user