From bd1e9899232dd980bc678e27337eab8aec04eecb Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 5 Jan 2014 00:53:05 +0000 Subject: [PATCH] Support stage --- benchmarks/pybench/Makefile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/benchmarks/pybench/Makefile b/benchmarks/pybench/Makefile index 0dd4fa9b970e..9a74e7526c53 100644 --- a/benchmarks/pybench/Makefile +++ b/benchmarks/pybench/Makefile @@ -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 - 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