Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2017 11:38:09 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455032 - head/benchmarks/pybench
Message-ID:  <201711281138.vASBc9Ml038024@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711281138.vASBc9Ml038024>