2014-03-18 15:24:59 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2014/03/18 19:24:59 sthen Exp $
|
2009-03-08 08:55:58 -04:00
|
|
|
|
|
|
|
COMMENT = GeoIP Python API
|
|
|
|
|
2014-03-18 15:24:59 -04:00
|
|
|
MODPY_EGG_VERSION = 1.2.9
|
|
|
|
DISTNAME = GeoIP-${MODPY_EGG_VERSION}
|
2010-07-12 18:07:37 -04:00
|
|
|
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
|
2009-03-08 08:55:58 -04:00
|
|
|
CATEGORIES = net
|
|
|
|
|
2013-03-11 05:15:13 -04:00
|
|
|
HOMEPAGE = http://dev.maxmind.com/geoip/
|
2009-03-08 08:55:58 -04:00
|
|
|
|
2009-12-20 12:01:59 -05:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2009-03-08 08:55:58 -04:00
|
|
|
|
|
|
|
# LGPL v2.1
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2014-03-18 15:24:59 -04:00
|
|
|
WANTLIB += ${MODPY_WANTLIB} GeoIP>=8 pthread
|
|
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_PYPI:=G/GeoIP/}
|
2009-03-08 08:55:58 -04:00
|
|
|
|
|
|
|
MODULES = lang/python
|
2011-06-13 04:47:51 -04:00
|
|
|
MODPY_ADJ_FILES = test*.py
|
2009-03-08 08:55:58 -04:00
|
|
|
|
2011-05-19 17:15:32 -04:00
|
|
|
LIB_DEPENDS = net/GeoIP>=1.4.7
|
2009-03-08 08:55:58 -04:00
|
|
|
|
|
|
|
EXAMPLEDIR = ${PREFIX}/share/examples/py-GeoIP
|
2014-03-18 15:24:59 -04:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
perl -pi -e 's,/usr/local/share/GeoIP,${LOCALSTATEDIR}/db/GeoIP,g' \
|
|
|
|
${WRKSRC}/*.py
|
2013-03-11 07:35:43 -04:00
|
|
|
|
2009-03-08 08:55:58 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
2011-10-09 05:18:50 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${MODPY_ADJ_FILES} ${EXAMPLEDIR}
|
2009-03-08 08:55:58 -04:00
|
|
|
|
2014-03-18 15:24:59 -04:00
|
|
|
TEST_DEPENDS = ${BUILD_PKGPATH}
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}; ${MODPY_BIN} test.py
|
|
|
|
|
2009-03-08 08:55:58 -04:00
|
|
|
.include <bsd.port.mk>
|