Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/gdal: ChangeLog gdal-1.7.3.ebuild gdal-1.8.0.ebuild gdal-1.7.2-r2.ebuild
Date: Tue, 25 Jan 2011 18:34:23
Message-Id: 20110125183409.0B22820054@flycatcher.gentoo.org
1 scarabeus 11/01/25 18:34:09
2
3 Modified: ChangeLog
4 Added: gdal-1.7.3.ebuild gdal-1.8.0.ebuild
5 Removed: gdal-1.7.2-r2.ebuild
6 Log:
7 Version bump.
8
9 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.104 sci-libs/gdal/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.104&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?rev=1.104&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/ChangeLog?r1=1.103&r2=1.104
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v
21 retrieving revision 1.103
22 retrieving revision 1.104
23 diff -u -r1.103 -r1.104
24 --- ChangeLog 1 Dec 2010 08:09:44 -0000 1.103
25 +++ ChangeLog 25 Jan 2011 18:34:08 -0000 1.104
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sci-libs/gdal
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.103 2010/12/01 08:09:44 tomka Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/ChangeLog,v 1.104 2011/01/25 18:34:08 scarabeus Exp $
32 +
33 +*gdal-1.8.0 (25 Jan 2011)
34 +*gdal-1.7.3 (25 Jan 2011)
35 +
36 + 25 Jan 2011; Tomáš Chvátal <scarabeus@g.o> -gdal-1.7.2-r2.ebuild,
37 + +gdal-1.7.3.ebuild, +gdal-1.8.0.ebuild:
38 + Version bump
39
40 01 Dec 2010; Thomas Kahle <tomka@g.o> gdal-1.6.3-r1.ebuild:
41 Reverted ruby->ruby-ng as per bug 347249
42
43
44
45 1.1 sci-libs/gdal/gdal-1.7.3.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.7.3.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.7.3.ebuild?rev=1.1&content-type=text/plain
49
50 Index: gdal-1.7.3.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.7.3.ebuild,v 1.1 2011/01/25 18:34:08 scarabeus Exp $
55
56 EAPI="2"
57
58 WANT_AUTOCONF="2.5"
59 RUBY_OPTIONAL="yes"
60 USE_RUBY="ruby18"
61 PYTHON_DEPEND="python? 2"
62
63 inherit autotools eutils perl-module python ruby-ng toolchain-funcs
64
65 DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
66 HOMEPAGE="http://www.gdal.org/"
67 SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz"
68
69 SLOT="0"
70 LICENSE="MIT"
71 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos"
72
73 IUSE="+aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 jpeg jpeg2k mysql netcdf odbc ogdi perl png postgres python ruby sqlite threads"
74
75 RDEPEND="
76 dev-libs/expat
77 >=media-libs/tiff-4.0.0_beta6
78 sci-libs/libgeotiff
79 sys-libs/zlib
80 curl? ( net-misc/curl )
81 ecwj2k? ( sci-libs/libecwj2 )
82 fits? ( sci-libs/cfitsio )
83 geos? ( >=sci-libs/geos-2.2.1 )
84 gif? ( media-libs/giflib )
85 gml? ( >=dev-libs/xerces-c-3 )
86 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
87 jpeg? ( media-libs/jpeg )
88 jpeg2k? ( media-libs/jasper )
89 mysql? ( virtual/mysql )
90 netcdf? ( sci-libs/netcdf )
91 odbc? ( dev-db/unixODBC )
92 ogdi? ( sci-libs/ogdi )
93 perl? ( dev-lang/perl )
94 png? ( media-libs/libpng )
95 postgres? (
96 || (
97 >=dev-db/postgresql-base-8.4
98 >=dev-db/postgresql-server-8.4
99 )
100 )
101 python? ( dev-python/numpy )
102 ruby? ( $(ruby_implementation_depend ruby18) )
103 sqlite? ( >=dev-db/sqlite-3 )
104 "
105
106 DEPEND="${RDEPEND}
107 doc? ( app-doc/doxygen )
108 perl? ( >=dev-lang/swig-1.3.32 )
109 python? ( >=dev-lang/swig-1.3.32 )
110 ruby? ( >=dev-lang/swig-1.3.32 )
111 "
112
113 AT_M4DIR="${S}/m4"
114 MAKEOPTS+=" -j1"
115
116 pkg_setup() {
117 # only py2 is supported
118 python_set_active_version 2
119 }
120
121 src_unpack() {
122 # prevent ruby-ng.eclass from messing with the src path
123 default
124 }
125
126 src_prepare() {
127 # fix datadir and docdir placement
128 sed -i \
129 -e "s:@datadir@:@datadir@/gdal:" \
130 -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
131 GDALmake.opt.in || die
132
133 sed -i \
134 -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
135 swig/python/GNUmakefile || die
136
137 epatch "${FILESDIR}"/1.7.2-ruby_cflags.patch
138
139 # -soname is only accepted by GNU ld/ELF
140 [[ ${CHOST} == *-darwin* ]] \
141 && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
142 || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch
143
144 eautoreconf
145 }
146
147 src_configure() {
148 if use ruby; then
149 RUBY_MOD_DIR="$(ruby18 -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')"
150 echo "Ruby module dir is: $RUBY_MOD_DIR"
151 fi
152
153 # pcidsk is internal, because there is no such library yet released
154 # also that thing is developed by the gdal people
155 # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
156 # bsb - legal issues
157 # oracle - disabled, i dont have and can't test
158 # ingres - same story as oracle oci
159 # tiff is a hard dep
160 econf \
161 --enable-shared \
162 --disable-static \
163 --with-expat \
164 --without-grass \
165 --without-hdf4 \
166 --without-fme \
167 --without-pcraster \
168 --without-kakadu \
169 --without-mrsid \
170 --without-jp2mrsid \
171 --without-msg \
172 --without-bsb \
173 --without-dods-root \
174 --without-oci \
175 --without-ingres \
176 --without-spatialite \
177 --without-dwgdirect \
178 --without-epsilon \
179 --without-idb \
180 --without-sde \
181 --without-libtool \
182 --with-libz="${EPREFIX}/usr/" \
183 --with-ogr \
184 --with-grib \
185 --with-vfk \
186 --with-libtiff \
187 --with-geotiff \
188 $(use_enable debug) \
189 $(use_with postgres pg) \
190 $(use_with fits cfitsio) \
191 $(use_with netcdf) \
192 $(use_with png) \
193 $(use_with jpeg) \
194 $(use_with jpeg pcidsk) \
195 $(use_with gif) \
196 $(use_with ogdi ogdi "${EPREFIX}"/usr) \
197 $(use_with hdf5) \
198 $(use_with jpeg2k jasper) \
199 $(use_with ecwj2k ecw) \
200 $(use_with gml xerces) \
201 $(use_with odbc) \
202 $(use_with curl) \
203 $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
204 $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \
205 $(use_with geos) \
206 $(use_with aux_xml pam) \
207 $(use_with perl) \
208 $(use_with ruby) \
209 $(use_with python) \
210 $(use_with threads) \
211 --with-pymoddir="${EPREFIX}"/$(python_get_sitedir)
212
213 # mysql-config puts this in (and boy is it a PITA to get it out)
214 if use mysql; then
215 sed -i \
216 -e "s: -rdynamic : :" \
217 GDALmake.opt || die "sed LIBS failed"
218 fi
219
220 # updated for newer swig (must specify the path to input files)
221 if use python; then
222 sed -i \
223 -e "s: gdal_array.i: ../include/gdal_array.i:" \
224 -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
225 swig/python/GNUmakefile || die "sed python makefile failed"
226 sed -i \
227 -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \
228 swig/python/setup.cfg || die "sed python setup.cfg failed"
229 fi
230 }
231
232 src_compile() {
233 local i
234 for i in perl ruby python; do
235 if use $i; then
236 rm "${S}"/swig/$i/*_wrap.cpp
237 emake -C "${S}"/swig/$i generate || \
238 die "make generate failed for swig/$i"
239 fi
240 done
241
242 # parallel makes fail
243 emake || die "emake failed"
244
245 if use perl ; then
246 cd "${S}"/swig/perl
247 perl-module_src_prep
248 perl-module_src_compile
249 cd "${S}"
250 fi
251
252 if use doc ; then
253 make docs || die "make docs failed"
254 fi
255 }
256
257 src_install() {
258 if use perl ; then
259 pushd "${S}"/swig/perl > /dev/null
260 perl-module_src_install
261 popd > /dev/null
262 sed -i \
263 -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
264 GDALmake.opt || die
265 fi
266
267 emake DESTDIR="${D}" install || die "make install failed"
268
269 if use ruby ; then
270 # weird reinstall collision; needs manual intervention...
271 pushd "${S}"/swig/ruby > /dev/null
272 rm -rf "${D}"${RUBY_MOD_DIR}/gdal
273 exeinto ${RUBY_MOD_DIR}/gdal
274 doexe *.so || die "doins ruby modules failed"
275 popd > /dev/null
276 fi
277
278 use perl && fixlocalpod
279
280 dodoc Doxyfile HOWTO-RELEASE NEWS || die
281
282 if use doc ; then
283 dohtml html/* || die "install html failed"
284 docinto ogr
285 dohtml ogr/html/* || die "install ogr html failed"
286 fi
287
288 if use python; then
289 newdoc swig/python/README.txt README-python.txt || die
290 insinto /usr/share/${PN}/samples
291 doins swig/python/samples/* || die
292 fi
293 }
294
295 pkg_postinst() {
296 echo
297 elog "Check available image and data formats after building with"
298 elog "gdalinfo and ogrinfo (using the --formats switch)."
299 }
300
301
302
303 1.1 sci-libs/gdal/gdal-1.8.0.ebuild
304
305 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.8.0.ebuild?rev=1.1&view=markup
306 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/gdal/gdal-1.8.0.ebuild?rev=1.1&content-type=text/plain
307
308 Index: gdal-1.8.0.ebuild
309 ===================================================================
310 # Copyright 1999-2011 Gentoo Foundation
311 # Distributed under the terms of the GNU General Public License v2
312 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gdal/gdal-1.8.0.ebuild,v 1.1 2011/01/25 18:34:08 scarabeus Exp $
313
314 EAPI="2"
315
316 WANT_AUTOCONF="2.5"
317 RUBY_OPTIONAL="yes"
318 USE_RUBY="ruby18"
319 PYTHON_DEPEND="python? 2"
320
321 inherit autotools eutils perl-module python ruby-ng toolchain-funcs
322
323 DESCRIPTION="GDAL is a translator library for raster geospatial data formats (includes OGR support)"
324 HOMEPAGE="http://www.gdal.org/"
325 SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz"
326
327 SLOT="0"
328 LICENSE="MIT"
329 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos"
330
331 IUSE="+aux_xml curl debug doc ecwj2k fits geos gif gml hdf5 jpeg jpeg2k mysql netcdf odbc ogdi perl png postgres python ruby sqlite threads"
332
333 RDEPEND="
334 dev-libs/expat
335 >=media-libs/tiff-4.0.0_beta6
336 sci-libs/libgeotiff
337 sys-libs/zlib
338 curl? ( net-misc/curl )
339 ecwj2k? ( sci-libs/libecwj2 )
340 fits? ( sci-libs/cfitsio )
341 geos? ( >=sci-libs/geos-2.2.1 )
342 gif? ( media-libs/giflib )
343 gml? ( >=dev-libs/xerces-c-3 )
344 hdf5? ( >=sci-libs/hdf5-1.6.4[szip] )
345 jpeg? ( media-libs/jpeg )
346 jpeg2k? ( media-libs/jasper )
347 mysql? ( virtual/mysql )
348 netcdf? ( sci-libs/netcdf )
349 odbc? ( dev-db/unixODBC )
350 ogdi? ( sci-libs/ogdi )
351 perl? ( dev-lang/perl )
352 png? ( media-libs/libpng )
353 postgres? (
354 || (
355 >=dev-db/postgresql-base-8.4
356 >=dev-db/postgresql-server-8.4
357 )
358 )
359 python? ( dev-python/numpy )
360 ruby? ( $(ruby_implementation_depend ruby18) )
361 sqlite? ( >=dev-db/sqlite-3 )
362 "
363
364 DEPEND="${RDEPEND}
365 doc? ( app-doc/doxygen )
366 perl? ( >=dev-lang/swig-1.3.32 )
367 python? ( >=dev-lang/swig-1.3.32 )
368 ruby? ( >=dev-lang/swig-1.3.32 )
369 "
370
371 AT_M4DIR="${S}/m4"
372 MAKEOPTS+=" -j1"
373
374 pkg_setup() {
375 # only py2 is supported
376 python_set_active_version 2
377 }
378
379 src_unpack() {
380 # prevent ruby-ng.eclass from messing with the src path
381 default
382 }
383
384 src_prepare() {
385 # fix datadir and docdir placement
386 sed -i \
387 -e "s:@datadir@:@datadir@/gdal:" \
388 -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
389 GDALmake.opt.in || die
390
391 sed -i \
392 -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
393 swig/python/GNUmakefile || die
394
395 epatch "${FILESDIR}"/1.7.2-ruby_cflags.patch
396
397 # -soname is only accepted by GNU ld/ELF
398 [[ ${CHOST} == *-darwin* ]] \
399 && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \
400 || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch
401
402 eautoreconf
403 }
404
405 src_configure() {
406 if use ruby; then
407 RUBY_MOD_DIR="$(ruby18 -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')"
408 echo "Ruby module dir is: $RUBY_MOD_DIR"
409 fi
410
411 # pcidsk is internal, because there is no such library yet released
412 # also that thing is developed by the gdal people
413 # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
414 # bsb - legal issues
415 # oracle - disabled, i dont have and can't test
416 # ingres - same story as oracle oci
417 # tiff is a hard dep
418 econf \
419 --enable-shared \
420 --disable-static \
421 --with-expat \
422 --without-grass \
423 --without-hdf4 \
424 --without-fme \
425 --without-pcraster \
426 --without-kakadu \
427 --without-mrsid \
428 --without-jp2mrsid \
429 --without-msg \
430 --without-bsb \
431 --without-dods-root \
432 --without-oci \
433 --without-ingres \
434 --without-spatialite \
435 --without-dwgdirect \
436 --without-epsilon \
437 --without-idb \
438 --without-sde \
439 --without-libtool \
440 --with-libz="${EPREFIX}/usr/" \
441 --with-ogr \
442 --with-grib \
443 --with-vfk \
444 --with-libtiff \
445 --with-geotiff \
446 $(use_enable debug) \
447 $(use_with postgres pg) \
448 $(use_with fits cfitsio) \
449 $(use_with netcdf) \
450 $(use_with png) \
451 $(use_with jpeg) \
452 $(use_with jpeg pcidsk) \
453 $(use_with gif) \
454 $(use_with ogdi ogdi "${EPREFIX}"/usr) \
455 $(use_with hdf5) \
456 $(use_with jpeg2k jasper) \
457 $(use_with ecwj2k ecw) \
458 $(use_with gml xerces) \
459 $(use_with odbc) \
460 $(use_with curl) \
461 $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \
462 $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \
463 $(use_with geos) \
464 $(use_with aux_xml pam) \
465 $(use_with perl) \
466 $(use_with ruby) \
467 $(use_with python) \
468 $(use_with threads) \
469 --with-pymoddir="${EPREFIX}"/$(python_get_sitedir)
470
471 # mysql-config puts this in (and boy is it a PITA to get it out)
472 if use mysql; then
473 sed -i \
474 -e "s: -rdynamic : :" \
475 GDALmake.opt || die "sed LIBS failed"
476 fi
477
478 # updated for newer swig (must specify the path to input files)
479 if use python; then
480 sed -i \
481 -e "s: gdal_array.i: ../include/gdal_array.i:" \
482 -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
483 swig/python/GNUmakefile || die "sed python makefile failed"
484 sed -i \
485 -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \
486 swig/python/setup.cfg || die "sed python setup.cfg failed"
487 fi
488 }
489
490 src_compile() {
491 local i
492 for i in perl ruby python; do
493 if use $i; then
494 rm "${S}"/swig/$i/*_wrap.cpp
495 emake -C "${S}"/swig/$i generate || \
496 die "make generate failed for swig/$i"
497 fi
498 done
499
500 # parallel makes fail
501 emake || die "emake failed"
502
503 if use perl ; then
504 cd "${S}"/swig/perl
505 perl-module_src_prep
506 perl-module_src_compile
507 cd "${S}"
508 fi
509
510 if use doc ; then
511 make docs || die "make docs failed"
512 fi
513 }
514
515 src_install() {
516 if use perl ; then
517 pushd "${S}"/swig/perl > /dev/null
518 perl-module_src_install
519 popd > /dev/null
520 sed -i \
521 -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \
522 GDALmake.opt || die
523 fi
524
525 emake DESTDIR="${D}" install || die "make install failed"
526
527 if use ruby ; then
528 # weird reinstall collision; needs manual intervention...
529 pushd "${S}"/swig/ruby > /dev/null
530 rm -rf "${D}"${RUBY_MOD_DIR}/gdal
531 exeinto ${RUBY_MOD_DIR}/gdal
532 doexe *.so || die "doins ruby modules failed"
533 popd > /dev/null
534 fi
535
536 use perl && fixlocalpod
537
538 dodoc Doxyfile HOWTO-RELEASE NEWS || die
539
540 if use doc ; then
541 dohtml html/* || die "install html failed"
542 docinto ogr
543 dohtml ogr/html/* || die "install ogr html failed"
544 fi
545
546 if use python; then
547 newdoc swig/python/README.txt README-python.txt || die
548 insinto /usr/share/${PN}/samples
549 doins swig/python/samples/* || die
550 fi
551 }
552
553 pkg_postinst() {
554 echo
555 elog "Check available image and data formats after building with"
556 elog "gdalinfo and ogrinfo (using the --formats switch)."
557 }