math/py-cypari2: update to 2.1.2.

- Switch to pypi.org;

- Strip libraries;

- Add a test target.
This commit is contained in:
Thierry Thomas 2021-04-23 16:04:03 +02:00
parent 26842ebb8a
commit f467fe075b
3 changed files with 16 additions and 13 deletions

View file

@ -1,8 +1,9 @@
# Created by: thierry@pompo.net
PORTNAME= cypari2
DISTVERSION= 2.1.2b1
PORTVERSION= 2.1.2
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
@ -14,14 +15,18 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR
LIB_DEPENDS= libgmp.so:math/gmp \
libpari.so:math/pari
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
USE_GITHUB= yes
GH_ACCOUNT= sagemath
#USE_GITHUB= yes
#GH_ACCOUNT= sagemath
USES= compiler:c11 perl5 python:3.6+
USE_PERL5= build
USES= compiler:c11 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
@ -40,4 +45,7 @@ post-build-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/docs/build/html/* ${STAGEDIR}${DOCSDIR}
do-test: install
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1616425865
SHA256 (sagemath-cypari2-2.1.2b1_GH0.tar.gz) = 8c58cb3c6a8e51e8f1319619761df747ae56823b159c3d326d2b11b0ca5598cd
SIZE (sagemath-cypari2-2.1.2b1_GH0.tar.gz) = 125863
TIMESTAMP = 1619180534
SHA256 (cypari2-2.1.2.tar.gz) = 03cd45edab8716ebbfdb754e65fea72e873c73dc91aec098fe4a01e35324ac7a
SIZE (cypari2-2.1.2.tar.gz) = 2178968

View file

@ -1,8 +1,3 @@
%%PYTHON_SITELIBDIR%%/cypari2-%%VER%%-py%%PYTHON_VER%%.egg-info/PKG-INFO
%%PYTHON_SITELIBDIR%%/cypari2-%%VER%%-py%%PYTHON_VER%%.egg-info/SOURCES.txt
%%PYTHON_SITELIBDIR%%/cypari2-%%VER%%-py%%PYTHON_VER%%.egg-info/dependency_links.txt
%%PYTHON_SITELIBDIR%%/cypari2-%%VER%%-py%%PYTHON_VER%%.egg-info/requires.txt
%%PYTHON_SITELIBDIR%%/cypari2-%%VER%%-py%%PYTHON_VER%%.egg-info/top_level.txt
%%PYTHON_SITELIBDIR%%/cypari2/__init__.py
%%PYTHON_SITELIBDIR%%/cypari2/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/cypari2/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc