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