Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/gdal/
Date: Wed, 22 Dec 2021 03:57:22
Message-Id: 1640142151.f28067fefa26757726ab2d8d6f7883c65b1d8406.sam@gentoo
1 commit: f28067fefa26757726ab2d8d6f7883c65b1d8406
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 22 03:02:31 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 22 03:02:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28067fe
7
8 sci-libs/gdal: drop versions
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sci-libs/gdal/Manifest | 6 -
13 sci-libs/gdal/gdal-3.2.1-r1.ebuild | 309 ------------------------------------
14 sci-libs/gdal/gdal-3.2.2.ebuild | 316 -------------------------------------
15 sci-libs/gdal/gdal-3.2.3.ebuild | 316 -------------------------------------
16 sci-libs/gdal/gdal-3.3.0.ebuild | 313 ------------------------------------
17 sci-libs/gdal/gdal-3.3.1.ebuild | 312 ------------------------------------
18 sci-libs/gdal/gdal-3.3.2-r1.ebuild | 315 ------------------------------------
19 7 files changed, 1887 deletions(-)
20
21 diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest
22 index 784a66ee2c9e..339b258265c8 100644
23 --- a/sci-libs/gdal/Manifest
24 +++ b/sci-libs/gdal/Manifest
25 @@ -1,7 +1 @@
26 -DIST gdal-3.2.1.tar.gz 18953600 BLAKE2B b47994849bcf6bc2b2f53daabb85ef99cdc9ce2a06134bc591652bf7e5304d503701d2b07cae520ca71ad6238dd0b073d2034743e59b072fc5eb50c13bc143e6 SHA512 152dd97464a8242ea1da7a3a215b1d3326bab5aa4b0884fcab6880da460577c80075f87ea7b9513d796e899e98b40701c0b6a63f1e5275607905480ec547e688
27 -DIST gdal-3.2.2.tar.gz 18959415 BLAKE2B 001347ee12c72fe4d9cfa27adb427624f80e5b16eeca01510166e3d74c36eb00da72c27d8582ccda124151143561c29b8e59dc3dd800c474b77991417b33acd1 SHA512 d7ff8773d3f1cb894fce89f56a3d4355769f1113eefb1367a3a543ced750e2c42618a4a1deef3a338ddd4d33b7332ae962b2d793f8c0b97e31ed4b84cb2df2d5
28 -DIST gdal-3.2.3.tar.gz 18970990 BLAKE2B 9f2ac15b7e9d2df0393d15734030ec4777579aa01fcf2700958228b24fd50d574f3bd438c03e767549614a699c362b31f38cbb0f32ceb8056c9b55fab11ecfec SHA512 985a058a53f676f7d49a96d1a48d4f93c5da8548012bf81345afde03d8044022b210484290bca70c3d7a1ef3b0087d9e17c636b5badd1e0816c1f59b1bf21ee8
29 -DIST gdal-3.3.0.tar.gz 19572446 BLAKE2B afc7ce3c2191fb7607fdf3a01e7ed3e83c601fa063019015f666e0c550e4e42129b8782568f20f97422308f95b4e5c3dbd2311d562b7ec0830635e47e7c931b4 SHA512 39505c07aaf4dac587a189a979462101a7acba41e8732031540ebad02e089820658943ebb48c20f4ea56548363033b2db2f03f41c8a91ff5c5997a19b5eb999e
30 -DIST gdal-3.3.1.tar.gz 19582883 BLAKE2B 328ba9f3c6a2ecca8583648e5f22469d3fbabf8d8676262a15c6debe718be8329ad3899cbe5397dff2896bc9c2500b60834c6a44cd0f5b670828d86838611f0d SHA512 0eb89502f1cebd5dd899fb8f20571952462c45aba6cee1d62ccc820b2fed5202f6c7e7096bd4ca6c0cfcc2de623f00295097a7e33da6ffa5624dcb8a7a0dc682
31 -DIST gdal-3.3.2.tar.gz 19593819 BLAKE2B ab0919468482d080be9317f7d766ac8b7bd7a534a490a93ee29cab9ea5c68bef3827a256a6d13455d5ee8f4e6cf71a8a42fb173d1543282b04dea59c9378cf22 SHA512 ceacd101f770fecad12fec7fea5ba63c2a6d96413bdaa7f460798704fce1ff7a4f20b0b4a0785c195131aa8ee25990239a9e2da6844010b8f0c575f584d9b4a8
32 DIST gdal-3.3.3.tar.gz 19600111 BLAKE2B 2d4558062b35016372d6964884296878fdcef0afa83fb03b10cd902ce101ec52f551d48014d95b391d19b8db13d7ca1d639575b39e9421780f4212bef02dd51f SHA512 c49e4555e598e4182e6419758c31df08d46b8b061480f08be09d61e840057529bd833338eaa8c1ecfe1c6a0cc8cd6a073bf15fa6cdae003e4475485cf3851145
33
34 diff --git a/sci-libs/gdal/gdal-3.2.1-r1.ebuild b/sci-libs/gdal/gdal-3.2.1-r1.ebuild
35 deleted file mode 100644
36 index 7bed137263c6..000000000000
37 --- a/sci-libs/gdal/gdal-3.2.1-r1.ebuild
38 +++ /dev/null
39 @@ -1,309 +0,0 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -GENTOO_DEPEND_ON_PERL="no"
46 -PYTHON_COMPAT=( python3_{7,8,9} )
47 -DISTUTILS_OPTIONAL=1
48 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
49 -
50 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
51 -HOMEPAGE="https://gdal.org/"
52 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
53 -
54 -SLOT="0/3.2"
55 -LICENSE="BSD Info-ZIP MIT"
56 -KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
57 -IUSE="armadillo +aux-xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
58 -
59 -REQUIRED_USE="
60 - mdb? ( java )
61 - python? ( ${PYTHON_REQUIRED_USE} )
62 - spatialite? ( sqlite )
63 -"
64 -
65 -BDEPEND="
66 - virtual/pkgconfig
67 - doc? ( app-doc/doxygen )
68 - java? (
69 - dev-java/ant-core
70 - dev-lang/swig:0
71 - >=virtual/jdk-1.7:*
72 - )
73 - perl? ( dev-lang/swig:0 )
74 - python? (
75 - dev-lang/swig:0
76 - dev-python/setuptools[${PYTHON_USEDEP}]
77 - )
78 -"
79 -DEPEND="
80 - dev-libs/expat
81 - dev-libs/json-c:=
82 - dev-libs/libpcre
83 - dev-libs/libxml2:2
84 - dev-libs/openssl:=
85 - media-libs/tiff
86 - >=sci-libs/libgeotiff-1.5.1-r1:=
87 - >=sci-libs/proj-6.0.0:=
88 - sys-libs/zlib[minizip(+)]
89 - armadillo? ( sci-libs/armadillo:=[lapack] )
90 - curl? ( net-misc/curl )
91 - fits? ( sci-libs/cfitsio:= )
92 - geos? ( >=sci-libs/geos-3.8.0 )
93 - gif? ( media-libs/giflib:= )
94 - gml? ( >=dev-libs/xerces-c-3.1 )
95 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
96 - jpeg? ( virtual/jpeg:0= )
97 - jpeg2k? ( media-libs/openjpeg:2= )
98 - lzma? ( || (
99 - app-arch/xz-utils
100 - app-arch/lzma
101 - ) )
102 - mdb? ( dev-java/jackcess:1 )
103 - mysql? ( virtual/mysql )
104 - netcdf? ( sci-libs/netcdf:= )
105 - odbc? ( dev-db/unixODBC )
106 - ogdi? ( sci-libs/ogdi )
107 - opencl? ( virtual/opencl )
108 - oracle? ( dev-db/oracle-instantclient:= )
109 - pdf? ( app-text/poppler:= )
110 - perl? ( dev-lang/perl:= )
111 - png? ( media-libs/libpng:0= )
112 - postgres? ( >=dev-db/postgresql-8.4:= )
113 - python? (
114 - ${PYTHON_DEPS}
115 - dev-python/numpy[${PYTHON_USEDEP}]
116 - )
117 - spatialite? ( dev-db/spatialite )
118 - sqlite? ( dev-db/sqlite:3 )
119 - webp? ( media-libs/libwebp:= )
120 - xls? ( dev-libs/freexl )
121 - zstd? ( app-arch/zstd:= )
122 -"
123 -RDEPEND="${DEPEND}
124 - java? ( >=virtual/jre-1.7:* )
125 -"
126 -
127 -PATCHES=(
128 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
129 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
130 - "${FILESDIR}/${PN}-3.2.1-libdir.patch"
131 -)
132 -
133 -src_prepare() {
134 - default
135 -
136 - # Drop a --prefix hack in the upstream build system
137 - # We don't want the line at all, so let's just drop it rather than
138 - # trying to put in the right libdir value.
139 - # bug #696106
140 - sed -e '/\$ADD_PREFIX\/lib/d' \
141 - -i configure.ac || die
142 -
143 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
144 - -i configure.ac || die
145 -
146 - sed -e 's:^ar:$(AR):g' \
147 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
148 -
149 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
150 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
151 - -i swig/python/GNUmakefile || die "sed python makefile failed"
152 -
153 - eautoreconf
154 -}
155 -
156 -src_configure() {
157 - local myconf=(
158 - # charls - not packaged in Gentoo ebuild repository
159 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
160 - # bsb - legal issues
161 - # ingres - same story as oracle oci
162 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
163 - # podofo - we use poppler instead they are exclusive for each other
164 - # tiff is a hard dep
165 - --includedir="${EPREFIX}"/usr/include/${PN}
166 - --disable-lto
167 - --disable-static
168 - --disable-driver-bsb
169 - --disable-driver-mrf
170 - --disable-pdf-plugin
171 - --enable-shared
172 - --enable-driver-grib
173 - --with-bash-completion="$(get_bashcompdir)"
174 - --with-cpp14
175 - --with-crypto
176 - --with-cryptopp=no
177 - --with-expat
178 - --with-geotiff
179 - --with-gnm
180 - --with-hide-internal-symbols
181 - --with-libjson-c="${EPREFIX}"/usr
182 - --with-libtiff
183 - --with-libtool
184 - --with-libz="${EPREFIX}"/usr
185 - --without-charls
186 - --without-dods-root
187 - --without-ecw
188 - --without-epsilon
189 - --without-fgdb
190 - --without-fme
191 - --without-gta
192 - --without-grass
193 - --without-hdf4
194 - --without-idb
195 - --without-ingres
196 - --without-jasper
197 - --without-jp2lura
198 - --without-jp2mrsid
199 - --without-kakadu
200 - --without-kea
201 - --without-libkml
202 - --without-mongocxx
203 - --without-mrsid
204 - --without-mrsid_lidar
205 - --without-msg
206 - --without-rasdaman
207 - --without-rasterlite2
208 - --without-pcraster
209 - --without-pdfium
210 - --without-perl
211 - --without-podofo
212 - --without-python
213 - --without-qhull
214 - --without-sfcgal
215 - --without-sosi
216 - --without-teigha
217 - $(use_enable debug)
218 - $(use_with armadillo)
219 - $(use_with aux-xml pam)
220 - $(use_with curl)
221 - $(use_with fits cfitsio)
222 - $(use_with geos)
223 - $(use_with gif)
224 - $(use_with gml xerces)
225 - $(use_with hdf5)
226 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
227 - $(use_with jpeg)
228 - $(use_with jpeg2k openjpeg)
229 - $(use_with lzma liblzma)
230 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
231 - $(use_with netcdf)
232 - $(use_with oracle oci)
233 - $(use_with odbc)
234 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
235 - $(use_with opencl)
236 - $(use_with pdf poppler)
237 - $(use_with png)
238 - $(use_with postgres pg)
239 - $(use_with spatialite)
240 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
241 - $(use_with threads)
242 - $(use_with webp)
243 - $(use_with xls freexl)
244 - $(use_with zstd)
245 - )
246 -
247 - tc-export AR RANLIB
248 -
249 - if use java; then
250 - myconf+=(
251 - --with-java=$(java-config --jdk-home 2>/dev/null)
252 - --with-jvm-lib=dlopen
253 - $(use_with mdb)
254 - )
255 - else
256 - myconf+=( --without-java --without-mdb )
257 - fi
258 -
259 - if use sqlite; then
260 - append-libs -lsqlite3
261 - fi
262 -
263 - # bug #632660
264 - if use ogdi; then
265 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
266 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
267 - fi
268 -
269 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
270 -
271 - # mysql-config puts this in (and boy is it a PITA to get it out)
272 - if use mysql; then
273 - sed -e "s: -rdynamic : :" \
274 - -i GDALmake.opt || die "sed LIBS failed"
275 - fi
276 -}
277 -
278 -src_compile() {
279 - if use perl; then
280 - rm "${S}"/swig/perl/*_wrap.cpp || die
281 - emake -C "${S}"/swig/perl generate
282 - fi
283 -
284 - # gdal-config needed before generating Python bindings
285 - default
286 -
287 - if use java; then
288 - pushd "${S}"/swig/java > /dev/null || die
289 - emake
290 - popd > /dev/null || die
291 - fi
292 -
293 - if use perl; then
294 - pushd "${S}"/swig/perl > /dev/null || die
295 - perl-module_src_configure
296 - perl-module_src_compile
297 - popd > /dev/null || die
298 - fi
299 -
300 - if use python; then
301 - rm -f "${S}"/swig/python/*_wrap.cpp || die
302 - emake -C "${S}"/swig/python generate
303 - pushd "${S}"/swig/python > /dev/null || die
304 - distutils-r1_src_compile
305 - popd > /dev/null || die
306 - fi
307 -
308 - use doc && emake docs
309 -}
310 -
311 -src_install() {
312 - local DOCS=( NEWS )
313 - use doc && local HTML_DOCS=( html/. )
314 -
315 - default
316 -
317 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
318 -
319 - if use perl; then
320 - pushd "${S}"/swig/perl > /dev/null || die
321 - myinst=( DESTDIR="${D}" )
322 - perl-module_src_install
323 - popd > /dev/null || die
324 - perl_delete_localpod
325 - fi
326 -
327 - if use python; then
328 - # Don't clash with gdal's docs
329 - unset DOCS HTML_DOCS
330 -
331 - pushd "${S}"/swig/python > /dev/null || die
332 - distutils-r1_src_install
333 - popd > /dev/null || die
334 -
335 - newdoc swig/python/README.rst README-python.rst
336 -
337 - insinto /usr/share/${PN}/samples
338 - doins -r swig/python/samples/.
339 - fi
340 -
341 - doman "${S}"/man/man*/*
342 - find "${ED}" -name '*.la' -type f -delete || die
343 -}
344 -
345 -pkg_postinst() {
346 - elog "Check available image and data formats after building with"
347 - elog "gdalinfo and ogrinfo (using the --formats switch)."
348 -}
349
350 diff --git a/sci-libs/gdal/gdal-3.2.2.ebuild b/sci-libs/gdal/gdal-3.2.2.ebuild
351 deleted file mode 100644
352 index b2536db351b4..000000000000
353 --- a/sci-libs/gdal/gdal-3.2.2.ebuild
354 +++ /dev/null
355 @@ -1,316 +0,0 @@
356 -# Copyright 1999-2021 Gentoo Authors
357 -# Distributed under the terms of the GNU General Public License v2
358 -
359 -EAPI=7
360 -
361 -GENTOO_DEPEND_ON_PERL="no"
362 -PYTHON_COMPAT=( python3_{7,8,9} )
363 -DISTUTILS_OPTIONAL=1
364 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
365 -
366 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
367 -HOMEPAGE="https://gdal.org/"
368 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
369 -
370 -SLOT="0/3.2"
371 -LICENSE="BSD Info-ZIP MIT"
372 -KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
373 -IUSE="armadillo +aux-xml curl cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_ssse3 debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
374 -
375 -REQUIRED_USE="
376 - mdb? ( java )
377 - python? ( ${PYTHON_REQUIRED_USE} )
378 - spatialite? ( sqlite )
379 -"
380 -
381 -BDEPEND="
382 - virtual/pkgconfig
383 - doc? ( app-doc/doxygen )
384 - java? (
385 - dev-java/ant-core
386 - dev-lang/swig:0
387 - >=virtual/jdk-1.7:*
388 - )
389 - perl? ( dev-lang/swig:0 )
390 - python? (
391 - dev-lang/swig:0
392 - dev-python/setuptools[${PYTHON_USEDEP}]
393 - )
394 -"
395 -DEPEND="
396 - dev-libs/expat
397 - dev-libs/json-c:=
398 - dev-libs/libpcre
399 - dev-libs/libxml2:2
400 - dev-libs/openssl:=
401 - media-libs/tiff
402 - >=sci-libs/libgeotiff-1.5.1-r1:=
403 - >=sci-libs/proj-6.0.0:=
404 - sys-libs/zlib[minizip(+)]
405 - armadillo? ( sci-libs/armadillo:=[lapack] )
406 - curl? ( net-misc/curl )
407 - fits? ( sci-libs/cfitsio:= )
408 - geos? ( >=sci-libs/geos-3.8.0 )
409 - gif? ( media-libs/giflib:= )
410 - gml? ( >=dev-libs/xerces-c-3.1 )
411 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
412 - jpeg? ( virtual/jpeg:0= )
413 - jpeg2k? ( media-libs/openjpeg:2= )
414 - lzma? ( || (
415 - app-arch/xz-utils
416 - app-arch/lzma
417 - ) )
418 - mdb? ( dev-java/jackcess:1 )
419 - mysql? ( virtual/mysql )
420 - netcdf? ( sci-libs/netcdf:= )
421 - odbc? ( dev-db/unixODBC )
422 - ogdi? ( sci-libs/ogdi )
423 - opencl? ( virtual/opencl )
424 - oracle? ( dev-db/oracle-instantclient:= )
425 - pdf? ( app-text/poppler:= )
426 - perl? ( dev-lang/perl:= )
427 - png? ( media-libs/libpng:0= )
428 - postgres? ( >=dev-db/postgresql-8.4:= )
429 - python? (
430 - ${PYTHON_DEPS}
431 - dev-python/numpy[${PYTHON_USEDEP}]
432 - )
433 - spatialite? ( dev-db/spatialite )
434 - sqlite? ( dev-db/sqlite:3 )
435 - webp? ( media-libs/libwebp:= )
436 - xls? ( dev-libs/freexl )
437 - zstd? ( app-arch/zstd:= )
438 -"
439 -RDEPEND="${DEPEND}
440 - java? ( >=virtual/jre-1.7:* )
441 -"
442 -
443 -PATCHES=(
444 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
445 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
446 - "${FILESDIR}/${PN}-3.2.1-libdir.patch"
447 -)
448 -
449 -src_prepare() {
450 - default
451 -
452 - # Drop a --prefix hack in the upstream build system
453 - # We don't want the line at all, so let's just drop it rather than
454 - # trying to put in the right libdir value.
455 - # bug #696106
456 - sed -e '/\$ADD_PREFIX\/lib/d' \
457 - -i configure.ac || die
458 -
459 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
460 - -i configure.ac || die
461 -
462 - sed -e 's:^ar:$(AR):g' \
463 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
464 -
465 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
466 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
467 - -i swig/python/GNUmakefile || die "sed python makefile failed"
468 -
469 - # autoconf 2.70+
470 - # bug #775209
471 - config_rpath_update .
472 -
473 - eautoreconf
474 -}
475 -
476 -src_configure() {
477 - local myconf=(
478 - # charls - not packaged in Gentoo ebuild repository
479 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
480 - # bsb - legal issues
481 - # ingres - same story as oracle oci
482 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
483 - # podofo - we use poppler instead they are exclusive for each other
484 - # tiff is a hard dep
485 - --includedir="${EPREFIX}"/usr/include/${PN}
486 - --disable-lto
487 - --disable-static
488 - --disable-driver-bsb
489 - --disable-driver-mrf
490 - --disable-pdf-plugin
491 - --enable-shared
492 - --enable-driver-grib
493 - --with-bash-completion="$(get_bashcompdir)"
494 - --with-cpp14
495 - --with-crypto
496 - --with-cryptopp=no
497 - --with-expat
498 - --with-geotiff
499 - --with-gnm
500 - --with-hide-internal-symbols
501 - --with-libjson-c="${EPREFIX}"/usr
502 - --with-libtiff
503 - --with-libtool
504 - --with-libz="${EPREFIX}"/usr
505 - --without-charls
506 - --without-dods-root
507 - --without-ecw
508 - --without-epsilon
509 - --without-fgdb
510 - --without-fme
511 - --without-gta
512 - --without-grass
513 - --without-hdf4
514 - --without-idb
515 - --without-ingres
516 - --without-jasper
517 - --without-jp2lura
518 - --without-jp2mrsid
519 - --without-kakadu
520 - --without-kea
521 - --without-libkml
522 - --without-mongocxx
523 - --without-mrsid
524 - --without-mrsid_lidar
525 - --without-msg
526 - --without-rasdaman
527 - --without-rasterlite2
528 - --without-pcraster
529 - --without-pdfium
530 - --without-perl
531 - --without-podofo
532 - --without-python
533 - --without-qhull
534 - --without-sfcgal
535 - --without-sosi
536 - --without-teigha
537 - $(use_enable debug)
538 - $(use_with armadillo)
539 - $(use_with aux-xml pam)
540 - $(use_with curl)
541 - $(use_with cpu_flags_x86_avx avx)
542 - $(use_with cpu_flags_x86_sse sse)
543 - $(use_with cpu_flags_x86_ssse3 ssse3)
544 - $(use_with fits cfitsio)
545 - $(use_with geos)
546 - $(use_with gif)
547 - $(use_with gml xerces)
548 - $(use_with hdf5)
549 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
550 - $(use_with jpeg)
551 - $(use_with jpeg2k openjpeg)
552 - $(use_with lzma liblzma)
553 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
554 - $(use_with netcdf)
555 - $(use_with oracle oci)
556 - $(use_with odbc)
557 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
558 - $(use_with opencl)
559 - $(use_with pdf poppler)
560 - $(use_with png)
561 - $(use_with postgres pg)
562 - $(use_with spatialite)
563 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
564 - $(use_with threads)
565 - $(use_with webp)
566 - $(use_with xls freexl)
567 - $(use_with zstd)
568 - )
569 -
570 - tc-export AR RANLIB
571 -
572 - if use java; then
573 - myconf+=(
574 - --with-java=$(java-config --jdk-home 2>/dev/null)
575 - --with-jvm-lib=dlopen
576 - $(use_with mdb)
577 - )
578 - else
579 - myconf+=( --without-java --without-mdb )
580 - fi
581 -
582 - if use sqlite; then
583 - append-libs -lsqlite3
584 - fi
585 -
586 - # bug #632660
587 - if use ogdi; then
588 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
589 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
590 - fi
591 -
592 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
593 -
594 - # mysql-config puts this in (and boy is it a PITA to get it out)
595 - if use mysql; then
596 - sed -e "s: -rdynamic : :" \
597 - -i GDALmake.opt || die "sed LIBS failed"
598 - fi
599 -}
600 -
601 -src_compile() {
602 - if use perl; then
603 - rm "${S}"/swig/perl/*_wrap.cpp || die
604 - emake -C "${S}"/swig/perl generate
605 - fi
606 -
607 - # gdal-config needed before generating Python bindings
608 - default
609 -
610 - if use java; then
611 - pushd "${S}"/swig/java > /dev/null || die
612 - emake
613 - popd > /dev/null || die
614 - fi
615 -
616 - if use perl; then
617 - pushd "${S}"/swig/perl > /dev/null || die
618 - perl-module_src_configure
619 - perl-module_src_compile
620 - popd > /dev/null || die
621 - fi
622 -
623 - if use python; then
624 - rm -f "${S}"/swig/python/*_wrap.cpp || die
625 - emake -C "${S}"/swig/python generate
626 - pushd "${S}"/swig/python > /dev/null || die
627 - distutils-r1_src_compile
628 - popd > /dev/null || die
629 - fi
630 -
631 - use doc && emake docs
632 -}
633 -
634 -src_install() {
635 - local DOCS=( NEWS )
636 - use doc && local HTML_DOCS=( html/. )
637 -
638 - default
639 -
640 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
641 -
642 - if use perl; then
643 - pushd "${S}"/swig/perl > /dev/null || die
644 - myinst=( DESTDIR="${D}" )
645 - perl-module_src_install
646 - popd > /dev/null || die
647 - perl_delete_localpod
648 - fi
649 -
650 - if use python; then
651 - # Don't clash with gdal's docs
652 - unset DOCS HTML_DOCS
653 -
654 - pushd "${S}"/swig/python > /dev/null || die
655 - distutils-r1_src_install
656 - popd > /dev/null || die
657 -
658 - newdoc swig/python/README.rst README-python.rst
659 -
660 - insinto /usr/share/${PN}/samples
661 - doins -r swig/python/samples/.
662 - fi
663 -
664 - doman "${S}"/man/man*/*
665 - find "${ED}" -name '*.la' -type f -delete || die
666 -}
667 -
668 -pkg_postinst() {
669 - elog "Check available image and data formats after building with"
670 - elog "gdalinfo and ogrinfo (using the --formats switch)."
671 -}
672
673 diff --git a/sci-libs/gdal/gdal-3.2.3.ebuild b/sci-libs/gdal/gdal-3.2.3.ebuild
674 deleted file mode 100644
675 index 8f640dc7591f..000000000000
676 --- a/sci-libs/gdal/gdal-3.2.3.ebuild
677 +++ /dev/null
678 @@ -1,316 +0,0 @@
679 -# Copyright 1999-2021 Gentoo Authors
680 -# Distributed under the terms of the GNU General Public License v2
681 -
682 -EAPI=7
683 -
684 -GENTOO_DEPEND_ON_PERL="no"
685 -PYTHON_COMPAT=( python3_{7,8,9} )
686 -DISTUTILS_OPTIONAL=1
687 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
688 -
689 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
690 -HOMEPAGE="https://gdal.org/"
691 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
692 -
693 -SLOT="0/3.2"
694 -LICENSE="BSD Info-ZIP MIT"
695 -KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
696 -IUSE="armadillo +aux-xml curl cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_ssse3 debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
697 -
698 -REQUIRED_USE="
699 - mdb? ( java )
700 - python? ( ${PYTHON_REQUIRED_USE} )
701 - spatialite? ( sqlite )
702 -"
703 -
704 -BDEPEND="
705 - virtual/pkgconfig
706 - doc? ( app-doc/doxygen )
707 - java? (
708 - dev-java/ant-core
709 - dev-lang/swig:0
710 - >=virtual/jdk-1.8:*
711 - )
712 - perl? ( dev-lang/swig:0 )
713 - python? (
714 - dev-lang/swig:0
715 - dev-python/setuptools[${PYTHON_USEDEP}]
716 - )
717 -"
718 -DEPEND="
719 - dev-libs/expat
720 - dev-libs/json-c:=
721 - dev-libs/libpcre
722 - dev-libs/libxml2:2
723 - dev-libs/openssl:=
724 - media-libs/tiff
725 - >=sci-libs/libgeotiff-1.5.1-r1:=
726 - >=sci-libs/proj-6.0.0:=
727 - sys-libs/zlib[minizip(+)]
728 - armadillo? ( sci-libs/armadillo:=[lapack] )
729 - curl? ( net-misc/curl )
730 - fits? ( sci-libs/cfitsio:= )
731 - geos? ( >=sci-libs/geos-3.8.0 )
732 - gif? ( media-libs/giflib:= )
733 - gml? ( >=dev-libs/xerces-c-3.1 )
734 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
735 - jpeg? ( virtual/jpeg:0= )
736 - jpeg2k? ( media-libs/openjpeg:2= )
737 - lzma? ( || (
738 - app-arch/xz-utils
739 - app-arch/lzma
740 - ) )
741 - mdb? ( dev-java/jackcess:1 )
742 - mysql? ( virtual/mysql )
743 - netcdf? ( sci-libs/netcdf:= )
744 - odbc? ( dev-db/unixODBC )
745 - ogdi? ( sci-libs/ogdi )
746 - opencl? ( virtual/opencl )
747 - oracle? ( dev-db/oracle-instantclient:= )
748 - pdf? ( app-text/poppler:= )
749 - perl? ( dev-lang/perl:= )
750 - png? ( media-libs/libpng:0= )
751 - postgres? ( >=dev-db/postgresql-8.4:= )
752 - python? (
753 - ${PYTHON_DEPS}
754 - dev-python/numpy[${PYTHON_USEDEP}]
755 - )
756 - spatialite? ( dev-db/spatialite )
757 - sqlite? ( dev-db/sqlite:3 )
758 - webp? ( media-libs/libwebp:= )
759 - xls? ( dev-libs/freexl )
760 - zstd? ( app-arch/zstd:= )
761 -"
762 -RDEPEND="${DEPEND}
763 - java? ( >=virtual/jre-1.8:* )
764 -"
765 -
766 -PATCHES=(
767 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
768 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
769 - "${FILESDIR}/${PN}-3.2.1-libdir.patch"
770 -)
771 -
772 -src_prepare() {
773 - default
774 -
775 - # Drop a --prefix hack in the upstream build system
776 - # We don't want the line at all, so let's just drop it rather than
777 - # trying to put in the right libdir value.
778 - # bug #696106
779 - sed -e '/\$ADD_PREFIX\/lib/d' \
780 - -i configure.ac || die
781 -
782 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
783 - -i configure.ac || die
784 -
785 - sed -e 's:^ar:$(AR):g' \
786 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
787 -
788 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
789 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
790 - -i swig/python/GNUmakefile || die "sed python makefile failed"
791 -
792 - # autoconf 2.70+
793 - # bug #775209
794 - config_rpath_update .
795 -
796 - eautoreconf
797 -}
798 -
799 -src_configure() {
800 - local myconf=(
801 - # charls - not packaged in Gentoo ebuild repository
802 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
803 - # bsb - legal issues
804 - # ingres - same story as oracle oci
805 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
806 - # podofo - we use poppler instead they are exclusive for each other
807 - # tiff is a hard dep
808 - --includedir="${EPREFIX}"/usr/include/${PN}
809 - --disable-lto
810 - --disable-static
811 - --disable-driver-bsb
812 - --disable-driver-mrf
813 - --disable-pdf-plugin
814 - --enable-shared
815 - --enable-driver-grib
816 - --with-bash-completion="$(get_bashcompdir)"
817 - --with-cpp14
818 - --with-crypto
819 - --with-cryptopp=no
820 - --with-expat
821 - --with-geotiff
822 - --with-gnm
823 - --with-hide-internal-symbols
824 - --with-libjson-c="${EPREFIX}"/usr
825 - --with-libtiff
826 - --with-libtool
827 - --with-libz="${EPREFIX}"/usr
828 - --without-charls
829 - --without-dods-root
830 - --without-ecw
831 - --without-epsilon
832 - --without-fgdb
833 - --without-fme
834 - --without-gta
835 - --without-grass
836 - --without-hdf4
837 - --without-idb
838 - --without-ingres
839 - --without-jasper
840 - --without-jp2lura
841 - --without-jp2mrsid
842 - --without-kakadu
843 - --without-kea
844 - --without-libkml
845 - --without-mongocxx
846 - --without-mrsid
847 - --without-mrsid_lidar
848 - --without-msg
849 - --without-rasdaman
850 - --without-rasterlite2
851 - --without-pcraster
852 - --without-pdfium
853 - --without-perl
854 - --without-podofo
855 - --without-python
856 - --without-qhull
857 - --without-sfcgal
858 - --without-sosi
859 - --without-teigha
860 - $(use_enable debug)
861 - $(use_with armadillo)
862 - $(use_with aux-xml pam)
863 - $(use_with curl)
864 - $(use_with cpu_flags_x86_avx avx)
865 - $(use_with cpu_flags_x86_sse sse)
866 - $(use_with cpu_flags_x86_ssse3 ssse3)
867 - $(use_with fits cfitsio)
868 - $(use_with geos)
869 - $(use_with gif)
870 - $(use_with gml xerces)
871 - $(use_with hdf5)
872 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
873 - $(use_with jpeg)
874 - $(use_with jpeg2k openjpeg)
875 - $(use_with lzma liblzma)
876 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
877 - $(use_with netcdf)
878 - $(use_with oracle oci)
879 - $(use_with odbc)
880 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
881 - $(use_with opencl)
882 - $(use_with pdf poppler)
883 - $(use_with png)
884 - $(use_with postgres pg)
885 - $(use_with spatialite)
886 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
887 - $(use_with threads)
888 - $(use_with webp)
889 - $(use_with xls freexl)
890 - $(use_with zstd)
891 - )
892 -
893 - tc-export AR RANLIB
894 -
895 - if use java; then
896 - myconf+=(
897 - --with-java=$(java-config --jdk-home 2>/dev/null)
898 - --with-jvm-lib=dlopen
899 - $(use_with mdb)
900 - )
901 - else
902 - myconf+=( --without-java --without-mdb )
903 - fi
904 -
905 - if use sqlite; then
906 - append-libs -lsqlite3
907 - fi
908 -
909 - # bug #632660
910 - if use ogdi; then
911 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
912 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
913 - fi
914 -
915 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
916 -
917 - # mysql-config puts this in (and boy is it a PITA to get it out)
918 - if use mysql; then
919 - sed -e "s: -rdynamic : :" \
920 - -i GDALmake.opt || die "sed LIBS failed"
921 - fi
922 -}
923 -
924 -src_compile() {
925 - if use perl; then
926 - rm "${S}"/swig/perl/*_wrap.cpp || die
927 - emake -C "${S}"/swig/perl generate
928 - fi
929 -
930 - # gdal-config needed before generating Python bindings
931 - default
932 -
933 - if use java; then
934 - pushd "${S}"/swig/java > /dev/null || die
935 - emake
936 - popd > /dev/null || die
937 - fi
938 -
939 - if use perl; then
940 - pushd "${S}"/swig/perl > /dev/null || die
941 - perl-module_src_configure
942 - perl-module_src_compile
943 - popd > /dev/null || die
944 - fi
945 -
946 - if use python; then
947 - rm -f "${S}"/swig/python/*_wrap.cpp || die
948 - emake -C "${S}"/swig/python generate
949 - pushd "${S}"/swig/python > /dev/null || die
950 - distutils-r1_src_compile
951 - popd > /dev/null || die
952 - fi
953 -
954 - use doc && emake docs
955 -}
956 -
957 -src_install() {
958 - local DOCS=( NEWS )
959 - use doc && local HTML_DOCS=( html/. )
960 -
961 - default
962 -
963 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
964 -
965 - if use perl; then
966 - pushd "${S}"/swig/perl > /dev/null || die
967 - myinst=( DESTDIR="${D}" )
968 - perl-module_src_install
969 - popd > /dev/null || die
970 - perl_delete_localpod
971 - fi
972 -
973 - if use python; then
974 - # Don't clash with gdal's docs
975 - unset DOCS HTML_DOCS
976 -
977 - pushd "${S}"/swig/python > /dev/null || die
978 - distutils-r1_src_install
979 - popd > /dev/null || die
980 -
981 - newdoc swig/python/README.rst README-python.rst
982 -
983 - insinto /usr/share/${PN}/samples
984 - doins -r swig/python/samples/.
985 - fi
986 -
987 - doman "${S}"/man/man*/*
988 - find "${ED}" -name '*.la' -type f -delete || die
989 -}
990 -
991 -pkg_postinst() {
992 - elog "Check available image and data formats after building with"
993 - elog "gdalinfo and ogrinfo (using the --formats switch)."
994 -}
995
996 diff --git a/sci-libs/gdal/gdal-3.3.0.ebuild b/sci-libs/gdal/gdal-3.3.0.ebuild
997 deleted file mode 100644
998 index dbe6b4590fce..000000000000
999 --- a/sci-libs/gdal/gdal-3.3.0.ebuild
1000 +++ /dev/null
1001 @@ -1,313 +0,0 @@
1002 -# Copyright 1999-2021 Gentoo Authors
1003 -# Distributed under the terms of the GNU General Public License v2
1004 -
1005 -EAPI=7
1006 -
1007 -GENTOO_DEPEND_ON_PERL="no"
1008 -PYTHON_COMPAT=( python3_{7,8,9} )
1009 -DISTUTILS_OPTIONAL=1
1010 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
1011 -
1012 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
1013 -HOMEPAGE="https://gdal.org/"
1014 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
1015 -
1016 -SLOT="0/3.3"
1017 -LICENSE="BSD Info-ZIP MIT"
1018 -KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
1019 -IUSE="armadillo +aux-xml curl cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_ssse3 debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
1020 -
1021 -REQUIRED_USE="
1022 - mdb? ( java )
1023 - python? ( ${PYTHON_REQUIRED_USE} )
1024 - spatialite? ( sqlite )
1025 -"
1026 -
1027 -BDEPEND="
1028 - virtual/pkgconfig
1029 - doc? ( app-doc/doxygen )
1030 - java? (
1031 - dev-java/ant-core
1032 - dev-lang/swig:0
1033 - >=virtual/jdk-1.8:*
1034 - )
1035 - perl? ( dev-lang/swig:0 )
1036 - python? (
1037 - dev-lang/swig:0
1038 - dev-python/setuptools[${PYTHON_USEDEP}]
1039 - )
1040 -"
1041 -DEPEND="
1042 - dev-libs/expat
1043 - dev-libs/json-c:=
1044 - dev-libs/libpcre
1045 - dev-libs/libxml2:2
1046 - dev-libs/openssl:=
1047 - media-libs/tiff
1048 - >=sci-libs/libgeotiff-1.5.1-r1:=
1049 - >=sci-libs/proj-6.0.0:=
1050 - sys-libs/zlib[minizip(+)]
1051 - armadillo? ( sci-libs/armadillo:=[lapack] )
1052 - curl? ( net-misc/curl )
1053 - fits? ( sci-libs/cfitsio:= )
1054 - geos? ( >=sci-libs/geos-3.8.0 )
1055 - gif? ( media-libs/giflib:= )
1056 - gml? ( >=dev-libs/xerces-c-3.1 )
1057 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
1058 - jpeg? ( virtual/jpeg:0= )
1059 - jpeg2k? ( media-libs/openjpeg:2= )
1060 - lzma? ( || (
1061 - app-arch/xz-utils
1062 - app-arch/lzma
1063 - ) )
1064 - mdb? ( dev-java/jackcess:1 )
1065 - mysql? ( virtual/mysql )
1066 - netcdf? ( sci-libs/netcdf:= )
1067 - odbc? ( dev-db/unixODBC )
1068 - ogdi? ( sci-libs/ogdi )
1069 - opencl? ( virtual/opencl )
1070 - oracle? ( dev-db/oracle-instantclient:= )
1071 - pdf? ( app-text/poppler:= )
1072 - perl? ( dev-lang/perl:= )
1073 - png? ( media-libs/libpng:0= )
1074 - postgres? ( >=dev-db/postgresql-8.4:= )
1075 - python? (
1076 - ${PYTHON_DEPS}
1077 - dev-python/numpy[${PYTHON_USEDEP}]
1078 - )
1079 - spatialite? ( dev-db/spatialite )
1080 - sqlite? ( dev-db/sqlite:3 )
1081 - webp? ( media-libs/libwebp:= )
1082 - xls? ( dev-libs/freexl )
1083 - zstd? ( app-arch/zstd:= )
1084 -"
1085 -RDEPEND="${DEPEND}
1086 - java? ( >=virtual/jre-1.8:* )
1087 -"
1088 -
1089 -PATCHES=(
1090 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
1091 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
1092 - "${FILESDIR}/${PN}-3.3.0-libdir.patch"
1093 - "${FILESDIR}/${PN}-3.3.0-configure-geos-disable.patch"
1094 -)
1095 -
1096 -src_prepare() {
1097 - default
1098 -
1099 - # Drop a --prefix hack in the upstream build system
1100 - # We don't want the line at all, so let's just drop it rather than
1101 - # trying to put in the right libdir value.
1102 - # bug #696106
1103 - sed -e '/\$ADD_PREFIX\/lib/d' \
1104 - -i configure.ac || die
1105 -
1106 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
1107 - -i configure.ac || die
1108 -
1109 - sed -e 's:^ar:$(AR):g' \
1110 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
1111 -
1112 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
1113 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
1114 - -i swig/python/GNUmakefile || die "sed python makefile failed"
1115 -
1116 - # autoconf 2.70+
1117 - # bug #775209
1118 - config_rpath_update .
1119 -
1120 - eautoreconf
1121 -}
1122 -
1123 -src_configure() {
1124 - local myconf=(
1125 - # charls - not packaged in Gentoo ebuild repository
1126 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
1127 - # bsb - legal issues
1128 - # ingres - same story as oracle oci
1129 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
1130 - # podofo - we use poppler instead they are exclusive for each other
1131 - # tiff is a hard dep
1132 - --includedir="${EPREFIX}"/usr/include/${PN}
1133 - --disable-lto
1134 - --disable-static
1135 - --disable-driver-bsb
1136 - --disable-driver-mrf
1137 - --disable-pdf-plugin
1138 - --enable-shared
1139 - --enable-driver-grib
1140 - --with-bash-completion="$(get_bashcompdir)"
1141 - --with-cpp14
1142 - --with-crypto
1143 - --with-cryptopp=no
1144 - --with-expat
1145 - --with-geotiff
1146 - --with-gnm
1147 - --with-hide-internal-symbols
1148 - --with-libjson-c="${EPREFIX}"/usr
1149 - --with-libtiff
1150 - --with-libtool
1151 - --with-libz="${EPREFIX}"/usr
1152 - --without-charls
1153 - --without-dods-root
1154 - --without-ecw
1155 - --without-fgdb
1156 - --without-fme
1157 - --without-gta
1158 - --without-grass
1159 - --without-hdf4
1160 - --without-idb
1161 - --without-ingres
1162 - --without-jasper
1163 - --without-jp2lura
1164 - --without-jp2mrsid
1165 - --without-kakadu
1166 - --without-kea
1167 - --without-libkml
1168 - --without-mongocxx
1169 - --without-mrsid
1170 - --without-mrsid_lidar
1171 - --without-msg
1172 - --without-rasdaman
1173 - --without-rasterlite2
1174 - --without-pcraster
1175 - --without-pdfium
1176 - --without-perl
1177 - --without-podofo
1178 - --without-python
1179 - --without-qhull
1180 - --without-sfcgal
1181 - --without-sosi
1182 - --without-teigha
1183 - $(use_enable debug)
1184 - $(use_with armadillo)
1185 - $(use_with aux-xml pam)
1186 - $(use_with curl)
1187 - $(use_with cpu_flags_x86_avx avx)
1188 - $(use_with cpu_flags_x86_sse sse)
1189 - $(use_with cpu_flags_x86_ssse3 ssse3)
1190 - $(use_with fits cfitsio)
1191 - $(use_with geos)
1192 - $(use_with gif)
1193 - $(use_with gml xerces)
1194 - $(use_with hdf5)
1195 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
1196 - $(use_with jpeg)
1197 - $(use_with jpeg2k openjpeg)
1198 - $(use_with lzma liblzma)
1199 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
1200 - $(use_with netcdf)
1201 - $(use_with oracle oci)
1202 - $(use_with odbc)
1203 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
1204 - $(use_with opencl)
1205 - $(use_with pdf poppler)
1206 - $(use_with png)
1207 - $(use_with postgres pg)
1208 - $(use_with spatialite)
1209 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
1210 - $(use_with threads)
1211 - $(use_with webp)
1212 - $(use_with xls freexl)
1213 - $(use_with zstd)
1214 - )
1215 -
1216 - tc-export AR RANLIB
1217 -
1218 - if use java; then
1219 - myconf+=(
1220 - --with-java=$(java-config --jdk-home 2>/dev/null)
1221 - --with-jvm-lib=dlopen
1222 - $(use_with mdb)
1223 - )
1224 - else
1225 - myconf+=( --without-java --without-mdb )
1226 - fi
1227 -
1228 - if use sqlite; then
1229 - append-libs -lsqlite3
1230 - fi
1231 -
1232 - # bug #632660
1233 - if use ogdi; then
1234 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1235 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1236 - fi
1237 -
1238 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
1239 -
1240 - # mysql-config puts this in (and boy is it a PITA to get it out)
1241 - if use mysql; then
1242 - sed -e "s: -rdynamic : :" \
1243 - -i GDALmake.opt || die "sed LIBS failed"
1244 - fi
1245 -}
1246 -
1247 -src_compile() {
1248 - if use perl; then
1249 - rm "${S}"/swig/perl/*_wrap.cpp || die
1250 - emake -C "${S}"/swig/perl generate
1251 - fi
1252 -
1253 - # gdal-config needed before generating Python bindings
1254 - default
1255 -
1256 - if use java; then
1257 - pushd "${S}"/swig/java > /dev/null || die
1258 - emake
1259 - popd > /dev/null || die
1260 - fi
1261 -
1262 - if use perl; then
1263 - pushd "${S}"/swig/perl > /dev/null || die
1264 - perl-module_src_configure
1265 - perl-module_src_compile
1266 - popd > /dev/null || die
1267 - fi
1268 -
1269 - if use python; then
1270 - rm -f "${S}"/swig/python/*_wrap.cpp || die
1271 - emake -C "${S}"/swig/python generate
1272 - pushd "${S}"/swig/python > /dev/null || die
1273 - distutils-r1_src_compile
1274 - popd > /dev/null || die
1275 - fi
1276 -
1277 - use doc && emake docs
1278 -}
1279 -
1280 -src_install() {
1281 - local DOCS=( NEWS )
1282 - use doc && local HTML_DOCS=( html/. )
1283 -
1284 - default
1285 -
1286 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
1287 -
1288 - if use perl; then
1289 - pushd "${S}"/swig/perl > /dev/null || die
1290 - myinst=( DESTDIR="${D}" )
1291 - perl-module_src_install
1292 - popd > /dev/null || die
1293 - perl_delete_localpod
1294 - fi
1295 -
1296 - if use python; then
1297 - # Don't clash with gdal's docs
1298 - unset DOCS HTML_DOCS
1299 -
1300 - pushd "${S}"/swig/python > /dev/null || die
1301 - distutils-r1_src_install
1302 - popd > /dev/null || die
1303 -
1304 - newdoc swig/python/README.rst README-python.rst
1305 - fi
1306 -
1307 - doman "${S}"/man/man*/*
1308 - find "${ED}" -name '*.la' -type f -delete || die
1309 -}
1310 -
1311 -pkg_postinst() {
1312 - elog "Check available image and data formats after building with"
1313 - elog "gdalinfo and ogrinfo (using the --formats switch)."
1314 -}
1315
1316 diff --git a/sci-libs/gdal/gdal-3.3.1.ebuild b/sci-libs/gdal/gdal-3.3.1.ebuild
1317 deleted file mode 100644
1318 index 6f1591907673..000000000000
1319 --- a/sci-libs/gdal/gdal-3.3.1.ebuild
1320 +++ /dev/null
1321 @@ -1,312 +0,0 @@
1322 -# Copyright 1999-2021 Gentoo Authors
1323 -# Distributed under the terms of the GNU General Public License v2
1324 -
1325 -EAPI=7
1326 -
1327 -GENTOO_DEPEND_ON_PERL="no"
1328 -PYTHON_COMPAT=( python3_{8,9} )
1329 -DISTUTILS_OPTIONAL=1
1330 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
1331 -
1332 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
1333 -HOMEPAGE="https://gdal.org/"
1334 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
1335 -
1336 -SLOT="0/3.3"
1337 -LICENSE="BSD Info-ZIP MIT"
1338 -KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos"
1339 -IUSE="armadillo +aux-xml curl cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_ssse3 debug doc fits geos gif gml hdf5 java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
1340 -
1341 -REQUIRED_USE="
1342 - mdb? ( java )
1343 - python? ( ${PYTHON_REQUIRED_USE} )
1344 - spatialite? ( sqlite )
1345 -"
1346 -
1347 -BDEPEND="
1348 - virtual/pkgconfig
1349 - doc? ( app-doc/doxygen )
1350 - java? (
1351 - dev-java/ant-core
1352 - dev-lang/swig:0
1353 - >=virtual/jdk-1.8:*
1354 - )
1355 - perl? ( dev-lang/swig:0 )
1356 - python? (
1357 - dev-lang/swig:0
1358 - dev-python/setuptools[${PYTHON_USEDEP}]
1359 - )
1360 -"
1361 -DEPEND="
1362 - dev-libs/expat
1363 - dev-libs/json-c:=
1364 - dev-libs/libpcre
1365 - dev-libs/libxml2:2
1366 - dev-libs/openssl:=
1367 - media-libs/tiff
1368 - >=sci-libs/libgeotiff-1.5.1-r1:=
1369 - >=sci-libs/proj-6.0.0:=
1370 - sys-libs/zlib[minizip(+)]
1371 - armadillo? ( sci-libs/armadillo:=[lapack] )
1372 - curl? ( net-misc/curl )
1373 - fits? ( sci-libs/cfitsio:= )
1374 - geos? ( >=sci-libs/geos-3.8.0 )
1375 - gif? ( media-libs/giflib:= )
1376 - gml? ( >=dev-libs/xerces-c-3.1 )
1377 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
1378 - jpeg? ( virtual/jpeg:0= )
1379 - jpeg2k? ( media-libs/openjpeg:2= )
1380 - lzma? ( || (
1381 - app-arch/xz-utils
1382 - app-arch/lzma
1383 - ) )
1384 - mdb? ( dev-java/jackcess:1 )
1385 - mysql? ( virtual/mysql )
1386 - netcdf? ( sci-libs/netcdf:= )
1387 - odbc? ( dev-db/unixODBC )
1388 - ogdi? ( sci-libs/ogdi )
1389 - opencl? ( virtual/opencl )
1390 - oracle? ( dev-db/oracle-instantclient:= )
1391 - pdf? ( app-text/poppler:= )
1392 - perl? ( dev-lang/perl:= )
1393 - png? ( media-libs/libpng:0= )
1394 - postgres? ( >=dev-db/postgresql-8.4:= )
1395 - python? (
1396 - ${PYTHON_DEPS}
1397 - dev-python/numpy[${PYTHON_USEDEP}]
1398 - )
1399 - spatialite? ( dev-db/spatialite )
1400 - sqlite? ( dev-db/sqlite:3 )
1401 - webp? ( media-libs/libwebp:= )
1402 - xls? ( dev-libs/freexl )
1403 - zstd? ( app-arch/zstd:= )
1404 -"
1405 -RDEPEND="${DEPEND}
1406 - java? ( >=virtual/jre-1.8:* )
1407 -"
1408 -
1409 -PATCHES=(
1410 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
1411 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
1412 - "${FILESDIR}/${PN}-3.3.0-libdir.patch"
1413 -)
1414 -
1415 -src_prepare() {
1416 - default
1417 -
1418 - # Drop a --prefix hack in the upstream build system
1419 - # We don't want the line at all, so let's just drop it rather than
1420 - # trying to put in the right libdir value.
1421 - # bug #696106
1422 - sed -e '/\$ADD_PREFIX\/lib/d' \
1423 - -i configure.ac || die
1424 -
1425 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
1426 - -i configure.ac || die
1427 -
1428 - sed -e 's:^ar:$(AR):g' \
1429 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
1430 -
1431 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
1432 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
1433 - -i swig/python/GNUmakefile || die "sed python makefile failed"
1434 -
1435 - # autoconf 2.70+
1436 - # bug #775209
1437 - config_rpath_update .
1438 -
1439 - eautoreconf
1440 -}
1441 -
1442 -src_configure() {
1443 - local myconf=(
1444 - # charls - not packaged in Gentoo ebuild repository
1445 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
1446 - # bsb - legal issues
1447 - # ingres - same story as oracle oci
1448 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
1449 - # podofo - we use poppler instead they are exclusive for each other
1450 - # tiff is a hard dep
1451 - --includedir="${EPREFIX}"/usr/include/${PN}
1452 - --disable-lto
1453 - --disable-static
1454 - --disable-driver-bsb
1455 - --disable-driver-mrf
1456 - --disable-pdf-plugin
1457 - --enable-shared
1458 - --enable-driver-grib
1459 - --with-bash-completion="$(get_bashcompdir)"
1460 - --with-cpp14
1461 - --with-crypto
1462 - --with-cryptopp=no
1463 - --with-expat
1464 - --with-geotiff
1465 - --with-gnm
1466 - --with-hide-internal-symbols
1467 - --with-libjson-c="${EPREFIX}"/usr
1468 - --with-libtiff
1469 - --with-libtool
1470 - --with-libz="${EPREFIX}"/usr
1471 - --without-charls
1472 - --without-dods-root
1473 - --without-ecw
1474 - --without-fgdb
1475 - --without-fme
1476 - --without-gta
1477 - --without-grass
1478 - --without-hdf4
1479 - --without-idb
1480 - --without-ingres
1481 - --without-jasper
1482 - --without-jp2lura
1483 - --without-jp2mrsid
1484 - --without-kakadu
1485 - --without-kea
1486 - --without-libkml
1487 - --without-mongocxx
1488 - --without-mrsid
1489 - --without-mrsid_lidar
1490 - --without-msg
1491 - --without-rasdaman
1492 - --without-rasterlite2
1493 - --without-pcraster
1494 - --without-pdfium
1495 - --without-perl
1496 - --without-podofo
1497 - --without-python
1498 - --without-qhull
1499 - --without-sfcgal
1500 - --without-sosi
1501 - --without-teigha
1502 - $(use_enable debug)
1503 - $(use_with armadillo)
1504 - $(use_with aux-xml pam)
1505 - $(use_with curl)
1506 - $(use_with cpu_flags_x86_avx avx)
1507 - $(use_with cpu_flags_x86_sse sse)
1508 - $(use_with cpu_flags_x86_ssse3 ssse3)
1509 - $(use_with fits cfitsio)
1510 - $(use_with geos)
1511 - $(use_with gif)
1512 - $(use_with gml xerces)
1513 - $(use_with hdf5)
1514 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
1515 - $(use_with jpeg)
1516 - $(use_with jpeg2k openjpeg)
1517 - $(use_with lzma liblzma)
1518 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
1519 - $(use_with netcdf)
1520 - $(use_with oracle oci)
1521 - $(use_with odbc)
1522 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
1523 - $(use_with opencl)
1524 - $(use_with pdf poppler)
1525 - $(use_with png)
1526 - $(use_with postgres pg)
1527 - $(use_with spatialite)
1528 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
1529 - $(use_with threads)
1530 - $(use_with webp)
1531 - $(use_with xls freexl)
1532 - $(use_with zstd)
1533 - )
1534 -
1535 - tc-export AR RANLIB
1536 -
1537 - if use java; then
1538 - myconf+=(
1539 - --with-java=$(java-config --jdk-home 2>/dev/null)
1540 - --with-jvm-lib=dlopen
1541 - $(use_with mdb)
1542 - )
1543 - else
1544 - myconf+=( --without-java --without-mdb )
1545 - fi
1546 -
1547 - if use sqlite; then
1548 - append-libs -lsqlite3
1549 - fi
1550 -
1551 - # bug #632660
1552 - if use ogdi; then
1553 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1554 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1555 - fi
1556 -
1557 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
1558 -
1559 - # mysql-config puts this in (and boy is it a PITA to get it out)
1560 - if use mysql; then
1561 - sed -e "s: -rdynamic : :" \
1562 - -i GDALmake.opt || die "sed LIBS failed"
1563 - fi
1564 -}
1565 -
1566 -src_compile() {
1567 - if use perl; then
1568 - rm "${S}"/swig/perl/*_wrap.cpp || die
1569 - emake -C "${S}"/swig/perl generate
1570 - fi
1571 -
1572 - # gdal-config needed before generating Python bindings
1573 - default
1574 -
1575 - if use java; then
1576 - pushd "${S}"/swig/java > /dev/null || die
1577 - emake
1578 - popd > /dev/null || die
1579 - fi
1580 -
1581 - if use perl; then
1582 - pushd "${S}"/swig/perl > /dev/null || die
1583 - perl-module_src_configure
1584 - perl-module_src_compile
1585 - popd > /dev/null || die
1586 - fi
1587 -
1588 - if use python; then
1589 - rm -f "${S}"/swig/python/*_wrap.cpp || die
1590 - emake -C "${S}"/swig/python generate
1591 - pushd "${S}"/swig/python > /dev/null || die
1592 - distutils-r1_src_compile
1593 - popd > /dev/null || die
1594 - fi
1595 -
1596 - use doc && emake docs
1597 -}
1598 -
1599 -src_install() {
1600 - local DOCS=( NEWS )
1601 - use doc && local HTML_DOCS=( html/. )
1602 -
1603 - default
1604 -
1605 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
1606 -
1607 - if use perl; then
1608 - pushd "${S}"/swig/perl > /dev/null || die
1609 - myinst=( DESTDIR="${D}" )
1610 - perl-module_src_install
1611 - popd > /dev/null || die
1612 - perl_delete_localpod
1613 - fi
1614 -
1615 - if use python; then
1616 - # Don't clash with gdal's docs
1617 - unset DOCS HTML_DOCS
1618 -
1619 - pushd "${S}"/swig/python > /dev/null || die
1620 - distutils-r1_src_install
1621 - popd > /dev/null || die
1622 -
1623 - newdoc swig/python/README.rst README-python.rst
1624 - fi
1625 -
1626 - doman "${S}"/man/man*/*
1627 - find "${ED}" -name '*.la' -type f -delete || die
1628 -}
1629 -
1630 -pkg_postinst() {
1631 - elog "Check available image and data formats after building with"
1632 - elog "gdalinfo and ogrinfo (using the --formats switch)."
1633 -}
1634
1635 diff --git a/sci-libs/gdal/gdal-3.3.2-r1.ebuild b/sci-libs/gdal/gdal-3.3.2-r1.ebuild
1636 deleted file mode 100644
1637 index cf27723d766d..000000000000
1638 --- a/sci-libs/gdal/gdal-3.3.2-r1.ebuild
1639 +++ /dev/null
1640 @@ -1,315 +0,0 @@
1641 -# Copyright 1999-2021 Gentoo Authors
1642 -# Distributed under the terms of the GNU General Public License v2
1643 -
1644 -EAPI=7
1645 -
1646 -GENTOO_DEPEND_ON_PERL="no"
1647 -PYTHON_COMPAT=( python3_{8,9,10} )
1648 -DISTUTILS_OPTIONAL=1
1649 -inherit autotools bash-completion-r1 distutils-r1 flag-o-matic java-pkg-opt-2 perl-module toolchain-funcs
1650 -
1651 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
1652 -HOMEPAGE="https://gdal.org/"
1653 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
1654 -
1655 -SLOT="0/3.3"
1656 -LICENSE="BSD Info-ZIP MIT"
1657 -KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos"
1658 -IUSE="armadillo +aux-xml curl cpu_flags_x86_avx cpu_flags_x86_sse cpu_flags_x86_ssse3 debug doc fits geos gif gml hdf5 heif java jpeg jpeg2k lzma mdb mysql netcdf odbc ogdi opencl oracle pdf perl png postgres python spatialite sqlite threads webp xls zstd"
1659 -
1660 -REQUIRED_USE="
1661 - mdb? ( java )
1662 - python? ( ${PYTHON_REQUIRED_USE} )
1663 - spatialite? ( sqlite )
1664 -"
1665 -
1666 -BDEPEND="
1667 - virtual/pkgconfig
1668 - doc? ( app-doc/doxygen )
1669 - java? (
1670 - dev-java/ant-core
1671 - dev-lang/swig:0
1672 - >=virtual/jdk-1.8:*
1673 - )
1674 - perl? ( dev-lang/swig:0 )
1675 - python? (
1676 - dev-lang/swig:0
1677 - dev-python/setuptools[${PYTHON_USEDEP}]
1678 - )
1679 -"
1680 -DEPEND="
1681 - dev-libs/expat
1682 - dev-libs/json-c:=
1683 - dev-libs/libpcre
1684 - dev-libs/libxml2:2
1685 - dev-libs/openssl:=
1686 - media-libs/tiff
1687 - >=sci-libs/libgeotiff-1.5.1-r1:=
1688 - >=sci-libs/proj-6.0.0:=
1689 - sys-libs/zlib[minizip(+)]
1690 - armadillo? ( sci-libs/armadillo:=[lapack] )
1691 - curl? ( net-misc/curl )
1692 - fits? ( sci-libs/cfitsio:= )
1693 - geos? ( >=sci-libs/geos-3.8.0 )
1694 - gif? ( media-libs/giflib:= )
1695 - gml? ( >=dev-libs/xerces-c-3.1 )
1696 - heif? ( media-libs/libheif:= )
1697 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
1698 - jpeg? ( virtual/jpeg:0= )
1699 - jpeg2k? ( media-libs/openjpeg:2= )
1700 - lzma? ( || (
1701 - app-arch/xz-utils
1702 - app-arch/lzma
1703 - ) )
1704 - mdb? ( dev-java/jackcess:1 )
1705 - mysql? ( virtual/mysql )
1706 - netcdf? ( sci-libs/netcdf:= )
1707 - odbc? ( dev-db/unixODBC )
1708 - ogdi? ( sci-libs/ogdi )
1709 - opencl? ( virtual/opencl )
1710 - oracle? ( dev-db/oracle-instantclient:= )
1711 - pdf? ( app-text/poppler:= )
1712 - perl? ( dev-lang/perl:= )
1713 - png? ( media-libs/libpng:0= )
1714 - postgres? ( >=dev-db/postgresql-8.4:= )
1715 - python? (
1716 - ${PYTHON_DEPS}
1717 - dev-python/numpy[${PYTHON_USEDEP}]
1718 - )
1719 - spatialite? ( dev-db/spatialite )
1720 - sqlite? ( dev-db/sqlite:3 )
1721 - webp? ( media-libs/libwebp:= )
1722 - xls? ( dev-libs/freexl )
1723 - zstd? ( app-arch/zstd:= )
1724 -"
1725 -RDEPEND="${DEPEND}
1726 - java? ( >=virtual/jre-1.8:* )
1727 -"
1728 -
1729 -PATCHES=(
1730 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
1731 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
1732 - "${FILESDIR}/${PN}-3.3.0-libdir.patch"
1733 - "${FILESDIR}/${P}-poppler-21.10.0.patch"
1734 -)
1735 -
1736 -src_prepare() {
1737 - default
1738 -
1739 - # Drop a --prefix hack in the upstream build system
1740 - # We don't want the line at all, so let's just drop it rather than
1741 - # trying to put in the right libdir value.
1742 - # bug #696106
1743 - sed -e '/\$ADD_PREFIX\/lib/d' \
1744 - -i configure.ac || die
1745 -
1746 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
1747 - -i configure.ac || die
1748 -
1749 - sed -e 's:^ar:$(AR):g' \
1750 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
1751 -
1752 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
1753 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
1754 - -i swig/python/GNUmakefile || die "sed python makefile failed"
1755 -
1756 - # autoconf 2.70+
1757 - # bug #775209
1758 - config_rpath_update .
1759 -
1760 - eautoreconf
1761 -}
1762 -
1763 -src_configure() {
1764 - local myconf=(
1765 - # charls - not packaged in Gentoo ebuild repository
1766 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
1767 - # bsb - legal issues
1768 - # ingres - same story as oracle oci
1769 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
1770 - # podofo - we use poppler instead they are exclusive for each other
1771 - # tiff is a hard dep
1772 - --includedir="${EPREFIX}"/usr/include/${PN}
1773 - --disable-lto
1774 - --disable-static
1775 - --disable-driver-bsb
1776 - --disable-driver-mrf
1777 - --disable-pdf-plugin
1778 - --enable-shared
1779 - --enable-driver-grib
1780 - --with-bash-completion="$(get_bashcompdir)"
1781 - --with-cpp14
1782 - --with-crypto
1783 - --with-cryptopp=no
1784 - --with-expat
1785 - --with-geotiff
1786 - --with-gnm
1787 - --with-hide-internal-symbols
1788 - --with-libjson-c="${EPREFIX}"/usr
1789 - --with-libtiff
1790 - --with-libtool
1791 - --with-libz="${EPREFIX}"/usr
1792 - --without-charls
1793 - --without-dods-root
1794 - --without-ecw
1795 - --without-fgdb
1796 - --without-fme
1797 - --without-gta
1798 - --without-grass
1799 - --without-hdf4
1800 - --without-idb
1801 - --without-ingres
1802 - --without-jasper
1803 - --without-jp2lura
1804 - --without-jp2mrsid
1805 - --without-kakadu
1806 - --without-kea
1807 - --without-libkml
1808 - --without-mongocxx
1809 - --without-mrsid
1810 - --without-mrsid_lidar
1811 - --without-msg
1812 - --without-rasdaman
1813 - --without-rasterlite2
1814 - --without-pcraster
1815 - --without-pdfium
1816 - --without-perl
1817 - --without-podofo
1818 - --without-python
1819 - --without-qhull
1820 - --without-sfcgal
1821 - --without-sosi
1822 - --without-teigha
1823 - $(use_enable debug)
1824 - $(use_with armadillo)
1825 - $(use_with aux-xml pam)
1826 - $(use_with curl)
1827 - $(use_with cpu_flags_x86_avx avx)
1828 - $(use_with cpu_flags_x86_sse sse)
1829 - $(use_with cpu_flags_x86_ssse3 ssse3)
1830 - $(use_with fits cfitsio)
1831 - $(use_with geos)
1832 - $(use_with gif)
1833 - $(use_with gml xerces)
1834 - $(use_with heif)
1835 - $(use_with hdf5)
1836 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
1837 - $(use_with jpeg)
1838 - $(use_with jpeg2k openjpeg)
1839 - $(use_with lzma liblzma)
1840 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
1841 - $(use_with netcdf)
1842 - $(use_with oracle oci)
1843 - $(use_with odbc)
1844 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
1845 - $(use_with opencl)
1846 - $(use_with pdf poppler)
1847 - $(use_with png)
1848 - $(use_with postgres pg)
1849 - $(use_with spatialite)
1850 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
1851 - $(use_with threads)
1852 - $(use_with webp)
1853 - $(use_with xls freexl)
1854 - $(use_with zstd)
1855 - )
1856 -
1857 - tc-export AR RANLIB
1858 -
1859 - if use java; then
1860 - myconf+=(
1861 - --with-java=$(java-config --jdk-home 2>/dev/null)
1862 - --with-jvm-lib=dlopen
1863 - $(use_with mdb)
1864 - )
1865 - else
1866 - myconf+=( --without-java --without-mdb )
1867 - fi
1868 -
1869 - if use sqlite; then
1870 - append-libs -lsqlite3
1871 - fi
1872 -
1873 - # bug #632660
1874 - if use ogdi; then
1875 - append-cflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1876 - append-cxxflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
1877 - fi
1878 -
1879 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
1880 -
1881 - # mysql-config puts this in (and boy is it a PITA to get it out)
1882 - if use mysql; then
1883 - sed -e "s: -rdynamic : :" \
1884 - -i GDALmake.opt || die "sed LIBS failed"
1885 - fi
1886 -}
1887 -
1888 -src_compile() {
1889 - if use perl; then
1890 - rm "${S}"/swig/perl/*_wrap.cpp || die
1891 - emake -C "${S}"/swig/perl generate
1892 - fi
1893 -
1894 - # gdal-config needed before generating Python bindings
1895 - default
1896 -
1897 - if use java; then
1898 - pushd "${S}"/swig/java > /dev/null || die
1899 - emake
1900 - popd > /dev/null || die
1901 - fi
1902 -
1903 - if use perl; then
1904 - pushd "${S}"/swig/perl > /dev/null || die
1905 - perl-module_src_configure
1906 - perl-module_src_compile
1907 - popd > /dev/null || die
1908 - fi
1909 -
1910 - if use python; then
1911 - rm -f "${S}"/swig/python/*_wrap.cpp || die
1912 - emake -C "${S}"/swig/python generate
1913 - pushd "${S}"/swig/python > /dev/null || die
1914 - distutils-r1_src_compile
1915 - popd > /dev/null || die
1916 - fi
1917 -
1918 - use doc && emake docs
1919 -}
1920 -
1921 -src_install() {
1922 - local DOCS=( NEWS )
1923 - use doc && local HTML_DOCS=( html/. )
1924 -
1925 - default
1926 -
1927 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
1928 -
1929 - if use perl; then
1930 - pushd "${S}"/swig/perl > /dev/null || die
1931 - myinst=( DESTDIR="${D}" )
1932 - perl-module_src_install
1933 - popd > /dev/null || die
1934 - perl_delete_localpod
1935 - fi
1936 -
1937 - if use python; then
1938 - # Don't clash with gdal's docs
1939 - unset DOCS HTML_DOCS
1940 -
1941 - pushd "${S}"/swig/python > /dev/null || die
1942 - distutils-r1_src_install
1943 - popd > /dev/null || die
1944 -
1945 - newdoc swig/python/README.rst README-python.rst
1946 - fi
1947 -
1948 - doman "${S}"/man/man*/*
1949 - find "${ED}" -name '*.la' -type f -delete || die
1950 -}
1951 -
1952 -pkg_postinst() {
1953 - elog "Check available image and data formats after building with"
1954 - elog "gdalinfo and ogrinfo (using the --formats switch)."
1955 -}