- Upgrade to 0.8.7

- clang 11 is now supported
- Strip the libraries
- Add a test target.
This commit is contained in:
Thierry Thomas 2021-01-20 21:08:29 +00:00
parent fe726971f3
commit a772b00a19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=562159
3 changed files with 15 additions and 16 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= pplpy
PORTVERSION= 0.8.4
PORTREVISION= 2
PORTVERSION= 0.8.7
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -22,25 +21,20 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libppl.so:devel/ppl
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2-devel>0:math/py-gmpy2-devel@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
USES= compiler:c++11-lang localbase python:3.6+
USE_PYTHON= cython distutils
.if !defined(WITH_DEBUG)
LDFLAGS+= -s
.endif
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_USES= gmake
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 110
# error: cannot initialize a parameter of type 'bool' with an rvalue of type 'nullptr_t'
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang10:devel/llvm10
CPP= ${LOCALBASE}/bin/clang-cpp10
CC= ${LOCALBASE}/bin/clang10
CXX= ${LOCALBASE}/bin/clang++10
.endif
do-build-DOCS-on:
(cd ${WRKSRC}/docs && ${GMAKE} html)
@ -48,4 +42,7 @@ post-build-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/docs/build/html/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
do-test: install
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1589635484
SHA256 (pplpy-0.8.4.tar.gz) = b962914d5814edab320d00c11ca396b70c4ce1e67db7a6d59c4b0a3772a16836
SIZE (pplpy-0.8.4.tar.gz) = 61932
TIMESTAMP = 1611174666
SHA256 (pplpy-0.8.7.tar.gz) = 500bd0f4ae1a76956fae7fcba77854f5ec3e64fce76803664983763c3f2bd8bd
SIZE (pplpy-0.8.7.tar.gz) = 65671

View file

@ -3,6 +3,8 @@
%%PYTHON_SITELIBDIR%%/ppl/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/ppl/bit_arrays.pxd
%%PYTHON_SITELIBDIR%%/ppl/bit_arrays.so
%%PYTHON_SITELIBDIR%%/ppl/congruence.pxd
%%PYTHON_SITELIBDIR%%/ppl/congruence.so
%%PYTHON_SITELIBDIR%%/ppl/constraint.pxd
%%PYTHON_SITELIBDIR%%/ppl/constraint.so
%%PYTHON_SITELIBDIR%%/ppl/generator.pxd