From 12e894e605e6a95e338042cd08c23450c281e858 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 19 Apr 2017 05:08:04 +0000 Subject: - Fix shebangs --- benchmarks/pybench/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'benchmarks') diff --git a/benchmarks/pybench/Makefile b/benchmarks/pybench/Makefile index 37b52dbb59f4..d9d233bbffde 100644 --- a/benchmarks/pybench/Makefile +++ b/benchmarks/pybench/Makefile @@ -3,6 +3,7 @@ PORTNAME= pybench PORTVERSION= 2.0 +PORTREVISION= 1 CATEGORIES= benchmarks python MASTER_SITES= http://downloads.egenix.com/python/ @@ -11,10 +12,16 @@ COMMENT= Extensible benchmark suite for Python WRKSRC= ${WRKDIR}/${PORTNAME} -USES= python zip +USES= python shebangfix zip +SHEBANG_FILES= platform.py PORTDOCS= README +post-patch: + ${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} -- cgit