Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/geoip: geoip-1.5.0-r1.ebuild geoip-1.5.0.ebuild ChangeLog
Date: Mon, 20 May 2013 15:26:39
Message-Id: 20130520152633.41EA42171D@flycatcher.gentoo.org
1 jer 13/05/20 15:26:33
2
3 Modified: geoip-1.5.0.ebuild ChangeLog
4 Added: geoip-1.5.0-r1.ebuild
5 Log:
6 Fix exec_prefix in pkg-config file.
7
8 (Portage version: 2.2.0_alpha176/cvs/Linux i686, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.6 dev-libs/geoip/geoip-1.5.0.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild?rev=1.6&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild?rev=1.6&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild?r1=1.5&r2=1.6
16
17 Index: geoip-1.5.0.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild,v
20 retrieving revision 1.5
21 retrieving revision 1.6
22 diff -u -r1.5 -r1.6
23 --- geoip-1.5.0.ebuild 20 May 2013 12:51:50 -0000 1.5
24 +++ geoip-1.5.0.ebuild 20 May 2013 15:26:33 -0000 1.6
25 @@ -1,8 +1,9 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild,v 1.5 2013/05/20 12:51:50 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.5.0.ebuild,v 1.6 2013/05/20 15:26:33 jer Exp $
30
31 EAPI=5
32 +inherit eutils
33
34 MY_P="${P/geoip/GeoIP}"
35 GEOLITE_URI="http://geolite.maxmind.com/download/geoip/database/"
36 @@ -37,6 +38,7 @@
37 S=${WORKDIR}/${MY_P}
38
39 src_prepare() {
40 + epatch "${FILESDIR}"/${P}-pkgconfig.patch
41 sed -e "s:usr local share GeoIP:usr share GeoIP:" \
42 -e "s:usr local etc:etc:" \
43 -i apps/geoipupdate-pureperl.pl || die
44
45
46
47 1.177 dev-libs/geoip/ChangeLog
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?rev=1.177&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?rev=1.177&content-type=text/plain
51 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/ChangeLog?r1=1.176&r2=1.177
52
53 Index: ChangeLog
54 ===================================================================
55 RCS file: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v
56 retrieving revision 1.176
57 retrieving revision 1.177
58 diff -u -r1.176 -r1.177
59 --- ChangeLog 20 May 2013 12:51:50 -0000 1.176
60 +++ ChangeLog 20 May 2013 15:26:33 -0000 1.177
61 @@ -1,6 +1,13 @@
62 # ChangeLog for dev-libs/geoip
63 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
64 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.176 2013/05/20 12:51:50 ago Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/ChangeLog,v 1.177 2013/05/20 15:26:33 jer Exp $
66 +
67 +*geoip-1.5.0-r1 (20 May 2013)
68 +
69 + 20 May 2013; Jeroen Roovers <jer@g.o>
70 + +files/geoip-1.5.0-pkgconfig.patch, +geoip-1.5.0-r1.ebuild,
71 + geoip-1.5.0.ebuild:
72 + Fix exec_prefix in pkg-config file.
73
74 20 May 2013; Agostino Sarubbo <ago@g.o> geoip-1.5.0.ebuild:
75 Stable for ppc, wrt bug #470386
76
77
78
79 1.1 dev-libs/geoip/geoip-1.5.0-r1.ebuild
80
81 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.0-r1.ebuild?rev=1.1&view=markup
82 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/geoip/geoip-1.5.0-r1.ebuild?rev=1.1&content-type=text/plain
83
84 Index: geoip-1.5.0-r1.ebuild
85 ===================================================================
86 # Copyright 1999-2013 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 # $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.5.0-r1.ebuild,v 1.1 2013/05/20 15:26:33 jer Exp $
89
90 EAPI=5
91 inherit eutils
92
93 MY_P="${P/geoip/GeoIP}"
94 GEOLITE_URI="http://geolite.maxmind.com/download/geoip/database/"
95
96 DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
97 HOMEPAGE="http://www.maxmind.com/app/ip-location"
98 SRC_URI="
99 http://www.maxmind.com/download/geoip/api/c/${MY_P}.tar.gz
100 ${GEOLITE_URI}asnum/GeoIPASNum.dat.gz
101 city? ( ${GEOLITE_URI}GeoLiteCity.dat.gz )
102 ipv6? (
103 ${GEOLITE_URI}GeoIPv6.dat.gz
104 city? ( ${GEOLITE_URI}GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz )
105 )
106 "
107
108 # GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
109 LICENSE="LGPL-2.1 GPL-2 MaxMind2"
110 SLOT="0"
111 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
112 IUSE="city ipv6 perl-geoipupdate static-libs"
113
114 DEPEND="sys-libs/zlib"
115 RDEPEND="
116 ${DEPEND}
117 perl-geoipupdate? (
118 dev-perl/PerlIO-gzip
119 dev-perl/libwww-perl
120 )
121 "
122
123 S=${WORKDIR}/${MY_P}
124
125 src_prepare() {
126 epatch "${FILESDIR}"/${P}-pkgconfig.patch
127 sed -e "s:usr local share GeoIP:usr share GeoIP:" \
128 -e "s:usr local etc:etc:" \
129 -i apps/geoipupdate-pureperl.pl || die
130 sed -e 's|yahoo.com|98.139.183.24|g' \
131 -i test/country_test_name.txt test/region_test.txt || die
132 }
133
134 src_configure() {
135 econf $(use_enable static-libs static)
136 }
137
138 src_install() {
139 default
140 use perl-geoipupdate && dobin apps/geoipupdate-pureperl.pl
141 dodoc AUTHORS ChangeLog README TODO conf/GeoIP.conf.default
142 rm "${ED}/etc/GeoIP.conf.default"
143 if ! use static-libs; then
144 rm -f "${ED}"/usr/lib*/lib*.la
145 fi
146
147 insinto /usr/share/GeoIP
148 doins "${WORKDIR}/GeoIPASNum.dat"
149 use city && newins "${WORKDIR}"/GeoLiteCity.dat GeoIPCity.dat
150
151 if use ipv6; then
152 doins "${WORKDIR}/GeoIPv6.dat"
153 use city && newins "${WORKDIR}"/GeoLiteCityv6.dat GeoIPCityv6.dat
154 fi
155
156 newsbin "${FILESDIR}/geoipupdate-r2.sh" geoipupdate.sh
157 }