summaryrefslogtreecommitdiff
path: root/security/py-pyvex
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 23:11:12 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 23:11:12 +0000
commitbda121eea205db1f0378b0153acc6e2fc61dd326 (patch)
treeba37cd548f20569bf92ea6fdceb0d14522350485 /security/py-pyvex
parentAdd tests (diff)
Add a missing runtime dependency and tests
Also, require a very specific version of devel/py-archinfo as it is a part of the Angr project.
Notes
Notes: svn path=/head/; revision=527900
Diffstat (limited to 'security/py-pyvex')
-rw-r--r--security/py-pyvex/Makefile16
-rw-r--r--security/py-pyvex/distinfo4
2 files changed, 17 insertions, 3 deletions
diff --git a/security/py-pyvex/Makefile b/security/py-pyvex/Makefile
index 33350d30f531..f2c638ec43cd 100644
--- a/security/py-pyvex/Makefile
+++ b/security/py-pyvex/Makefile
@@ -1,10 +1,12 @@
# $FreeBSD$
PORTNAME= pyvex
-PORTVERSION= 8.20.1.7
+DISTVERSION= 8.20.1.7
+PORTREVISION= 1
CATEGORIES= security devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Python interface to libVEX and VEX IR
@@ -20,12 +22,16 @@ ONLY_FOR_ARCHS_REASON= pyvex_c/pyvex.c does not support this architecture (see l
BUILD_DEPENDS= ${_MY_DEPENDS}
RUN_DEPENDS= ${_MY_DEPENDS} \
- ${PYTHON_PKGNAMEPREFIX}archinfo>0:devel/py-archinfo@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}archinfo==${DISTVERSION}:devel/py-archinfo@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}bitstring>0:devel/py-bitstring@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycparser>0:devel/py-pycparser@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
USES= gmake localbase python:3.5+
USE_CSTD= c99
+USE_GITHUB= nodefault
+GH_TUPLE= angr:${PORTNAME}:4fa68d58618a7635b281c9d06263c75fb9bf357f:tests
USE_PYTHON= autoplist distutils
MAKE_ENV= EXTRA_CFLAGS="${CFLAGS}"
@@ -42,4 +48,10 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/lib/lib${PORTNAME}.so
+pre-test:
+ @${LN} -Fs ${WRKSRC_tests}/tests ${WRKSRC}/tests
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER} tests/*)
+
.include <bsd.port.mk>
diff --git a/security/py-pyvex/distinfo b/security/py-pyvex/distinfo
index 9c0b60f4557e..c563a0143773 100644
--- a/security/py-pyvex/distinfo
+++ b/security/py-pyvex/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1583168013
+TIMESTAMP = 1583535389
SHA256 (pyvex-8.20.1.7.tar.gz) = 16d84ffb61d70d735861599d9f8cb21c33a22cbc9852de4acaa6569991a2e1ce
SIZE (pyvex-8.20.1.7.tar.gz) = 1729320
+SHA256 (angr-pyvex-4fa68d58618a7635b281c9d06263c75fb9bf357f_GH0.tar.gz) = 33e76741d598319c00a8d0c70d8e7151985e3e397cd97d45c5f64c8cb548dbb1
+SIZE (angr-pyvex-4fa68d58618a7635b281c9d06263c75fb9bf357f_GH0.tar.gz) = 85478