blob: a1d7409cca2690e2c6d01270ce45bd0c34bcc94b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# 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
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/maxminddb/extension.so
.include <bsd.port.post.mk>
|