openbsd-ports/net/py-GeoIP/Makefile

38 lines
880 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.7 2011/05/12 15:33:59 giovanni Exp $
COMMENT = GeoIP Python API
MODPY_EGG_VERSION = 1.2.5
DISTNAME = GeoIP-Python-${MODPY_EGG_VERSION}
PKGNAME = py-GeoIP-${MODPY_EGG_VERSION}
CATEGORIES = net
HOMEPAGE = http://www.maxmind.com/app/python
2009-12-20 12:01:59 -05:00
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# LGPL v2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://geolite.maxmind.com/download/geoip/api/python/
MODULES = lang/python
2010-11-19 17:31:32 -05:00
LIB_DEPENDS = net/GeoIP
WANTLIB = GeoIP>=8
EXAMPLEDIR = ${PREFIX}/share/examples/py-GeoIP
NO_REGRESS = Yes
pre-build:
@perl -pi -e "s,^\#\!/usr/bin/python,#!${MODPY_BIN}," ${WRKSRC}/test*.py
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/test* ${EXAMPLEDIR}
.include <bsd.port.mk>