mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
4376dbbb58
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
35 lines
767 B
Makefile
35 lines
767 B
Makefile
# Created by: Olivier Cochard-Labbé <olivier@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= maxminddb
|
|
PORTVERSION= 1.3.0
|
|
DISTVERSIONPREFIX= v
|
|
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 <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 3300
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:devel/py-ipaddr@${PY_FLAVOR}
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/maxminddb/extension.so
|
|
|
|
.include <bsd.port.post.mk>
|