2004-02-28 22:03:52 +01:00
|
|
|
# New ports collection makefile for: py-GeoIP
|
|
|
|
# Date created: 27 February 2004
|
|
|
|
# Whom: Stefan Walter <sw@gegenunendlich.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= GeoIP
|
2011-07-17 14:24:47 +02:00
|
|
|
PORTVERSION= 1.2.5
|
2007-07-22 21:53:52 +02:00
|
|
|
CATEGORIES= net python geography
|
2009-02-01 19:56:17 +01:00
|
|
|
MASTER_SITES= http://geolite.maxmind.com/download/geoip/api/python/
|
2004-02-28 22:03:52 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ${PORTNAME}-Python-${PORTVERSION}
|
|
|
|
|
2006-05-07 15:32:13 +02:00
|
|
|
MAINTAINER= stefan@FreeBSD.org
|
2004-02-28 22:03:52 +01:00
|
|
|
COMMENT= Mapping of IP addresses/hostnames to country names in Python
|
|
|
|
|
2006-08-15 00:26:37 +02:00
|
|
|
LIB_DEPENDS= GeoIP.5:${PORTSDIR}/net/GeoIP
|
2004-02-28 22:03:52 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS=yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= GeoIP-Python
|
2004-02-28 22:03:52 +01:00
|
|
|
|
2008-10-07 15:52:13 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
2005-09-04 14:56:30 +02:00
|
|
|
EXAMPLE_FILES= README test.py test_city.py test_org.py test_region.py
|
2004-02-28 22:03:52 +01:00
|
|
|
|
2007-02-04 18:44:42 +01:00
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/GeoIP.so
|
2008-10-07 15:52:13 +02:00
|
|
|
PORTEXAMPLES= README test.py test_city.py test_org.py test_region.py
|
2004-02-28 22:03:52 +01:00
|
|
|
|
2005-10-17 23:34:01 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/setup.py \
|
|
|
|
${WRKSRC}/test.py \
|
|
|
|
${WRKSRC}/test_city.py \
|
|
|
|
${WRKSRC}/test_org.py \
|
|
|
|
${WRKSRC}/test_region.py
|
|
|
|
|
2008-10-07 15:52:13 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2004-02-28 22:03:52 +01:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for file in ${EXAMPLE_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|