Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2015 20:24:49 +0000 (UTC)
From:      Johannes Jost Meixner <xmj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386478 - in head/net: . py-GeoIP2 py-maxminddb
Message-ID:  <201505152024.t4FKOnWQ062059@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: xmj
Date: Fri May 15 20:24:49 2015
New Revision: 386478
URL: https://svnweb.freebsd.org/changeset/ports/386478

Log:
  net/py-maxminddb: add port
  
  Python module for reading MaxMind DB files. The module includes both a pure
  Python reader and a C extension.
  
  WWW: https://github.com/maxmind/MaxMind-DB-Reader-pytho
  
  While there, add this port as run-dependency  for net/py-GeoIP2.
  
  PR:		199814
  Submitted by:	Olivier Cochard-Labbé <olivier@cochard.me>

Added:
  head/net/py-maxminddb/
  head/net/py-maxminddb/Makefile   (contents, props changed)
  head/net/py-maxminddb/distinfo   (contents, props changed)
  head/net/py-maxminddb/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile
  head/net/py-GeoIP2/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri May 15 20:05:26 2015	(r386477)
+++ head/net/Makefile	Fri May 15 20:24:49 2015	(r386478)
@@ -919,6 +919,7 @@
     SUBDIR += py-libcloud
     SUBDIR += py-libdnet
     SUBDIR += py-libnet
+    SUBDIR += py-maxminddb
     SUBDIR += py-medusa
     SUBDIR += py-miniupnpc
     SUBDIR += py-msrplib

Modified: head/net/py-GeoIP2/Makefile
==============================================================================
--- head/net/py-GeoIP2/Makefile	Fri May 15 20:05:26 2015	(r386477)
+++ head/net/py-GeoIP2/Makefile	Fri May 15 20:24:49 2015	(r386478)
@@ -13,8 +13,8 @@ COMMENT=	MaxMind GeoIP2 Python API
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests
-LIB_DEPENDS=	libmaxminddb.so:${PORTSDIR}/net/libmaxminddb
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \
+		${PYTHON_PKGNAMEPREFIX}maxminddb>0:${PORTSDIR}/net/py-maxminddb
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	maxmind

Added: head/net/py-maxminddb/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-maxminddb/Makefile	Fri May 15 20:24:49 2015	(r386478)
@@ -0,0 +1,29 @@
+# Created by: Olivier Cochard-Labbé <olivier@cochard.me>
+# $FreeBSD$
+
+PORTNAME=	maxminddb
+PORTVERSION=	1.2.0
+CATEGORIES=	net python geography
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME}-Python-${PORTVERSION}
+
+MAINTAINER=	olivier@cochard.me
+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
+GH_TAGNAME=	v${PORTVERSION}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+
+.include <bsd.port.mk>

Added: head/net/py-maxminddb/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-maxminddb/distinfo	Fri May 15 20:24:49 2015	(r386478)
@@ -0,0 +1,2 @@
+SHA256 (maxminddb-Python-1.2.0_GH0.tar.gz) = dfb1953dba1ba9bf4a470554d5cf57d68124138b7c12f77a6a40c66613f24c8f
+SIZE (maxminddb-Python-1.2.0_GH0.tar.gz) = 28920

Added: head/net/py-maxminddb/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-maxminddb/pkg-descr	Fri May 15 20:24:49 2015	(r386478)
@@ -0,0 +1,4 @@
+Python module for reading MaxMind DB files. The module includes both a pure
+Python reader and a C extension.
+
+WWW: https://github.com/maxmind/MaxMind-DB-Reader-python



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