aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-11-28 19:38:09 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-11-28 19:38:09 +0800
commit8802b5b5b9d719aa1e9a050978bdfcbdc7a52e53 (patch)
treee9a9b07d9e681ef2ee531426e8caee3e7df8ca10 /benchmarks
parent02b84be30a8e65f3c63e708af73f2c03494cc524 (diff)
downloadfreebsd-ports-gnome-8802b5b5b9d719aa1e9a050978bdfcbdc7a52e53.tar.gz
freebsd-ports-gnome-8802b5b5b9d719aa1e9a050978bdfcbdc7a52e53.tar.zst
freebsd-ports-gnome-8802b5b5b9d719aa1e9a050978bdfcbdc7a52e53.zip
- Add LICENSE
- Add NO_ARCH - Optionize docs - Tweak build/install verbosity
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/pybench/Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/benchmarks/pybench/Makefile b/benchmarks/pybench/Makefile
index d9d233bbffde..fe154672080e 100644
--- a/benchmarks/pybench/Makefile
+++ b/benchmarks/pybench/Makefile
@@ -10,32 +10,40 @@ MASTER_SITES= http://downloads.egenix.com/python/
MAINTAINER= ports@FreeBSD.org
COMMENT= Extensible benchmark suite for Python
+LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= python shebangfix zip
SHEBANG_FILES= platform.py
+NO_ARCH= yes
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
post-patch:
- ${REINPLACE_CMD} -e 's|/usr/local/bin/python -O|${python_CMD}|' \
- ${WRKSRC}/pybench.py
+ @${REINPLACE_CMD} -e 's|/usr/local/bin/python -O|${python_CMD}|' \
+ ${WRKSRC}/pybench.py
@${FIND} ${WRKSRC} -name \*.bak -delete
do-build:
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+ ${PRINTF} '#!/bin/sh\n${PYTHON_CMD} ${DATADIR}/pybench.py "$$@"\n' \
+ > ${WRKDIR}/pybench.sh
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
- @${TAR} --exclude README -C ${WRKSRC} -c -f - . \
+ ${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
+ ${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${STAGEDIR}${PREFIX}/bin/pybench
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docs in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
.endfor
- @${INSTALL_SCRIPT} ${WRKDIR}/pybench.sh ${STAGEDIR}${PREFIX}/bin/pybench
.include <bsd.port.mk>