diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-02-25 05:33:28 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-02-25 05:33:28 +0000 |
commit | 4dc7ffa1f5d12a789ebaf8a3c9d90c8e5fccdf65 (patch) | |
tree | 3e7a5aa840225b35ad53b2052b92283fefe4b18b | |
parent | Remove BUILD_DEPENDS (diff) |
Fix LICENSE_FILE
- Simplify concurrent installation:
- Use USE_PYTHON=concurrent
- Remove DOCSDIR
- Convert to test framework
- Install only selected documentation to DOCSDIR
- Do not silence installation message
- Bump PORTREVISION for package change
- Take maintainership
Notes
Notes:
svn path=/head/; revision=462922
-rw-r--r-- | math/py-bottleneck/Makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/math/py-bottleneck/Makefile b/math/py-bottleneck/Makefile index 7c60a6c55e07..50db60ac807b 100644 --- a/math/py-bottleneck/Makefile +++ b/math/py-bottleneck/Makefile @@ -3,37 +3,39 @@ PORTNAME= bottleneck PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Bottleneck-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Collection of fast NumPy array functions written in Cython LICENSE= BSD2CLAUSE -LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_FILE= ${WRKSRC}/bottleneck/LICENSE BUILD_DEPENDS= ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} -TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR} USES= python -USE_PYTHON= distutils cython autoplist concurrent +USE_PYTHON= autoplist concurrent cython distutils -OPTIONS_DEFINE= DOCS -DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} -PORTDOCS= * +DOCS= README.rst RELEASE.rst \ + doc/source/conf.py doc/source/index.rst doc/source/intro.rst doc/source/reference.rst +PORTDOCS= ${DOCS:T} -regression-test: build - @cd ${WRKSRC} && nosetests +OPTIONS_DEFINE= DOCS post-install: - @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bottleneck/*.so + ${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} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} + +do-test: + cd ${WRKSRC} && nosetests .include <bsd.port.mk> |