openbsd-ports/net/py-GeoIP/Makefile

42 lines
891 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2014/03/18 19:24:59 sthen Exp $
COMMENT = GeoIP Python API
MODPY_EGG_VERSION = 1.2.9
DISTNAME = GeoIP-${MODPY_EGG_VERSION}
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
CATEGORIES = net
HOMEPAGE = http://dev.maxmind.com/geoip/
2009-12-20 12:01:59 -05:00
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# LGPL v2.1
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${MODPY_WANTLIB} GeoIP>=8 pthread
MASTER_SITES = ${MASTER_SITE_PYPI:=G/GeoIP/}
MODULES = lang/python
MODPY_ADJ_FILES = test*.py
LIB_DEPENDS = net/GeoIP>=1.4.7
EXAMPLEDIR = ${PREFIX}/share/examples/py-GeoIP
pre-patch:
perl -pi -e 's,/usr/local/share/GeoIP,${LOCALSTATEDIR}/db/GeoIP,g' \
${WRKSRC}/*.py
2013-03-11 07:35:43 -04:00
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
.include <bsd.port.mk>