From 84cfc95eeee58ab7c0143ddc84e2cc3a7a761e71 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Sun, 16 Aug 2020 13:58:39 +0000 Subject: [PATCH] security/py-ecdsa: update to 0.15 While here, add optional dependency on gmp or gmp2 for faster arithmetic PR: 247823 Reported by: ehaupt Approved by: koobs (maintainer) --- security/py-ecdsa/Makefile | 17 +++++++++++++---- security/py-ecdsa/distinfo | 6 +++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/security/py-ecdsa/Makefile b/security/py-ecdsa/Makefile index 0ae6830ed099..5c8302200e79 100644 --- a/security/py-ecdsa/Makefile +++ b/security/py-ecdsa/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= ecdsa -PORTVERSION= 0.13.3 +PORTVERSION= 0.15 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,12 +13,21 @@ COMMENT= ECDSA cryptographic signature library (pure python) LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR} + USES= python USE_PYTHON= distutils autoplist +OPTIONS_RADIO= FASTER +OPTIONS_RADIO_FASTER= GMPY GMPY2 +OPTIONS_DEFAULT= GMPY2 + +GMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy>=0:math/py-gmpy@${PY_FLAVOR} +GMPY2_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gmpy2>=0:math/py-gmpy2@${PY_FLAVOR} + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} + NO_ARCH= yes -do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test - .include diff --git a/security/py-ecdsa/distinfo b/security/py-ecdsa/distinfo index 0d58db019d2a..a10a699949c3 100644 --- a/security/py-ecdsa/distinfo +++ b/security/py-ecdsa/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1597535431 -SHA256 (ecdsa-0.13.3.tar.gz) = 163c80b064a763ea733870feb96f9dd9b92216cfcacd374837af18e4e8ec3d4d -SIZE (ecdsa-0.13.3.tar.gz) = 60477 +TIMESTAMP = 1595417334 +SHA256 (ecdsa-0.15.tar.gz) = 8f12ac317f8a1318efa75757ef0a651abe12e51fc1af8838fb91079445227277 +SIZE (ecdsa-0.15.tar.gz) = 122119