From 991ba577ea09c5a485484d208d924f47847c2d80 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 22 Feb 2018 08:09:08 +0000 Subject: math/py-bottleneck: Added USE_PYTHON=concurrent; stripped shared libs; added LICENSE_FILE Also split out post-install-DOCS-on. Approved by: tcberner (mentor, implicit) --- math/py-bottleneck/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'math/py-bottleneck') diff --git a/math/py-bottleneck/Makefile b/math/py-bottleneck/Makefile index 90246581a891..a8c06275a3a2 100644 --- a/math/py-bottleneck/Makefile +++ b/math/py-bottleneck/Makefile @@ -3,6 +3,7 @@ PORTNAME= bottleneck PORTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= math python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,13 +13,14 @@ MAINTAINER= johannes@perceivon.net COMMENT= Collection of fast NumPy array functions written in Cython LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${FLAVOR} USES= python -USE_PYTHON= distutils autoplist cython +USE_PYTHON= distutils cython autoplist concurrent OPTIONS_DEFINE= DOCS DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} @@ -28,8 +30,10 @@ regression-test: build @cd ${WRKSRC} && nosetests post-install: - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.rst ${WRKSRC}/RELEASE.rst ${STAGEDIR}${DOCSDIR} + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bottleneck/*.so + +post-install-DOCS-on: cd ${WRKSRC}/doc/source/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.rst ${WRKSRC}/RELEASE.rst ${STAGEDIR}${DOCSDIR} .include -- cgit v1.2.3