aboutsummaryrefslogtreecommitdiffstats
path: root/net/ruby-net-geoip/Makefile
blob: 9ec50070d3d3257696e2677469b91d9ef57bcdd8 (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
# Created by: Sean Chittenden <seanc@FreeBSD.org>
# $FreeBSD$

PORTNAME=   net-geoip
PORTVERSION=    0.07
CATEGORIES= net ruby geography
MASTER_SITES=   http://geolite.maxmind.com/download/geoip/api/ruby/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=    ruby

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Ruby extension that wraps around libGeoIP

BUILD_DEPENDS=  GeoIP>=1.4.6:${PORTSDIR}/net/GeoIP
LIB_DEPENDS=    GeoIP.5:${PORTSDIR}/net/GeoIP

USES=       iconv
USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes
INSTALL_TARGET= site-install

DOCS=   README

post-install:
    @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor

.include <bsd.port.mk>