aboutsummaryrefslogtreecommitdiff
path: root/archivers/py-python-snappy/Makefile
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2017-05-23 18:59:14 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2017-05-23 18:59:14 +0000
commit09c99a91daaafffe0addf52389793471252cc2bd (patch)
tree40f2774fff79965ef02a20a13ae7d23d08bdc2fb /archivers/py-python-snappy/Makefile
parent61a0e6b966a6723ac1fa586c0eb3c2e938606c48 (diff)
downloadports-09c99a91daaafffe0addf52389793471252cc2bd.tar.gz
ports-09c99a91daaafffe0addf52389793471252cc2bd.zip
- Update to 0.5.1
- Add do-test target
Notes
Notes: svn path=/head/; revision=441548
Diffstat (limited to 'archivers/py-python-snappy/Makefile')
-rw-r--r--archivers/py-python-snappy/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/archivers/py-python-snappy/Makefile b/archivers/py-python-snappy/Makefile
index b667e41c0457..5fb2c8bd87a1 100644
--- a/archivers/py-python-snappy/Makefile
+++ b/archivers/py-python-snappy/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= python-snappy
-PORTVERSION= 0.5
+PORTVERSION= 0.5.1
CATEGORIES= archivers devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,11 +11,16 @@ MAINTAINER= antoine@FreeBSD.org
COMMENT= Python library for the snappy compression library from Google
LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsnappy.so:archivers/snappy
USES= python
USE_PYTHON= distutils autoplist
CPPFLAGS+= -I${LOCALBASE}/include
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test_snappy.py)
.include <bsd.port.mk>