- Respect ${LOCALBASE}

- Bump PORTREVISION

PR:		87575
Submitted by:	Stefan Walter <sw@gegenunendlich.de> (maintainer)
Approved by:	novel (mentor) (implicit)
This commit is contained in:
Emanuel Haupt 2005-10-17 21:34:01 +00:00
parent 534e400359
commit b1be70ed2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145688

View file

@ -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}