# Created by: Olivier Cochard-Labbé # $FreeBSD: head/net/py-maxminddb/Makefile 412348 2016-04-01 14:17:44Z mat $ PORTNAME= maxminddb PORTVERSION= 1.2.0 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= net python geography PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= olivier@FreeBSD.org COMMENT= Python module for reading MaxMind DB file LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb USE_GITHUB= yes GH_ACCOUNT= maxmind GH_PROJECT= MaxMind-DB-Reader-python USES= localbase python USE_PYTHON= autoplist distutils .include .if ${PYTHON_REL} < 3300 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:devel/py-ipaddr .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/maxminddb/extension.so .include