summaryrefslogtreecommitdiff
path: root/devel/py-pygit2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-pygit2/Makefile')
-rw-r--r--devel/py-pygit2/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/py-pygit2/Makefile b/devel/py-pygit2/Makefile
index 14d4d1ef21d1..215f8d53539f 100644
--- a/devel/py-pygit2/Makefile
+++ b/devel/py-pygit2/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pygit2
-PORTVERSION= 0.21.1
+PORTVERSION= 0.22.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,13 +11,20 @@ MAINTAINER= wg@FreeBSD.org
COMMENT= Python bindings for libgit2
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:${PORTSDIR}/devel/py-cffi
-LIB_DEPENDS= libgit2.so.0.${PORTVERSION:R:E}.0:${PORTSDIR}/devel/libgit2
+LIB_DEPENDS= libgit2.so:${PORTSDIR}/devel/libgit2
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_PYTHON= autoplist distutils
MAKE_ENV= LIBGIT2=${LOCALBASE}
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/*.so
+
.include <bsd.port.mk>