Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2015 09:54:14 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402587 - head/net/py-maxminddb
Message-ID:  <201511290954.tAT9sE4n031947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511290954.tAT9sE4n031947>