- Allow concurrent installation (USE_PYTHON=concurrent)

- Add missing OPTIONS_DEFINE
- Remove EXAMPLESDIR
- Convert to new options target helper
- Bump PORTREVISION for package change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2015-09-02 17:04:19 +00:00
parent 398593c94b
commit e520ed5732
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395886

View File

@ -3,6 +3,7 @@
PORTNAME= GeoIP
PORTVERSION= 1.3.2
PORTREVISION= 1
CATEGORIES= net python geography
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -14,11 +15,12 @@ LICENSE= GPLv2
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
OPTIONS_DEFINE= EXAMPLES
CPPFLAGS+= -I${LOCALBASE}/include
USE_PYTHON= autoplist distutils
USE_PYTHON= autoplist concurrent distutils
USES= python shebangfix
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTEXAMPLES= *
SHEBANG_FILES= examples/*.py
@ -28,6 +30,8 @@ post-patch:
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/GeoIP.so
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/examples/ && ${INSTALL_DATA} *.py ${STAGEDIR}${EXAMPLESDIR}/