|
Lines 3-8
Link Here
|
| 3 |
|
3 |
|
| 4 |
PORTNAME= maxminddb |
4 |
PORTNAME= maxminddb |
| 5 |
PORTVERSION= 1.2.0 |
5 |
PORTVERSION= 1.2.0 |
|
|
6 |
PORTREVISION= 1 |
| 6 |
DISTVERSIONPREFIX= v |
7 |
DISTVERSIONPREFIX= v |
| 7 |
CATEGORIES= net python geography |
8 |
CATEGORIES= net python geography |
| 8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
|
Lines 13-19
Link Here
|
| 13 |
LICENSE= APACHE20 |
14 |
LICENSE= APACHE20 |
| 14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
| 15 |
|
16 |
|
| 16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>0:${PORTSDIR}/devel/py-ipaddr |
|
|
| 17 |
LIB_DEPENDS= libmaxminddb.so:${PORTSDIR}/net/libmaxminddb |
17 |
LIB_DEPENDS= libmaxminddb.so:${PORTSDIR}/net/libmaxminddb |
| 18 |
|
18 |
|
| 19 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
|
Lines 20-28
Link Here
|
| 20 |
GH_ACCOUNT= maxmind |
20 |
GH_ACCOUNT= maxmind |
| 21 |
GH_PROJECT= MaxMind-DB-Reader-python |
21 |
GH_PROJECT= MaxMind-DB-Reader-python |
| 22 |
|
22 |
|
| 23 |
USES= python |
23 |
USES= localbase python |
| 24 |
USE_PYTHON= autoplist distutils |
24 |
USE_PYTHON= autoplist distutils |
| 25 |
|
25 |
|
| 26 |
CPPFLAGS+= -I${LOCALBASE}/include |
26 |
.include <bsd.port.pre.mk> |
| 27 |
|
27 |
|
| 28 |
.include <bsd.port.mk> |
28 |
.if ${PYTHON_REL} < 3300 |
|
|
29 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:${PORTSDIR}/devel/py-ipaddr |
| 30 |
.endif |
| 31 |
|
| 32 |
post-install: |
| 33 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/maxminddb/extension.so |
| 34 |
|
| 35 |
.include <bsd.port.post.mk> |