svn commit: r402587 - head/net/py-maxminddb
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Nov 29 09:54:16 UTC 2015
Author: sunpoet
Date: Sun Nov 29 09:54:14 2015
New Revision: 402587
URL: https://svnweb.freebsd.org/changeset/ports/402587
Log:
- 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 at cochard.me> (maintainer)
Modified:
head/net/py-maxminddb/Makefile
Modified: head/net/py-maxminddb/Makefile
==============================================================================
--- head/net/py-maxminddb/Makefile Sun Nov 29 09:51:30 2015 (r402586)
+++ head/net/py-maxminddb/Makefile Sun Nov 29 09:54:14 2015 (r402587)
@@ -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 MaxMi
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>
More information about the svn-ports-all
mailing list