summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-11-29 09:54:14 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-11-29 09:54:14 +0000
commitac63a9b1cc60b4dfd902b6e67ab057e1d18aefdc (patch)
tree17998987fb3b3e2333b9da38d83f9ab60a05e2f9 /net
parentDeprecate ports broken for more than 6 months (diff)
- Fix RUN_DEPENDS
- Use USES=localbase - Strip shared library - Bump PORTREVISION for dependency and package change PR: 204869 Submitted by: sunpoet (myself) Approved by: Olivier Cochard-Labbe <olivier@cochard.me> (maintainer)
Notes
Notes: svn path=/head/; revision=402587
Diffstat (limited to 'net')
-rw-r--r--net/py-maxminddb/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/net/py-maxminddb/Makefile b/net/py-maxminddb/Makefile
index 8af4d2c3e54f..f4aa727b7769 100644
--- a/net/py-maxminddb/Makefile
+++ b/net/py-maxminddb/Makefile
@@ -4,6 +4,7 @@
PORTNAME= maxminddb
PORTVERSION= 1.2.0
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= net python geography
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,16 +14,22 @@ COMMENT= Python module for reading MaxMind DB file
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>0:${PORTSDIR}/devel/py-ipaddr
LIB_DEPENDS= libmaxminddb.so:${PORTSDIR}/net/libmaxminddb
USE_GITHUB= yes
GH_ACCOUNT= maxmind
GH_PROJECT= MaxMind-DB-Reader-python
-USES= python
+USES= localbase python
USE_PYTHON= autoplist distutils
-CPPFLAGS+= -I${LOCALBASE}/include
+.include <bsd.port.pre.mk>
-.include <bsd.port.mk>
+.if ${PYTHON_REL} < 3300
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:${PORTSDIR}/devel/py-ipaddr
+.endif
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/maxminddb/extension.so
+
+.include <bsd.port.post.mk>