Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/gdal: gdal-1.10.0-r1.ebuild gdal-1.10.1.ebuild gdal-1.11.1-r1.ebuild gdal-1.11.1-r2.ebuild gdal-1.11.1-r3.ebuild gdal-1.9.2.ebuild ChangeLog
Date: Sat, 28 Feb 2015 15:52:58
Message-Id: 20150228155254.D48B712BE8@oystercatcher.gentoo.org
1 jlec 15/02/28 15:52:54
2
3 Modified: gdal-1.10.0-r1.ebuild gdal-1.10.1.ebuild
4 gdal-1.11.1-r1.ebuild gdal-1.11.1-r2.ebuild
5 gdal-1.9.2.ebuild ChangeLog
6 Added: gdal-1.11.1-r3.ebuild
7 Log:
8 replicate python scripts for each ABI; fix SLOT operators usage
9
10 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
11
12 Revision Changes Path
13 1.8 sci-libs/gdal/gdal-1.10.0-r1.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild?rev=1.8&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild?rev=1.8&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild?r1=1.7&r2=1.8
18
19 Index: gdal-1.10.0-r1.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild,v
22 retrieving revision 1.7
23 retrieving revision 1.8
24 diff -u -r1.7 -r1.8
25 --- gdal-1.10.0-r1.ebuild 31 Dec 2014 14:08:12 -0000 1.7
26 +++ gdal-1.10.0-r1.ebuild 28 Feb 2015 15:52:54 -0000 1.8
27 @@ -1,6 +1,6 @@
28 -# Copyright 1999-2014 Gentoo Foundation
29 +# Copyright 1999-2015 Gentoo Foundation
30 # Distributed under the terms of the GNU General Public License v2
31 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild,v 1.7 2014/12/31 14:08:12 dilfridge Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.0-r1.ebuild,v 1.8 2015/02/28 15:52:54 jlec Exp $
33
34 EAPI=5
35
36 @@ -21,7 +21,7 @@
37
38 RDEPEND="
39 dev-libs/expat
40 - media-libs/tiff
41 + media-libs/tiff:0=
42 sci-libs/libgeotiff
43 || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] )
44 armadillo? ( sci-libs/armadillo[lapack] )
45 @@ -31,8 +31,8 @@
46 gif? ( media-libs/giflib )
47 gml? ( >=dev-libs/xerces-c-3 )
48 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
49 - java? ( >=virtual/jre-1.6 )
50 - jpeg? ( virtual/jpeg )
51 + java? ( >=virtual/jre-1.6:* )
52 + jpeg? ( virtual/jpeg:0= )
53 jpeg2k? ( media-libs/jasper )
54 mysql? ( virtual/mysql )
55 netcdf? ( sci-libs/netcdf )
56 @@ -40,8 +40,8 @@
57 opencl? ( virtual/opencl )
58 pdf? ( app-text/poppler )
59 perl? ( dev-lang/perl )
60 - png? ( media-libs/libpng )
61 - postgres? ( >=dev-db/postgresql-8.4 )
62 + png? ( media-libs/libpng:0= )
63 + postgres? ( >=dev-db/postgresql-8.4:= )
64 python? ( dev-python/numpy )
65 ruby? ( dev-lang/ruby:1.9 )
66 sqlite? ( dev-db/sqlite:3 )
67
68
69
70 1.14 sci-libs/gdal/gdal-1.10.1.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild?rev=1.14&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild?rev=1.14&content-type=text/plain
74 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild?r1=1.13&r2=1.14
75
76 Index: gdal-1.10.1.ebuild
77 ===================================================================
78 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild,v
79 retrieving revision 1.13
80 retrieving revision 1.14
81 diff -u -r1.13 -r1.14
82 --- gdal-1.10.1.ebuild 31 Dec 2014 14:08:12 -0000 1.13
83 +++ gdal-1.10.1.ebuild 28 Feb 2015 15:52:54 -0000 1.14
84 @@ -1,6 +1,6 @@
85 -# Copyright 1999-2014 Gentoo Foundation
86 +# Copyright 1999-2015 Gentoo Foundation
87 # Distributed under the terms of the GNU General Public License v2
88 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild,v 1.13 2014/12/31 14:08:12 dilfridge Exp $
89 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.10.1.ebuild,v 1.14 2015/02/28 15:52:54 jlec Exp $
90
91 EAPI=5
92
93 @@ -25,7 +25,7 @@
94 dev-libs/expat
95 dev-libs/libpcre
96 dev-libs/libxml2
97 - media-libs/tiff
98 + media-libs/tiff:0=
99 sci-libs/libgeotiff
100 sys-libs/zlib[minizip(+)]
101 armadillo? ( sci-libs/armadillo[lapack] )
102 @@ -35,8 +35,8 @@
103 gif? ( media-libs/giflib )
104 gml? ( >=dev-libs/xerces-c-3 )
105 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
106 - java? ( >=virtual/jre-1.6 )
107 - jpeg? ( virtual/jpeg )
108 + java? ( >=virtual/jre-1.6:* )
109 + jpeg? ( virtual/jpeg:0= )
110 jpeg2k? ( media-libs/jasper )
111 mysql? ( virtual/mysql )
112 netcdf? ( sci-libs/netcdf )
113 @@ -45,8 +45,8 @@
114 opencl? ( virtual/opencl )
115 pdf? ( >=app-text/poppler-0.24.3:= )
116 perl? ( dev-lang/perl:= )
117 - png? ( media-libs/libpng )
118 - postgres? ( >=dev-db/postgresql-8.4 )
119 + png? ( media-libs/libpng:0= )
120 + postgres? ( >=dev-db/postgresql-8.4:* )
121 python? (
122 ${PYTHON_DEPS}
123 dev-python/setuptools[${PYTHON_USEDEP}]
124
125
126
127 1.9 sci-libs/gdal/gdal-1.11.1-r1.ebuild
128
129 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild?rev=1.9&view=markup
130 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild?rev=1.9&content-type=text/plain
131 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild?r1=1.8&r2=1.9
132
133 Index: gdal-1.11.1-r1.ebuild
134 ===================================================================
135 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild,v
136 retrieving revision 1.8
137 retrieving revision 1.9
138 diff -u -r1.8 -r1.9
139 --- gdal-1.11.1-r1.ebuild 12 Jan 2015 23:49:19 -0000 1.8
140 +++ gdal-1.11.1-r1.ebuild 28 Feb 2015 15:52:54 -0000 1.9
141 @@ -1,6 +1,6 @@
142 # Copyright 1999-2015 Gentoo Foundation
143 # Distributed under the terms of the GNU General Public License v2
144 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild,v 1.8 2015/01/12 23:49:19 grozin Exp $
145 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r1.ebuild,v 1.9 2015/02/28 15:52:54 jlec Exp $
146
147 EAPI=5
148
149 @@ -26,7 +26,7 @@
150 dev-libs/json-c
151 dev-libs/libpcre
152 dev-libs/libxml2
153 - media-libs/tiff
154 + media-libs/tiff:0=
155 sci-libs/libgeotiff
156 sys-libs/zlib[minizip(+)]
157 armadillo? ( sci-libs/armadillo[lapack] )
158 @@ -36,8 +36,8 @@
159 gif? ( media-libs/giflib )
160 gml? ( >=dev-libs/xerces-c-3 )
161 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
162 - java? ( >=virtual/jre-1.6 )
163 - jpeg? ( virtual/jpeg )
164 + java? ( >=virtual/jre-1.6:* )
165 + jpeg? ( virtual/jpeg:0= )
166 jpeg2k? ( media-libs/jasper )
167 mysql? ( virtual/mysql )
168 netcdf? ( sci-libs/netcdf )
169 @@ -46,8 +46,8 @@
170 opencl? ( virtual/opencl )
171 pdf? ( >=app-text/poppler-0.24.3:= )
172 perl? ( dev-lang/perl:= )
173 - png? ( media-libs/libpng )
174 - postgres? ( >=dev-db/postgresql-8.4 )
175 + png? ( media-libs/libpng:0= )
176 + postgres? ( >=dev-db/postgresql-8.4:* )
177 python? (
178 ${PYTHON_DEPS}
179 dev-python/setuptools[${PYTHON_USEDEP}]
180
181
182
183 1.2 sci-libs/gdal/gdal-1.11.1-r2.ebuild
184
185 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild?rev=1.2&view=markup
186 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild?rev=1.2&content-type=text/plain
187 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild?r1=1.1&r2=1.2
188
189 Index: gdal-1.11.1-r2.ebuild
190 ===================================================================
191 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild,v
192 retrieving revision 1.1
193 retrieving revision 1.2
194 diff -u -r1.1 -r1.2
195 --- gdal-1.11.1-r2.ebuild 24 Feb 2015 00:05:14 -0000 1.1
196 +++ gdal-1.11.1-r2.ebuild 28 Feb 2015 15:52:54 -0000 1.2
197 @@ -1,6 +1,6 @@
198 # Copyright 1999-2015 Gentoo Foundation
199 # Distributed under the terms of the GNU General Public License v2
200 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild,v 1.1 2015/02/24 00:05:14 xmw Exp $
201 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r2.ebuild,v 1.2 2015/02/28 15:52:54 jlec Exp $
202
203 EAPI=5
204
205 @@ -26,7 +26,7 @@
206 dev-libs/json-c
207 dev-libs/libpcre
208 dev-libs/libxml2
209 - media-libs/tiff
210 + media-libs/tiff:0=
211 sci-libs/libgeotiff
212 sys-libs/zlib[minizip(+)]
213 armadillo? ( sci-libs/armadillo[lapack] )
214 @@ -36,8 +36,8 @@
215 gif? ( media-libs/giflib )
216 gml? ( >=dev-libs/xerces-c-3 )
217 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
218 - java? ( >=virtual/jre-1.6 )
219 - jpeg? ( virtual/jpeg )
220 + java? ( >=virtual/jre-1.6:* )
221 + jpeg? ( virtual/jpeg:0= )
222 jpeg2k? ( media-libs/jasper )
223 mysql? ( virtual/mysql )
224 netcdf? ( sci-libs/netcdf )
225 @@ -46,8 +46,8 @@
226 opencl? ( virtual/opencl )
227 pdf? ( >=app-text/poppler-0.24.3:= )
228 perl? ( dev-lang/perl:= )
229 - png? ( media-libs/libpng )
230 - postgres? ( >=dev-db/postgresql-8.4 )
231 + png? ( media-libs/libpng:0= )
232 + postgres? ( >=dev-db/postgresql-8.4:= )
233 python? (
234 ${PYTHON_DEPS}
235 dev-python/setuptools[${PYTHON_USEDEP}]
236
237
238
239 1.12 sci-libs/gdal/gdal-1.9.2.ebuild
240
241 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild?rev=1.12&view=markup
242 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild?rev=1.12&content-type=text/plain
243 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild?r1=1.11&r2=1.12
244
245 Index: gdal-1.9.2.ebuild
246 ===================================================================
247 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild,v
248 retrieving revision 1.11
249 retrieving revision 1.12
250 diff -u -r1.11 -r1.12
251 --- gdal-1.9.2.ebuild 31 Dec 2014 14:08:12 -0000 1.11
252 +++ gdal-1.9.2.ebuild 28 Feb 2015 15:52:54 -0000 1.12
253 @@ -1,6 +1,6 @@
254 -# Copyright 1999-2014 Gentoo Foundation
255 +# Copyright 1999-2015 Gentoo Foundation
256 # Distributed under the terms of the GNU General Public License v2
257 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild,v 1.11 2014/12/31 14:08:12 dilfridge Exp $
258 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.9.2.ebuild,v 1.12 2015/02/28 15:52:54 jlec Exp $
259
260 EAPI=5
261
262 @@ -21,7 +21,7 @@
263
264 RDEPEND="
265 dev-libs/expat
266 - media-libs/tiff
267 + media-libs/tiff:0=
268 sci-libs/libgeotiff
269 || ( <sys-libs/zlib-1.2.5.1-r1 >=sys-libs/zlib-1.2.5.1-r2[minizip] )
270 armadillo? ( sci-libs/armadillo[lapack] )
271 @@ -31,8 +31,8 @@
272 gif? ( media-libs/giflib )
273 gml? ( >=dev-libs/xerces-c-3 )
274 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
275 - java? ( >=virtual/jre-1.6 )
276 - jpeg? ( virtual/jpeg )
277 + java? ( >=virtual/jre-1.6:* )
278 + jpeg? ( virtual/jpeg:0= )
279 jpeg2k? ( media-libs/jasper )
280 mysql? ( virtual/mysql )
281 netcdf? ( sci-libs/netcdf )
282 @@ -40,8 +40,8 @@
283 opencl? ( virtual/opencl )
284 pdf? ( app-text/poppler )
285 perl? ( dev-lang/perl )
286 - png? ( media-libs/libpng )
287 - postgres? ( >=dev-db/postgresql-8.4 )
288 + png? ( media-libs/libpng:0= )
289 + postgres? ( >=dev-db/postgresql-8.4:= )
290 python? ( dev-python/numpy )
291 ruby? ( dev-lang/ruby:1.9 )
292 sqlite? ( dev-db/sqlite:3 )
293
294
295
296 1.161 sci-libs/gdal/ChangeLog
297
298 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.161&view=markup
299 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.161&content-type=text/plain
300 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.160&r2=1.161
301
302 Index: ChangeLog
303 ===================================================================
304 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v
305 retrieving revision 1.160
306 retrieving revision 1.161
307 diff -u -r1.160 -r1.161
308 --- ChangeLog 24 Feb 2015 00:05:14 -0000 1.160
309 +++ ChangeLog 28 Feb 2015 15:52:54 -0000 1.161
310 @@ -1,6 +1,13 @@
311 # ChangeLog for sci-libs/gdal
312 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
313 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.160 2015/02/24 00:05:14 xmw Exp $
314 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.161 2015/02/28 15:52:54 jlec Exp $
315 +
316 +*gdal-1.11.1-r3 (28 Feb 2015)
317 +
318 + 28 Feb 2015; Justin Lecher <jlec@g.o> +gdal-1.11.1-r3.ebuild,
319 + gdal-1.10.0-r1.ebuild, gdal-1.10.1.ebuild, gdal-1.11.1-r1.ebuild,
320 + gdal-1.11.1-r2.ebuild, gdal-1.9.2.ebuild:
321 + replicate python scripts for each ABI; fix SLOT operators usage
322
323 *gdal-1.11.1-r2 (24 Feb 2015)
324
325
326
327
328 1.1 sci-libs/gdal/gdal-1.11.1-r3.ebuild
329
330 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild?rev=1.1&view=markup
331 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild?rev=1.1&content-type=text/plain
332
333 Index: gdal-1.11.1-r3.ebuild
334 ===================================================================
335 # Copyright 1999-2015 Gentoo Foundation
336 # Distributed under the terms of the GNU General Public License v2
337 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.11.1-r3.ebuild,v 1.1 2015/02/28 15:52:54 jlec Exp $
338
339 EAPI=5
340
341 WANT_AUTOCONF="2.5"
342
343 GENTOO_DEPEND_ON_PERL="no"
344 PYTHON_COMPAT=( python2_{5..7} python3_{1..4} )
345 DISTUTILS_OPTIONAL=1
346
347 inherit autotools eutils libtool perl-module distutils-r1 python-r1 toolchain-funcs java-pkg-opt-2
348
349 DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
350 HOMEPAGE="http://www.gdal.org/"
351 SRC_URI="http://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
352
353 SLOT="0"
354 LICENSE="MIT"
355 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
356 IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls"
357
358 RDEPEND="
359 dev-libs/expat
360 dev-libs/json-c
361 dev-libs/libpcre
362 dev-libs/libxml2
363 media-libs/tiff:0=
364 sci-libs/libgeotiff
365 sys-libs/zlib[minizip(+)]
366 armadillo? ( sci-libs/armadillo[lapack] )
367 curl? ( net-misc/curl )
368 fits? ( sci-libs/cfitsio )
369 geos? ( >=sci-libs/geos-2.2.1 )
370 gif? ( media-libs/giflib )
371 gml? ( >=dev-libs/xerces-c-3 )
372 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
373 java? ( >=virtual/jre-1.6:* )
374 jpeg? ( virtual/jpeg:0= )
375 jpeg2k? ( media-libs/jasper )
376 mysql? ( virtual/mysql )
377 netcdf? ( sci-libs/netcdf )
378 odbc? ( dev-db/unixODBC )
379 ogdi? ( sci-libs/ogdi )
380 opencl? ( virtual/opencl )
381 pdf? ( >=app-text/poppler-0.24.3:= )
382 perl? ( dev-lang/perl:= )
383 png? ( media-libs/libpng:0= )
384 postgres? ( >=dev-db/postgresql-8.4:= )
385 python? (
386 ${PYTHON_DEPS}
387 dev-python/setuptools[${PYTHON_USEDEP}]
388 dev-python/numpy[${PYTHON_USEDEP}]
389 )
390 ruby? ( dev-lang/ruby:1.9 )
391 sqlite? ( dev-db/sqlite:3 )
392 spatialite? ( dev-db/spatialite )
393 xls? ( dev-libs/freexl )
394 "
395
396 SWIG_DEP=">=dev-lang/swig-2.0.2"
397 DEPEND="${RDEPEND}
398 doc? ( app-doc/doxygen )
399 java? ( >=virtual/jdk-1.6 )
400 perl? ( ${SWIG_DEP} )
401 python? ( ${SWIG_DEP} )
402 ruby? ( ${SWIG_DEP} )"
403
404 AT_M4DIR="${S}/m4"
405 MAKEOPTS+=" -j1"
406
407 REQUIRED_USE="
408 spatialite? ( sqlite )
409 mdb? ( java )
410 "
411
412 pkg_setup() {
413 java-pkg-opt-2_pkg_setup
414 }
415
416 src_prepare() {
417 java-pkg-opt-2_src_prepare
418
419 # fix datadir and docdir placement
420 sed -i \
421 -e "s:@datadir@:@datadir@/gdal:" \
422 -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
423 "${S}"/GDALmake.opt.in || die
424
425 # the second sed expression should fix bug 371075
426 sed -i \
427 -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
428 -e "s:--prefix=\$(DESTDIR):--prefix=:" \
429 "${S}"/swig/python/GNUmakefile || die
430
431 epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch
432
433 # -soname is only accepted by GNU ld/ELF
434 [[ ${CHOST} == *-darwin* ]] \
435 && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
436 || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch
437
438 # Fix spatialite/sqlite include issue
439 sed -i \
440 -e 's:spatialite/sqlite3.h:sqlite3.h:g' \
441 ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die
442
443 # Fix freexl configure check
444 sed -i \
445 -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \
446 configure.in || die
447
448 sed \
449 -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
450 -i configure.in || die
451
452 sed \
453 -e 's:^ar:$(AR):g' \
454 -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
455
456 # Fix swig-3.0.3 problem (bug #534168)
457 epatch "${FILESDIR}"/${PN}-1.11.1-swig-3.0.3.patch
458
459 # bug 540132
460 epatch "${FILESDIR}"/${PN}-1.11.1-poppler-0.31.0-support.patch
461
462 tc-export AR RANLIB
463
464 eautoreconf
465
466 prepare_python() {
467 mkdir -p "${BUILD_DIR}" || die
468 find "${S}" -type d -maxdepth 1 -exec ln -s {} "${BUILD_DIR}"/ \; ||die
469 find "${S}" -type f -maxdepth 1 -exec cp --target="${BUILD_DIR}"/ {} + ||die
470 # mkdir -p "${BUILD_DIR}"/swig/python || die
471 # mkdir -p "${BUILD_DIR}"/apps || die
472 # cp -dpR --target="${BUILD_DIR}"/swig/ \
473 # "${S}"/swig/{python,SWIGmake.base,GNUmakefile} || die
474 # ln -s "${S}"/swig/include "${BUILD_DIR}"/swig/ || die
475 # ln -s "${S}"/apps/gdal-config "${BUILD_DIR}"/apps/ || die
476 # ln -s "${S}"/port "${BUILD_DIR}"/ || die
477 }
478 if use python; then
479 python_foreach_impl prepare_python
480 fi
481 }
482
483 gdal_src_configure() {
484 local myopts=""
485
486 if use ruby; then
487 RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
488 echo "Ruby module dir is: $RUBY_MOD_DIR"
489 fi
490
491 if use java; then
492 myopts+="
493 --with-java=$(java-config --jdk-home 2>/dev/null)
494 $(use_with mdb)"
495 else
496 myopts+=" --without-java --without-mdb"
497 use mdb && ewarn "mdb requires java use enabled. disabling"
498 fi
499
500 if use sqlite; then
501 myopts+=" LIBS=-lsqlite3"
502 fi
503
504 # pcidsk is internal, because there is no such library yet released
505 # also that thing is developed by the gdal people
506 # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
507 # bsb - legal issues
508 # oracle - disabled, i dont have and can't test
509 # ingres - same story as oracle oci
510 # podofo - we use poppler instead they are exclusive for each other
511 # tiff is a hard dep
512 ECONF_SOURCE="${S}" econf \
513 --includedir="${EPREFIX}/usr/include/${PN}" \
514 --disable-static \
515 --enable-shared \
516 --with-expat \
517 --with-geotiff \
518 --with-grib \
519 --with-libtiff \
520 --with-libz="${EPREFIX}/usr/" \
521 --with-ogr \
522 --without-bsb \
523 --without-dods-root \
524 --without-dwgdirect \
525 --without-epsilon \
526 --without-fme \
527 --without-grass \
528 --without-hdf4 \
529 --without-idb \
530 --without-ingres \
531 --without-jp2mrsid \
532 --without-kakadu \
533 --without-libtool \
534 --without-mrsid \
535 --without-msg \
536 --without-oci \
537 --without-pcraster \
538 --without-podofo \
539 --without-sde \
540 $(use_enable debug) \
541 $(use_with armadillo) \
542 $(use_with aux_xml pam) \
543 $(use_with curl) \
544 --without-ecw \
545 $(use_with fits cfitsio) \
546 $(use_with geos) \
547 $(use_with gif) \
548 $(use_with gml xerces) \
549 $(use_with hdf5) \
550 $(use_with jpeg pcidsk) \
551 $(use_with jpeg) \
552 $(use_with jpeg2k jasper) \
553 $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \
554 $(use_with netcdf) \
555 $(use_with odbc) \
556 $(use_with ogdi ogdi "${EPREFIX}"/usr) \
557 $(use_with opencl) \
558 $(use_with pdf poppler) \
559 $(use_with perl) \
560 $(use_with png) \
561 $(use_with postgres pg) \
562 $(use_with python) \
563 $(use_with ruby) \
564 $(use_with spatialite) \
565 $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
566 $(use_with threads) \
567 $(use_with xls freexl) \
568 ${myopts}
569
570 # mysql-config puts this in (and boy is it a PITA to get it out)
571 if use mysql; then
572 sed -i \
573 -e "s: -rdynamic : :" \
574 GDALmake.opt || die "sed LIBS failed"
575 fi
576
577 if [[ -n $use_python ]]; then
578 # updated for newer swig (must specify the path to input files)
579 sed -i \
580 -e "s: gdal_array.i: ../include/gdal_array.i:" \
581 -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
582 swig/python/GNUmakefile || die "sed python makefile failed"
583 sed -i \
584 -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \
585 swig/python/setup.cfg || die "sed python setup.cfg failed"
586 # -e "s:gdal_config=.*$:gdal_config=../../../apps/gdal-config:g" \
587 fi
588 }
589
590 src_configure() {
591 local use_python=""
592
593 gdal_src_configure
594
595 if use python; then
596 use_python="yes"
597 python_foreach_impl run_in_build_dir gdal_src_configure
598 fi
599 }
600
601 src_compile() {
602 local i
603 for i in perl ruby; do
604 if use $i; then
605 rm "${S}"/swig/$i/*_wrap.cpp
606 emake -C "${S}"/swig/$i generate
607 fi
608 done
609
610 default
611
612 if use perl ; then
613 pushd "${S}"/swig/perl > /dev/null
614 perl-module_src_configure
615 perl-module_src_compile
616 popd > /dev/null
617 fi
618
619 use doc && emake docs
620
621 compile_python() {
622 rm -f swig/python/*_wrap.cpp
623 emake -C swig/python generate
624 emake -C swig/python build
625 }
626 if use python; then
627 python_foreach_impl run_in_build_dir compile_python
628 fi
629 }
630
631 src_install() {
632 if use perl ; then
633 pushd "${S}"/swig/perl > /dev/null
634 perl-module_src_install
635 popd > /dev/null
636 sed -i \
637 -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
638 GDALmake.opt || die
639 fi
640
641 default
642
643 if use ruby ; then
644 # weird reinstall collision; needs manual intervention...
645 pushd "${S}"/swig/ruby > /dev/null
646 rm -rf "${D}"${RUBY_MOD_DIR}/gdal
647 exeinto ${RUBY_MOD_DIR}/gdal
648 doexe *.so || die "doins ruby modules failed"
649 popd > /dev/null
650 fi
651
652 use perl && perl_delete_localpod
653
654 dodoc Doxyfile HOWTO-RELEASE NEWS
655
656 if use doc ; then
657 dohtml html/*
658 docinto ogr
659 dohtml ogr/html/*
660 fi
661
662 install_python() {
663 emake -C swig/python DESTDIR="${D}" install
664 }
665 if use python; then
666 python_foreach_impl run_in_build_dir install_python
667 newdoc swig/python/README.txt README-python.txt
668 insinto /usr/share/${PN}/samples
669 doins swig/python/samples/*
670 python_replicate_script "${ED}"/usr/bin/*py
671 fi
672
673 pushd man/man1 > /dev/null
674 for i in * ; do
675 newman ${i} ${i}
676 done
677 popd > /dev/null
678 }
679
680 pkg_postinst() {
681 elog "Check available image and data formats after building with"
682 elog "gdalinfo and ogrinfo (using the --formats switch)."
683 }