Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/gdal/, sci-libs/gdal/files/
Date: Wed, 29 Jan 2020 21:32:55
Message-Id: 1580333556.1ae8b7c7c3790f0a866e57eb44b06a8c014c3c51.asturm@gentoo
1 commit: 1ae8b7c7c3790f0a866e57eb44b06a8c014c3c51
2 Author: Chris Mayo <aklhfex <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 10 19:38:40 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 29 21:32:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ae8b7c7
7
8 sci-libs/gdal: version bump 3.0.2
9
10 Bug: https://bugs.gentoo.org/686732
11 Package-Manager: Portage-2.3.79, Repoman-2.3.16
12 Signed-off-by: Chris Mayo <aklhfex <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/14061
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 sci-libs/gdal/Manifest | 1 +
17 sci-libs/gdal/files/gdal-3.0.2-complete.patch | 84 +++++++
18 sci-libs/gdal/files/gdal-3.0.2-datadir.patch | 69 ++++++
19 sci-libs/gdal/gdal-3.0.2.ebuild | 305 ++++++++++++++++++++++++++
20 4 files changed, 459 insertions(+)
21
22 diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest
23 index a3f4832ec81..06a7010fbf8 100644
24 --- a/sci-libs/gdal/Manifest
25 +++ b/sci-libs/gdal/Manifest
26 @@ -1,2 +1,3 @@
27 DIST gdal-2.4.1.tar.gz 14546610 BLAKE2B 92404336339c6f46877f3e6599af6fc67a53714888ff66fc0142efa8ddf185ad34d9ec337dcbad67f059041da31e70073a9e41872a7332fd9977552d79fcbc61 SHA512 b25e49f343986af6f37e0bec6dc3084cbcf1a0080da5cfd91d1a58c1d9ffd2ac355299d66534e63e89358cbb15ecd0f2ae934d91bbd2a3749889dadaf266e483
28 DIST gdal-2.4.3.tar.gz 14726748 BLAKE2B 104c29912a96b03d0913be40f91a844b2f04f1e972b1ae8764bd277e7d51960b45d4a67a8f9240130de7ce8752f69f4172ca9a54bb11e70635aa55b6c6924cb5 SHA512 e532ce86c92724300ab443c42dd8cec0e74e41411a54d30222f98faa10623b31e616eda44da8f406ed01f3fc3c72c76e8ceb80c1dff733f8efcaa2e2e18132f6
29 +DIST gdal-3.0.2.tar.gz 14348856 BLAKE2B a52b3c5f1177b85ca991fd5dd27e4238a6ff066fa28842ffbddea8617a3f897d9525035a1cf9237365dbc4657037b3eb0a740cd0e65fe4c83b0c76ffe23c0e56 SHA512 eb35e28106f2f422fd5021261ef44864574f6a6be23e679cc5ae44be910f978769fc24fa15367ad4058fb3170cdd2985a6c4caedc3510dde8a6d163091cf3ab0
30
31 diff --git a/sci-libs/gdal/files/gdal-3.0.2-complete.patch b/sci-libs/gdal/files/gdal-3.0.2-complete.patch
32 new file mode 100644
33 index 00000000000..5d6716c7280
34 --- /dev/null
35 +++ b/sci-libs/gdal/files/gdal-3.0.2-complete.patch
36 @@ -0,0 +1,84 @@
37 +diff --git a/GDALmake.opt.in b/GDALmake.opt.in
38 +index fd8e8f374d..655c004c56 100644
39 +--- a/GDALmake.opt.in
40 ++++ b/GDALmake.opt.in
41 +@@ -63,6 +63,7 @@ INST_INCLUDE = @includedir@
42 + INST_DATA = @datadir@
43 + INST_LIB = @libdir@
44 + INST_BIN = @bindir@
45 ++INST_BASH_COMPLETION = @bashcompdir@
46 + INST_PYMOD = @pymoddir@
47 + INST_DOCS = @exec_prefix@/doc
48 + INST_MAN = @mandir@
49 +diff --git a/GNUmakefile b/GNUmakefile
50 +index 92467d6cf6..6d5e7d9fc0 100644
51 +--- a/GNUmakefile
52 ++++ b/GNUmakefile
53 +@@ -229,7 +229,9 @@ endif
54 + ifneq ($(BINDINGS),)
55 + (cd swig; $(MAKE) install)
56 + endif
57 ++ifdef INST_BASH_COMPLETION
58 + (cd scripts; $(MAKE) install)
59 ++endif
60 + for f in LICENSE.TXT data/*.* ; do $(INSTALL_DATA) $$f $(DESTDIR)$(INST_DATA) ; done
61 + $(LIBTOOL_FINISH) $(DESTDIR)$(INST_LIB)
62 + $(INSTALL_DIR) $(DESTDIR)$(INST_LIB)/pkgconfig
63 +diff --git a/configure.ac b/configure.ac
64 +index 93ddca84d9..5d0e7ab8be 100644
65 +--- a/configure.ac
66 ++++ b/configure.ac
67 +@@ -1187,6 +1187,24 @@ if test "$am_func_iconv" = "yes"; then
68 + AC_DEFINE_UNQUOTED(ICONV_CPP_CONST,$ICONV_CPP_CONST, [For.cpp files, define as const if the declaration of iconv() needs const.])
69 + fi
70 +
71 ++dnl ---------------------------------------------------------------------------
72 ++dnl Bash completions
73 ++dnl ---------------------------------------------------------------------------
74 ++
75 ++AC_ARG_WITH([bash-completion],
76 ++ AS_HELP_STRING([--with-bash-completion[=ARG]],
77 ++ [Install Bash completions (ARG=yes or path)]),,)
78 ++
79 ++if test "x$with_bash_completion" = "xno" -o "x$with_bash_completion" = "x"; then
80 ++ AC_MSG_NOTICE([Bash completions not requested])
81 ++elif test "x$with_bash_completion" = "xyes"; then
82 ++ PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
83 ++ bashcompdir="${sysconfdir}/bash_completion.d")
84 ++ AC_SUBST(bashcompdir)
85 ++else
86 ++ AC_SUBST(bashcompdir, $with_bash_completion)
87 ++fi
88 ++
89 + dnl ---------------------------------------------------------------------------
90 + dnl PROJ.6 related stuff
91 + dnl ---------------------------------------------------------------------------
92 +diff --git a/scripts/GNUmakefile b/scripts/GNUmakefile
93 +index 8f039e469a..511fbb499c 100644
94 +--- a/scripts/GNUmakefile
95 ++++ b/scripts/GNUmakefile
96 +@@ -1,10 +1,20 @@
97 + include ../GDALmake.opt
98 +
99 ++PROGRAMS := gdal2tiles.py gdal2xyz.py gdaladdo gdalbuildvrt gdal_calc.py \
100 ++ gdalchksum.py gdalcompare.py gdal-config gdal_contour gdaldem \
101 ++ gdal_edit.py gdalenhance gdal_fillnodata.py gdal_grid \
102 ++ gdalident.py gdalimport.py gdallocationinfo gdalmanage \
103 ++ gdal_merge.py gdalmove.py gdal_polygonize.py gdal_proximity.py \
104 ++ gdal_rasterize gdal_retile.py gdalserver gdal_sieve.py \
105 ++ gdalsrsinfo gdaltindex gdaltransform gdal_translate gdalwarp \
106 ++ ogr2ogr ogrinfo ogrlineref ogrmerge.py ogrtindex
107 ++
108 + completion:
109 + PATH=$(GDAL_ROOT)/swig/python/scripts:$(GDAL_ROOT)/apps:$(PATH) python completionFinder.py gdal-bash-completion.sh
110 +
111 + install:
112 +- if test "x`pkg-config --version 2>/dev/null`" != "x" -a "x`pkg-config --variable=compatdir bash-completion`" != "x"; then \
113 +- $(INSTALL_DIR) $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion` ; \
114 +- cp gdal-bash-completion.sh $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion`; \
115 +- fi
116 ++ $(INSTALL_DIR) $(DESTDIR)$(INST_BASH_COMPLETION) ; \
117 ++ $(INSTALL_DATA) gdal-bash-completion.sh $(DESTDIR)$(INST_BASH_COMPLETION)/gdalinfo; \
118 ++ for p in $(PROGRAMS); do \
119 ++ ln -rs $(DESTDIR)$(INST_BASH_COMPLETION)/gdalinfo $(DESTDIR)$(INST_BASH_COMPLETION)/$$p; \
120 ++ done
121
122 diff --git a/sci-libs/gdal/files/gdal-3.0.2-datadir.patch b/sci-libs/gdal/files/gdal-3.0.2-datadir.patch
123 new file mode 100644
124 index 00000000000..95c525ca1b8
125 --- /dev/null
126 +++ b/sci-libs/gdal/files/gdal-3.0.2-datadir.patch
127 @@ -0,0 +1,69 @@
128 +diff --git a/gdal/GDALmake.opt.in b/gdal/GDALmake.opt.in
129 +index 655c004c56..7d8f3708d6 100644
130 +--- a/GDALmake.opt.in
131 ++++ b/GDALmake.opt.in
132 +@@ -56,18 +56,23 @@ GNM_ENABLED = @GNM_ENABLED@
133 + OSX_FRAMEWORK_PREFIX = /Library/Frameworks/GDAL.framework
134 + OSX_VERSION_FRAMEWORK_PREFIX = ${OSX_FRAMEWORK_PREFIX}/Versions/@GDAL_VERSION_MAJOR@.@GDAL_VERSION_MINOR@
135 +
136 ++PACKAGE = @PACKAGE@
137 ++
138 + prefix = @prefix@
139 + exec_prefix = @exec_prefix@
140 ++datarootdir = @datarootdir@
141 ++docdir = @docdir@
142 ++htmldir = @htmldir@
143 + INST_PREFIX = @exec_prefix@
144 + INST_INCLUDE = @includedir@
145 +-INST_DATA = @datadir@
146 ++INST_DATA = @datadir@/gdal
147 + INST_LIB = @libdir@
148 + INST_BIN = @bindir@
149 + INST_BASH_COMPLETION = @bashcompdir@
150 + INST_PYMOD = @pymoddir@
151 +-INST_DOCS = @exec_prefix@/doc
152 ++INST_DOCS = @htmldir@
153 + INST_MAN = @mandir@
154 +-INST_HTML = $(HOME)/www/gdal
155 ++INST_WEB = $(HOME)/www/gdal
156 +
157 + CPPFLAGS := @CPPFLAGS@ -I$(GDAL_ROOT)/port @EXTRA_INCLUDES@ -DGDAL_COMPILATION
158 + CFLAGS = @CFLAGS@ @C_WFLAGS@ $(USER_DEFS)
159 +diff --git a/gdal/configure.ac b/gdal/configure.ac
160 +index 5d0e7ab8be..afef88fdbd 100644
161 +--- a/configure.ac
162 ++++ b/configure.ac
163 +@@ -33,6 +33,7 @@ define([AC_CACHE_SAVE], )
164 +
165 + dnl Process this file with autoconf to produce a configure script.
166 + AC_INIT(GDALmake.opt.in)
167 ++AC_SUBST(PACKAGE, gdal)
168 + AC_CONFIG_MACRO_DIR(m4)
169 + AC_CONFIG_HEADERS([port/cpl_config.h:port/cpl_config.h.in])
170 + AH_BOTTOM([#include "cpl_config_extras.h"])
171 +@@ -5167,25 +5168,6 @@ export BINTRUE
172 +
173 + AC_SUBST(BINTRUE,$BINTRUE)
174 +
175 +-dnl ---------------------------------------------------------------------------
176 +-dnl If datadir is set to @prefix@/share, the modify it to be
177 +-dnl @prefix@/share/gdal. I wish we could default this.
178 +-dnl ---------------------------------------------------------------------------
179 +-if test "$datadir" = '${prefix}/share' ; then
180 +- datadir='${prefix}/share/gdal'
181 +-fi
182 +-
183 +-if test "$datadir" = '${datarootdir}' \
184 +- -a "$datarootdir" = '${prefix}/share' ; then
185 +- datarootdir='${prefix}/share/gdal'
186 +-fi
187 +-
188 +-dnl ---------------------------------------------------------------------------
189 +-dnl By default mandir is $datarootdir/man which would be
190 +-dnl /usr/local/share/gdal/man but we want man pages in /usr/local/man.
191 +-dnl ---------------------------------------------------------------------------
192 +-mandir='${prefix}/man'
193 +-
194 + dnl ---------------------------------------------------------------------------
195 + dnl Capture GDAL_PREFIX for the cpl_config.h include file.
196 + dnl ---------------------------------------------------------------------------
197
198 diff --git a/sci-libs/gdal/gdal-3.0.2.ebuild b/sci-libs/gdal/gdal-3.0.2.ebuild
199 new file mode 100644
200 index 00000000000..bfeb01ef6ac
201 --- /dev/null
202 +++ b/sci-libs/gdal/gdal-3.0.2.ebuild
203 @@ -0,0 +1,305 @@
204 +# Copyright 1999-2020 Gentoo Authors
205 +# Distributed under the terms of the GNU General Public License v2
206 +
207 +EAPI=7
208 +
209 +GENTOO_DEPEND_ON_PERL="no"
210 +PYTHON_COMPAT=( python3_{6,7,8} )
211 +DISTUTILS_OPTIONAL=1
212 +inherit autotools bash-completion-r1 perl-module distutils-r1 flag-o-matic java-pkg-opt-2 toolchain-funcs
213 +
214 +DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
215 +HOMEPAGE="https://gdal.org/"
216 +SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
217 +
218 +SLOT="0/2.3"
219 +LICENSE="BSD Info-ZIP MIT"
220 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
221 +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"
222 +
223 +REQUIRED_USE="
224 + mdb? ( java )
225 + python? ( ${PYTHON_REQUIRED_USE} )
226 + spatialite? ( sqlite )
227 +"
228 +
229 +BDEPEND="
230 + virtual/pkgconfig
231 + doc? ( app-doc/doxygen )
232 + java? (
233 + dev-java/ant-core
234 + dev-lang/swig:0
235 + >=virtual/jdk-1.7:*
236 + )
237 + perl? ( dev-lang/swig:0 )
238 + python? (
239 + dev-lang/swig:0
240 + dev-python/setuptools[${PYTHON_USEDEP}]
241 + )"
242 +
243 +DEPEND="
244 + dev-libs/expat
245 + dev-libs/json-c:=
246 + dev-libs/libpcre
247 + dev-libs/libxml2:=
248 + media-libs/tiff:0=
249 + >=sci-libs/libgeotiff-1.5.1-r1:=
250 + >=sci-libs/proj-6.0.0
251 + sys-libs/zlib:=[minizip(+)]
252 + armadillo? ( sci-libs/armadillo:=[lapack] )
253 + curl? ( net-misc/curl )
254 + fits? ( sci-libs/cfitsio:= )
255 + geos? ( >=sci-libs/geos-3.8.0 )
256 + gif? ( media-libs/giflib:= )
257 + gml? ( >=dev-libs/xerces-c-3.1 )
258 + hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
259 + jpeg? ( virtual/jpeg:0= )
260 + jpeg2k? ( media-libs/openjpeg:2= )
261 + lzma? ( || (
262 + app-arch/xz-utils
263 + app-arch/lzma
264 + ) )
265 + mdb? ( dev-java/jackcess:1 )
266 + mysql? ( virtual/mysql )
267 + netcdf? ( sci-libs/netcdf:= )
268 + odbc? ( dev-db/unixODBC )
269 + ogdi? ( sci-libs/ogdi )
270 + opencl? ( virtual/opencl )
271 + oracle? ( dev-db/oracle-instantclient:= )
272 + pdf? ( app-text/poppler:= )
273 + perl? ( dev-lang/perl:= )
274 + png? ( media-libs/libpng:0= )
275 + postgres? ( >=dev-db/postgresql-8.4:= )
276 + python? (
277 + ${PYTHON_DEPS}
278 + dev-python/numpy[${PYTHON_USEDEP}]
279 + )
280 + spatialite? ( dev-db/spatialite )
281 + sqlite? ( dev-db/sqlite:3 )
282 + webp? ( media-libs/libwebp:= )
283 + xls? ( dev-libs/freexl )
284 + zstd? ( app-arch/zstd:= )"
285 +
286 +RDEPEND="${DEPEND}
287 + java? ( >=virtual/jre-1.7:* )"
288 +
289 +PATCHES=(
290 + "${FILESDIR}/${PN}-2.2.3-soname.patch"
291 + "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
292 + "${FILESDIR}"/${PN}-2.4.1-poppler-0.83-{1,2}.patch # bug 703790
293 + "${FILESDIR}/${PN}-3.0.2-complete.patch"
294 + "${FILESDIR}/${PN}-3.0.2-datadir.patch"
295 +)
296 +
297 +src_prepare() {
298 + default
299 +
300 + sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
301 + -i configure.ac || die
302 +
303 + sed -e 's:^ar:$(AR):g' \
304 + -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
305 +
306 + # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
307 + sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
308 + -i swig/python/GNUmakefile || die "sed python makefile failed"
309 +
310 + eautoreconf
311 +}
312 +
313 +src_configure() {
314 + # bug 619148
315 + append-cxxflags -std=c++14
316 +
317 + local myconf=(
318 + # charls - not packaged in Gentoo ebuild repository
319 + # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
320 + # bsb - legal issues
321 + # ingres - same story as oracle oci
322 + # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
323 + # podofo - we use poppler instead they are exclusive for each other
324 + # tiff is a hard dep
325 + --includedir="${EPREFIX}"/usr/include/${PN}
326 + --disable-lto
327 + --disable-static
328 + --disable-driver-bsb
329 + --disable-driver-mrf
330 + --disable-pdf-plugin
331 + --enable-shared
332 + --enable-driver-grib
333 + --with-bash-completion="$(get_bashcompdir)"
334 + --with-cryptopp=no
335 + --with-expat
336 + --with-geotiff
337 + --with-gnm
338 + --with-hide-internal-symbols
339 + --with-libjson-c="${EPREFIX}"/usr/
340 + --with-libtiff
341 + --with-libtool
342 + --with-libz="${EPREFIX}"/usr/
343 + --without-charls
344 + --without-dods-root
345 + --without-ecw
346 + --without-epsilon
347 + --without-fgdb
348 + --without-fme
349 + --without-gta
350 + --without-grass
351 + --without-hdf4
352 + --without-idb
353 + --without-ingres
354 + --without-jasper
355 + --without-jp2lura
356 + --without-jp2mrsid
357 + --without-kakadu
358 + --without-kea
359 + --without-libkml
360 + --without-mongocxx
361 + --without-mrsid
362 + --without-mrsid_lidar
363 + --without-msg
364 + --without-rasdaman
365 + --without-rasterlite2
366 + --without-pcraster
367 + --without-pdfium
368 + --without-perl
369 + --without-podofo
370 + --without-python
371 + --without-qhull
372 + --without-sde
373 + --without-sfcgal
374 + --without-sosi
375 + --without-teigha
376 + $(use_enable debug)
377 + $(use_with armadillo)
378 + $(use_with aux-xml pam)
379 + $(use_with curl)
380 + $(use_with fits cfitsio)
381 + $(use_with geos)
382 + $(use_with gif)
383 + $(use_with gml xerces)
384 + $(use_with hdf5)
385 + $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
386 + $(use_with jpeg)
387 + $(use_with jpeg2k openjpeg)
388 + $(use_with lzma liblzma)
389 + $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
390 + $(use_with netcdf)
391 + $(use_with oracle oci)
392 + $(use_with odbc)
393 + $(use_with ogdi ogdi "${EPREFIX}"/usr)
394 + $(use_with opencl)
395 + $(use_with pdf poppler)
396 + $(use_with png)
397 + $(use_with postgres pg)
398 + $(use_with spatialite)
399 + $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
400 + $(use_with threads)
401 + $(use_with webp)
402 + $(use_with xls freexl)
403 + $(use_with zstd)
404 + )
405 +
406 + tc-export AR RANLIB
407 +
408 + if use java; then
409 + myconf+=(
410 + --with-java=$(java-config --jdk-home 2>/dev/null)
411 + --with-jvm-lib=dlopen
412 + $(use_with mdb)
413 + )
414 + else
415 + myconf+=( --without-java --without-mdb )
416 + fi
417 +
418 + if use sqlite; then
419 + append-libs -lsqlite3
420 + fi
421 +
422 + # bug #632660
423 + if use ogdi; then
424 + tc-export PKG_CONFIG
425 + append-cflags $(${PKG_CONFIG} --cflags libtirpc)
426 + append-cxxflags $(${PKG_CONFIG} --cflags libtirpc)
427 + fi
428 +
429 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
430 +
431 + # mysql-config puts this in (and boy is it a PITA to get it out)
432 + if use mysql; then
433 + sed -e "s: -rdynamic : :" \
434 + -i GDALmake.opt || die "sed LIBS failed"
435 + fi
436 +}
437 +
438 +src_compile() {
439 + if use perl; then
440 + rm "${S}"/swig/perl/*_wrap.cpp || die
441 + emake -C "${S}"/swig/perl generate
442 + fi
443 +
444 + # gdal-config needed before generating Python bindings
445 + default
446 +
447 + if use java; then
448 + pushd "${S}"/swig/java > /dev/null || die
449 + emake
450 + popd > /dev/null || die
451 + fi
452 +
453 + if use perl; then
454 + pushd "${S}"/swig/perl > /dev/null || die
455 + perl-module_src_configure
456 + perl-module_src_compile
457 + popd > /dev/null || die
458 + fi
459 +
460 + if use python; then
461 + rm -f "${S}"/swig/python/*_wrap.cpp || die
462 + emake -C "${S}"/swig/python generate
463 + pushd "${S}"/swig/python > /dev/null || die
464 + distutils-r1_src_compile
465 + popd > /dev/null || die
466 + fi
467 +
468 + use doc && emake docs
469 +}
470 +
471 +src_install() {
472 + local DOCS=( NEWS )
473 + use doc && HTML_DOCS=( html/. )
474 +
475 + default
476 +
477 + use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
478 +
479 + if use perl; then
480 + pushd "${S}"/swig/perl > /dev/null || die
481 + myinst=( DESTDIR="${D}" )
482 + perl-module_src_install
483 + popd > /dev/null || die
484 + perl_delete_localpod
485 + fi
486 +
487 + if use python; then
488 + # Don't clash with gdal's docs
489 + unset DOCS HTML_DOCS
490 +
491 + pushd "${S}"/swig/python > /dev/null || die
492 + distutils-r1_src_install
493 + popd > /dev/null || die
494 +
495 + newdoc swig/python/README.rst README-python.rst
496 +
497 + insinto /usr/share/${PN}/samples
498 + doins -r swig/python/samples/.
499 + fi
500 +
501 + doman "${S}"/man/man*/*
502 + find "${D}" -name '*.la' -type f -delete || die
503 +}
504 +
505 +pkg_postinst() {
506 + elog "Check available image and data formats after building with"
507 + elog "gdalinfo and ogrinfo (using the --formats switch)."
508 +}