Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2015 18:08:36 +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: r386466 - in head/net: . py-GeoIP2
Message-ID:  <201505151808.t4FI8apv088926@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: xmj
Date: Fri May 15 18:08:36 2015
New Revision: 386466
URL: https://svnweb.freebsd.org/changeset/ports/386466

Log:
  net/py-GeoIP2: add port
  
  Python API to the GeoIP2 library for obtaining the country, region, city,
  latitude, and longitude of any IP address.
  
  WWW: https://github.com/maxmind/GeoIP2-python
  
  PR:		199815
  Submitted by:	Olivier Cochard-Labbé <olivier@cochard.me>

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

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri May 15 18:05:41 2015	(r386465)
+++ head/net/Makefile	Fri May 15 18:08:36 2015	(r386466)
@@ -897,6 +897,7 @@
     SUBDIR += pxe
     SUBDIR += pxe-pdhcp
     SUBDIR += py-GeoIP
+    SUBDIR += py-GeoIP2
     SUBDIR += py-amqp
     SUBDIR += py-amqplib
     SUBDIR += py-avahi

Added: head/net/py-GeoIP2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-GeoIP2/Makefile	Fri May 15 18:08:36 2015	(r386466)
@@ -0,0 +1,27 @@
+# Created by: Olivier Cochard-Labbé <olivier@cochard.me>
+# $FreeBSD$
+
+PORTNAME=	GeoIP2
+PORTVERSION=	2.1.0
+CATEGORIES=	net python geography
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME}-Python-${PORTVERSION}
+
+MAINTAINER=	olivier@cochard.me
+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
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	maxmind
+GH_PROJECT=	GeoIP2-python
+GH_TAGNAME=	v${PORTVERSION}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>

Added: head/net/py-GeoIP2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-GeoIP2/distinfo	Fri May 15 18:08:36 2015	(r386466)
@@ -0,0 +1,2 @@
+SHA256 (GeoIP2-Python-2.1.0_GH0.tar.gz) = 1f0326b5e92212c1ed81f5e387438e73ff61154ea2194656f4dc366d2314554e
+SIZE (GeoIP2-Python-2.1.0_GH0.tar.gz) = 28215

Added: head/net/py-GeoIP2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/py-GeoIP2/pkg-descr	Fri May 15 18:08:36 2015	(r386466)
@@ -0,0 +1,4 @@
+Python API to the GeoIP2 library for obtaining the country, region, city,
+latitude, and longitude of any IP address.
+
+WWW: https://github.com/maxmind/GeoIP2-python



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