mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
- Update to 1.3.2
- Use USE_PYTHON=autoplist - Strip shared library - Fix shebang Changes: https://github.com/maxmind/geoip-api-python/blob/master/ChangeLog.md
This commit is contained in:
parent
2483ad6be6
commit
e9f32d44c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=389612
@ -2,10 +2,9 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= GeoIP
|
||||
PORTVERSION= 1.2.8
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.3.2
|
||||
CATEGORIES= net python geography
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
@ -15,32 +14,21 @@ LICENSE= GPLv2
|
||||
|
||||
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= maxmind
|
||||
GH_PROJECT= geoip-api-python
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= distutils
|
||||
PYDISTUTILS_PKGNAME= GeoIP-Python
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
USE_PYTHON= autoplist distutils
|
||||
USES= python shebangfix
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
||||
EXAMPLE_FILES= README test.py test_city.py test_org.py test_region.py
|
||||
PORTEXAMPLES= *
|
||||
|
||||
PLIST_FILES= %%PYTHON_SITELIBDIR%%/GeoIP.so
|
||||
PORTEXAMPLES= README test.py test_city.py test_org.py test_region.py
|
||||
SHEBANG_FILES= examples/*.py
|
||||
|
||||
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
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/examples/*.py
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.for file in ${EXAMPLE_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endfor
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/GeoIP.so
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
|
||||
cd ${WRKSRC}/examples/ && ${INSTALL_DATA} *.py ${STAGEDIR}${EXAMPLESDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (maxmind-geoip-api-python-v1.2.8_GH0.tar.gz) = 461f98ac76fadac87350567ac775ec9b4a3729c12594448056d4c2a0311ead96
|
||||
SIZE (maxmind-geoip-api-python-v1.2.8_GH0.tar.gz) = 15747
|
||||
SHA256 (GeoIP-1.3.2.tar.gz) = a890da6a21574050692198f14b07aa4268a01371278dfc24f71cd9bc87ebf0e6
|
||||
SIZE (GeoIP-1.3.2.tar.gz) = 20127
|
||||
|
Loading…
Reference in New Issue
Block a user