mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Add staging support.
- Fetch from GitHub.
This commit is contained in:
parent
83ac3f27f6
commit
4bd5fd777f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355243
@ -4,14 +4,21 @@
|
|||||||
PORTNAME= GeoIP
|
PORTNAME= GeoIP
|
||||||
PORTVERSION= 1.2.8
|
PORTVERSION= 1.2.8
|
||||||
CATEGORIES= net python geography
|
CATEGORIES= net python geography
|
||||||
MASTER_SITES= http://geolite.maxmind.com/download/geoip/api/python/
|
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
DISTNAME= ${PORTNAME}-Python-${PORTVERSION}
|
DISTNAME= ${PORTNAME}-Python-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= stefan@FreeBSD.org
|
MAINTAINER= stefan@FreeBSD.org
|
||||||
COMMENT= Mapping of IP addresses/hostnames to country names in Python
|
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_PYTHON= yes
|
||||||
USE_PYDISTUTILS=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
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/GeoIP.so
|
||||||
PORTEXAMPLES= README test.py test_city.py test_org.py test_region.py
|
PORTEXAMPLES= README test.py test_city.py test_org.py test_region.py
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
||||||
${WRKSRC}/setup.py \
|
${WRKSRC}/setup.py \
|
||||||
@ -32,12 +38,10 @@ post-patch:
|
|||||||
${WRKSRC}/test_org.py \
|
${WRKSRC}/test_org.py \
|
||||||
${WRKSRC}/test_region.py
|
${WRKSRC}/test_region.py
|
||||||
|
|
||||||
.if !defined(NOPORTEXAMPLES)
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.for file in ${EXAMPLE_FILES}
|
.for file in ${EXAMPLE_FILES}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (GeoIP-Python-1.2.8.tar.gz) = 8b946307355b60cb0f2b0be8ac90c1231286e0e79917509763267fce01a50e73
|
SHA256 (GeoIP-Python-1.2.8.tar.gz) = b876c23ddf0356dc92f7391ef1ed83a24d8b8c2f3860c73b09c398ec0bfc7dba
|
||||||
SIZE (GeoIP-Python-1.2.8.tar.gz) = 15595
|
SIZE (GeoIP-Python-1.2.8.tar.gz) = 15755
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Python API to the GeoIP library for obtaining the country, region, city,
|
Python API to the GeoIP library for obtaining the country, region, city,
|
||||||
latitude, and longitude of any IP address.
|
latitude, and longitude of any IP address.
|
||||||
|
|
||||||
WWW: http://www.maxmind.com/app/python
|
WWW: https://github.com/maxmind/geoip-api-python
|
||||||
|
Loading…
Reference in New Issue
Block a user