svn commit: r455032 - head/benchmarks/pybench

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Nov 28 11:38:10 UTC 2017


Author: amdmi3
Date: Tue Nov 28 11:38:09 2017
New Revision: 455032
URL: https://svnweb.freebsd.org/changeset/ports/455032

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Optionize docs
  - Tweak build/install verbosity

Modified:
  head/benchmarks/pybench/Makefile

Modified: head/benchmarks/pybench/Makefile
==============================================================================
--- head/benchmarks/pybench/Makefile	Tue Nov 28 11:29:23 2017	(r455031)
+++ head/benchmarks/pybench/Makefile	Tue Nov 28 11:38:09 2017	(r455032)
@@ -10,32 +10,40 @@ MASTER_SITES=	http://downloads.egenix.com/python/
 MAINTAINER=	ports at 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>


More information about the svn-ports-all mailing list