summaryrefslogtreecommitdiff
path: root/dns/py-pycares
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2018-12-28 15:54:43 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2018-12-28 15:54:43 +0000
commita78b3c7096bd9e1af60df10e6957eaa004695dac (patch)
treec0a28294c0c22d0c435097267198ee5e6bb46e80 /dns/py-pycares
parent07ddabfbcf64c68fbc1d00c4b992926530c0a1f8 (diff)
downloadfreebsd-ports-a78b3c7096bd9e1af60df10e6957eaa004695dac.zip
dns/py-pycares: Update to 2.3.0
Changelog: https://github.com/saghul/pycares/blob/pycares-2.3.0/ChangeLog - Set LICENSE_FILE. - Define the do-test target. - Strip _core.so. PR: 234452 Reviewed by: krion@ Approved by: demon@ (maintainer), krion@ (mentor) Differential Revision: https://reviews.freebsd.org/D18671
Diffstat (limited to 'dns/py-pycares')
-rw-r--r--dns/py-pycares/Makefile11
-rw-r--r--dns/py-pycares/distinfo6
2 files changed, 12 insertions, 5 deletions
diff --git a/dns/py-pycares/Makefile b/dns/py-pycares/Makefile
index 8663cf0fbeb6..cb6fc9d789e1 100644
--- a/dns/py-pycares/Makefile
+++ b/dns/py-pycares/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pycares
-PORTVERSION= 2.1.0
+PORTVERSION= 2.3.0
CATEGORIES= dns python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,11 +11,18 @@ MAINTAINER= demon@FreeBSD.org
COMMENT= Python interface to c-ares
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
-USE_PYTHON= distutils autoplist
+USE_PYTHON= distutils autoplist concurrent
PYDISTUTILS_BUILD_TARGET= build_ext
PYDISTUTILS_BUILDARGS= --inplace --force
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/_core.so
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} tests/tests.py
+
.include <bsd.port.mk>
diff --git a/dns/py-pycares/distinfo b/dns/py-pycares/distinfo
index 5e7d1a3b2e45..3ed05da7adf0 100644
--- a/dns/py-pycares/distinfo
+++ b/dns/py-pycares/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1466077939
-SHA256 (pycares-2.1.0.tar.gz) = 449ad785ecb594ae063c0c86537ef97513385117a2eb172f747ad2a29221e898
-SIZE (pycares-2.1.0.tar.gz) = 226838
+TIMESTAMP = 1545947443
+SHA256 (pycares-2.3.0.tar.gz) = 36f4c03df57c41a87eb3d642201684eb5a8bc194f4bafaa9f60ee6dc0aef8e40
+SIZE (pycares-2.3.0.tar.gz) = 224941