aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-GeoIP
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2005-10-18 05:34:01 +0800
committerehaupt <ehaupt@FreeBSD.org>2005-10-18 05:34:01 +0800
commit5840607d9fc4712411b14e1f48297d576504d345 (patch)
tree8d3ea6cb59a4dce0c2c29339b879514c6a8fb40c /net/py-GeoIP
parent3204aa4578655aa25af5889c10f087e8155ccc56 (diff)
downloadfreebsd-ports-gnome-5840607d9fc4712411b14e1f48297d576504d345.tar.gz
freebsd-ports-gnome-5840607d9fc4712411b14e1f48297d576504d345.tar.zst
freebsd-ports-gnome-5840607d9fc4712411b14e1f48297d576504d345.zip
- Respect ${LOCALBASE}
- Bump PORTREVISION PR: 87575 Submitted by: Stefan Walter <sw@gegenunendlich.de> (maintainer) Approved by: novel (mentor) (implicit)
Diffstat (limited to 'net/py-GeoIP')
-rw-r--r--net/py-GeoIP/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/py-GeoIP/Makefile b/net/py-GeoIP/Makefile
index 100f0222bc78..bc87e182034d 100644
--- a/net/py-GeoIP/Makefile
+++ b/net/py-GeoIP/Makefile
@@ -7,6 +7,7 @@
PORTNAME= GeoIP
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= http://www.maxmind.com/download/geoip/api/python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,6 +20,7 @@ LIB_DEPENDS= GeoIP.4:${PORTSDIR}/net/GeoIP
USE_PYTHON= yes
USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLE_FILES= README test.py test_city.py test_org.py test_region.py
@@ -31,6 +33,14 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/GeoIP.so \
%%PORTDOCS%%%%EXAMPLESDIR%%/test_region.py
PLIST_DIRS= %%PORTDOCS%%%%EXAMPLESDIR%%
+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
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}