summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 22:41:09 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 22:41:09 +0000
commit8af72b04727bebf1c8f527db135a982fd70b29b7 (patch)
treed695da78199cf4b0893903311ee396494c2ffa2a
parentKDE Applications: update to 19.12.3 (diff)
Add tests for more robustness
Also while here: - Be very strict about the version of dependencies coming from the Angr project (security/py-pyvex in this cae). All Angr-related ports must be kept in sync with their versions. Suggested by: koobs
Notes
Notes: svn path=/head/; revision=527898
-rw-r--r--devel/py-cle/Makefile15
-rw-r--r--devel/py-cle/distinfo6
2 files changed, 19 insertions, 2 deletions
diff --git a/devel/py-cle/Makefile b/devel/py-cle/Makefile
index 7acff74c8681..4fa67d3abb3e 100644
--- a/devel/py-cle/Makefile
+++ b/devel/py-cle/Makefile
@@ -2,9 +2,11 @@
PORTNAME= cle
DISTVERSION= 8.20.1.7
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Pythonic interface to analyze binary formats
@@ -16,12 +18,23 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}minidump>0:devel/py-minidump@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pefile>0:devel/py-pefile@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pyvex>0:security/py-pyvex@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyvex==${DISTVERSION}}:security/py-pyvex@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.0:devel/py-sortedcontainers@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
USES= python:3.6+
+USE_GITHUB= nodefault
+GH_TUPLE= angr:${PORTNAME}:18f073190e37310737ee2d79ba52f72a481b4a9f:tests \
+ angr:binaries:f2de6d7a0474d22130ffadd042327536a6fda114:binaries
USE_PYTHON= autoplist distutils
NO_ARCH= yes
+pre-test:
+ @${LN} -s ${WRKSRC_tests}/tests ${WRKSRC}/tests
+ @${LN} -s ${WRKSRC_binaries} ${WRKDIR}/binaries
+
+do-test:
+ @(cd ${TEST_WRKSRC} && nosetests-${PYTHON_VER} tests/*)
+
.include <bsd.port.mk>
diff --git a/devel/py-cle/distinfo b/devel/py-cle/distinfo
index 0a0bdb201754..674b7df504fd 100644
--- a/devel/py-cle/distinfo
+++ b/devel/py-cle/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1583415399
+TIMESTAMP = 1583533671
SHA256 (cle-8.20.1.7.tar.gz) = 56909340143c929c1388f10bf6ca8b8ac731d586a679e0a9a75edad84af86e06
SIZE (cle-8.20.1.7.tar.gz) = 94407
+SHA256 (angr-cle-18f073190e37310737ee2d79ba52f72a481b4a9f_GH0.tar.gz) = 4d60da85f6793f8ffe7c7f43508774fc904843f62303db452c6e6f9c3b593f16
+SIZE (angr-cle-18f073190e37310737ee2d79ba52f72a481b4a9f_GH0.tar.gz) = 110973
+SHA256 (angr-binaries-f2de6d7a0474d22130ffadd042327536a6fda114_GH0.tar.gz) = 7bdc710d10db37d3105038eb4efda1b39e9d1149ecfaf35b1157381fe7275a4a
+SIZE (angr-binaries-f2de6d7a0474d22130ffadd042327536a6fda114_GH0.tar.gz) = 56385140