diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-17 21:34:01 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2005-10-17 21:34:01 +0000 |
commit | b1be70ed2c309ebb2efad87fa556100c281d71a9 (patch) | |
tree | 7bd5408118283bf56e347a45d597e27204374428 /net/py-GeoIP | |
parent | 534e40035908d4e8a8e1a36371748fc52689b4d6 (diff) | |
download | ports-b1be70ed2c309ebb2efad87fa556100c281d71a9.tar.gz ports-b1be70ed2c309ebb2efad87fa556100c281d71a9.zip |
Notes
Diffstat (limited to 'net/py-GeoIP')
-rw-r--r-- | net/py-GeoIP/Makefile | 10 |
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} |