diff options
author | stefan <stefan@FreeBSD.org> | 2014-05-25 21:24:36 +0800 |
---|---|---|
committer | stefan <stefan@FreeBSD.org> | 2014-05-25 21:24:36 +0800 |
commit | baf404bfa28d0ec706ca2ca377e3b5581194b5bd (patch) | |
tree | 826686bc79904c2d10925aeb9448efa5924154c5 /net/py-GeoIP | |
parent | eb392feb3311c2a1dc6e1383f3a0e9f755f7b369 (diff) | |
download | freebsd-ports-graphics-baf404bfa28d0ec706ca2ca377e3b5581194b5bd.tar.gz freebsd-ports-graphics-baf404bfa28d0ec706ca2ca377e3b5581194b5bd.tar.zst freebsd-ports-graphics-baf404bfa28d0ec706ca2ca377e3b5581194b5bd.zip |
- Add staging support.
- Fetch from GitHub.
Diffstat (limited to 'net/py-GeoIP')
-rw-r--r-- | net/py-GeoIP/Makefile | 18 | ||||
-rw-r--r-- | net/py-GeoIP/distinfo | 4 | ||||
-rw-r--r-- | net/py-GeoIP/pkg-descr | 2 |
3 files changed, 14 insertions, 10 deletions
diff --git a/net/py-GeoIP/Makefile b/net/py-GeoIP/Makefile index e797695eae4..dc41c10a6e8 100644 --- a/net/py-GeoIP/Makefile +++ b/net/py-GeoIP/Makefile @@ -4,14 +4,21 @@ PORTNAME= GeoIP PORTVERSION= 1.2.8 CATEGORIES= net python geography -MASTER_SITES= http://geolite.maxmind.com/download/geoip/api/python/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-Python-${PORTVERSION} MAINTAINER= stefan@FreeBSD.org COMMENT= Mapping of IP addresses/hostnames to country names in Python -LIB_DEPENDS= GeoIP.5:${PORTSDIR}/net/GeoIP +LICENSE= GPLv2 + +LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP + +USE_GITHUB= yes +GH_ACCOUNT= maxmind +GH_PROJECT= geoip-api-python +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 993f63c USE_PYTHON= yes USE_PYDISTUTILS=yes @@ -23,7 +30,6 @@ EXAMPLE_FILES= README test.py test_city.py test_org.py test_region.py PLIST_FILES= %%PYTHON_SITELIBDIR%%/GeoIP.so PORTEXAMPLES= README test.py test_city.py test_org.py test_region.py -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/setup.py \ @@ -32,12 +38,10 @@ post-patch: ${WRKSRC}/test_org.py \ ${WRKSRC}/test_region.py -.if !defined(NOPORTEXAMPLES) post-install: - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for file in ${EXAMPLE_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR} + @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR} .endfor -.endif .include <bsd.port.mk> diff --git a/net/py-GeoIP/distinfo b/net/py-GeoIP/distinfo index eecad6cdf38..5ec98a5d490 100644 --- a/net/py-GeoIP/distinfo +++ b/net/py-GeoIP/distinfo @@ -1,2 +1,2 @@ -SHA256 (GeoIP-Python-1.2.8.tar.gz) = 8b946307355b60cb0f2b0be8ac90c1231286e0e79917509763267fce01a50e73 -SIZE (GeoIP-Python-1.2.8.tar.gz) = 15595 +SHA256 (GeoIP-Python-1.2.8.tar.gz) = b876c23ddf0356dc92f7391ef1ed83a24d8b8c2f3860c73b09c398ec0bfc7dba +SIZE (GeoIP-Python-1.2.8.tar.gz) = 15755 diff --git a/net/py-GeoIP/pkg-descr b/net/py-GeoIP/pkg-descr index d5b9ff7d0a4..82d25f6c2d5 100644 --- a/net/py-GeoIP/pkg-descr +++ b/net/py-GeoIP/pkg-descr @@ -1,4 +1,4 @@ Python API to the GeoIP library for obtaining the country, region, city, latitude, and longitude of any IP address. -WWW: http://www.maxmind.com/app/python +WWW: https://github.com/maxmind/geoip-api-python |