Update to py-GeoIP-1.3.2.

This commit is contained in:
benoit 2014-11-11 15:58:35 +00:00
parent d63876e3d4
commit 236480e70d
3 changed files with 19 additions and 14 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.15 2014/03/18 19:24:59 sthen Exp $
# $OpenBSD: Makefile,v 1.16 2014/11/11 15:58:35 benoit Exp $
COMMENT = GeoIP Python API
MODPY_EGG_VERSION = 1.2.9
MODPY_EGG_VERSION = 1.3.2
DISTNAME = GeoIP-${MODPY_EGG_VERSION}
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
CATEGORIES = net
@ -19,7 +19,8 @@ WANTLIB += ${MODPY_WANTLIB} GeoIP>=8 pthread
MASTER_SITES = ${MASTER_SITE_PYPI:=G/GeoIP/}
MODULES = lang/python
MODPY_ADJ_FILES = test*.py
MODPY_ADJ_FILES = tests/test*.py
MODPY_SETUPTOOLS = Yes
LIB_DEPENDS = net/GeoIP>=1.4.7
@ -29,13 +30,13 @@ pre-patch:
perl -pi -e 's,/usr/local/share/GeoIP,${LOCALSTATEDIR}/db/GeoIP,g' \
${WRKSRC}/*.py
pre-configure:
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g' ${WRKSRC}/setup.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_SCRIPT} ${WRKSRC}/${MODPY_ADJ_FILES} ${EXAMPLEDIR}
TEST_DEPENDS = ${BUILD_PKGPATH}
do-test:
cd ${WRKSRC}; ${MODPY_BIN} test.py
NO_TEST = Yes
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (GeoIP-1.2.9.tar.gz) = OJLBUKu0i3+xK6c+2IVBt1MZA9K7tQuPYgZ/YefyScc=
SIZE (GeoIP-1.2.9.tar.gz) = 24567
SHA256 (GeoIP-1.3.2.tar.gz) = qJDaaiFXQFBpIZjxSweqQmigE3Enjfwk9xzZvIfr8OY=
SIZE (GeoIP-1.3.2.tar.gz) = 20127

View File

@ -1,12 +1,16 @@
@comment $OpenBSD: PLIST,v 1.5 2014/03/18 19:24:59 sthen Exp $
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
@comment $OpenBSD: PLIST,v 1.6 2014/11/11 15:58:35 benoit Exp $
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/GeoIP-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/GeoIP.so
share/examples/${MODPY_PY_PREFIX}GeoIP/
share/examples/${MODPY_PY_PREFIX}GeoIP/test.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_charset.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_city.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_city_charset.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_country.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_domain.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_netspeed.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_errors.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_netspeedcell.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_org.py
share/examples/${MODPY_PY_PREFIX}GeoIP/test_region.py