From owner-svn-ports-head@freebsd.org Tue Nov 28 11:38:10 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 570CEE535AE; Tue, 28 Nov 2017 11:38:10 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23CBC1C9A; Tue, 28 Nov 2017 11:38:10 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vASBc9hF038025; Tue, 28 Nov 2017 11:38:09 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vASBc9Ml038024; Tue, 28 Nov 2017 11:38:09 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201711281138.vASBc9Ml038024@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 28 Nov 2017 11:38:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r455032 - head/benchmarks/pybench X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/benchmarks/pybench X-SVN-Commit-Revision: 455032 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2017 11:38:10 -0000 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