From b1be70ed2c309ebb2efad87fa556100c281d71a9 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Mon, 17 Oct 2005 21:34:01 +0000 Subject: - Respect ${LOCALBASE} - Bump PORTREVISION PR: 87575 Submitted by: Stefan Walter (maintainer) Approved by: novel (mentor) (implicit) --- net/py-GeoIP/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'net/py-GeoIP') 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} -- cgit v1.2.3