blob: 391c0898d7e72436cae7a64ecb76c8970302797f (
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
35
36
37
|
# Created by: Stefan Walter <sw@gegenunendlich.de>
# $FreeBSD$
PORTNAME= GeoIP
PORTVERSION= 1.3.2
PORTREVISION= 1
CATEGORIES= net python geography
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Mapping of IP addresses/hostnames to country names in Python
LICENSE= GPLv2
LIB_DEPENDS= libGeoIP.so:net/GeoIP
OPTIONS_DEFINE= EXAMPLES
USE_PYTHON= autoplist concurrent distutils
USES= localbase python shebangfix
PORTEXAMPLES= *
SHEBANG_FILES= examples/*.py
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/examples/*.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/GeoIP.so
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/examples/ && ${INSTALL_DATA} *.py ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
|