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/
Date: Sat, 28 Dec 2019 17:42:42
Message-Id: 1577554948.f9f88ecb6c13414e93a52075f89b78e91f451080.asturm@gentoo
1 commit: f9f88ecb6c13414e93a52075f89b78e91f451080
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 16:23:34 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 17:42:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9f88ecb
7
8 sci-libs/gdal: Drop 2.4.1 (r0)
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-libs/gdal/gdal-2.4.1.ebuild | 320 ----------------------------------------
14 1 file changed, 320 deletions(-)
15
16 diff --git a/sci-libs/gdal/gdal-2.4.1.ebuild b/sci-libs/gdal/gdal-2.4.1.ebuild
17 deleted file mode 100644
18 index 7d215149c2c..00000000000
19 --- a/sci-libs/gdal/gdal-2.4.1.ebuild
20 +++ /dev/null
21 @@ -1,320 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -GENTOO_DEPEND_ON_PERL="no"
28 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
29 -DISTUTILS_OPTIONAL=1
30 -
31 -inherit autotools perl-module distutils-r1 toolchain-funcs flag-o-matic java-pkg-opt-2
32 -
33 -DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)"
34 -HOMEPAGE="https://gdal.org/"
35 -SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz"
36 -
37 -SLOT="0/2.3"
38 -LICENSE="BSD Info-ZIP MIT"
39 -KEYWORDS="amd64 ~arm arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
40 -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"
41 -
42 -COMMON_DEPEND="
43 - dev-libs/expat
44 - dev-libs/json-c:=
45 - dev-libs/libpcre
46 - dev-libs/libxml2:=
47 - media-libs/tiff:0=
48 - sci-libs/libgeotiff:=
49 - sys-libs/zlib:=[minizip(+)]
50 - armadillo? ( sci-libs/armadillo:=[lapack] )
51 - curl? ( net-misc/curl )
52 - fits? ( sci-libs/cfitsio:= )
53 - geos? ( >=sci-libs/geos-2.2.1 )
54 - gif? ( media-libs/giflib:= )
55 - gml? ( >=dev-libs/xerces-c-3.1 )
56 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
57 - jpeg? ( virtual/jpeg:0= )
58 - jpeg2k? ( media-libs/openjpeg:2= )
59 - lzma? ( || (
60 - app-arch/xz-utils
61 - app-arch/lzma
62 - ) )
63 - mdb? ( dev-java/jackcess:1 )
64 - mysql? ( virtual/mysql )
65 - netcdf? ( sci-libs/netcdf:= )
66 - odbc? ( dev-db/unixODBC )
67 - ogdi? ( sci-libs/ogdi )
68 - opencl? ( virtual/opencl )
69 - oracle? ( dev-db/oracle-instantclient:= )
70 - pdf? ( app-text/poppler:= )
71 - perl? ( dev-lang/perl:= )
72 - png? ( media-libs/libpng:0= )
73 - postgres? ( >=dev-db/postgresql-8.4:= )
74 - python? (
75 - ${PYTHON_DEPS}
76 - dev-python/numpy[${PYTHON_USEDEP}]
77 - )
78 - spatialite? ( dev-db/spatialite )
79 - sqlite? ( dev-db/sqlite:3 )
80 - webp? ( media-libs/libwebp:= )
81 - xls? ( dev-libs/freexl )
82 - zstd? ( app-arch/zstd:= )"
83 -
84 -RDEPEND="${COMMON_DEPEND}
85 - java? ( >=virtual/jre-1.7:* )"
86 -
87 -DEPEND="${COMMON_DEPEND}
88 - doc? ( app-doc/doxygen )
89 - java? ( >=virtual/jdk-1.7:* )
90 - perl? ( dev-lang/swig:0 )
91 - python? (
92 - dev-lang/swig:0
93 - dev-python/setuptools[${PYTHON_USEDEP}]
94 - )"
95 -
96 -REQUIRED_USE="
97 - mdb? ( java )
98 - python? ( ${PYTHON_REQUIRED_USE} )
99 - spatialite? ( sqlite )
100 -"
101 -
102 -PATCHES=(
103 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
104 - "${FILESDIR}/${PN}-2.2.3-bashcomp-path.patch" # bug 641866
105 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
106 - "${FILESDIR}/${P}-poppler-0.75.patch"
107 - "${FILESDIR}/${P}-poppler-0.76.patch"
108 -)
109 -
110 -src_prepare() {
111 - # fix datadir and docdir placement
112 - sed -e "s:@datadir@:@datadir@/gdal:" \
113 - -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \
114 - -i "${S}"/GDALmake.opt.in || die
115 -
116 - # the second sed expression should fix bug 371075
117 - sed -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \
118 - -e "s:--prefix=\$(DESTDIR):--prefix=:" \
119 - -i "${S}"/swig/python/GNUmakefile || die
120 -
121 - # Fix spatialite/sqlite include issue
122 - sed -e 's:spatialite/sqlite3.h:sqlite3.h:g' \
123 - -i ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die
124 -
125 - # Fix freexl configure check
126 - sed -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \
127 - -i configure.ac || die
128 -
129 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
130 - -i configure.ac || die
131 -
132 - sed -e 's:^ar:$(AR):g' \
133 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
134 -
135 - # updated for newer swig (must specify the path to input files)
136 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
137 - -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \
138 - -i swig/python/GNUmakefile || die "sed python makefile failed"
139 - sed -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \
140 - -i swig/python/setup.cfg || die "sed python setup.cfg failed"
141 -
142 - default
143 -
144 - eautoreconf
145 -}
146 -
147 -src_configure() {
148 - # bug 619148
149 - append-cxxflags -std=c++14
150 -
151 - local myconf=(
152 - # charls - not packaged in Gentoo ebuild repository
153 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
154 - # bsb - legal issues
155 - # ingres - same story as oracle oci
156 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
157 - # podofo - we use poppler instead they are exclusive for each other
158 - # tiff is a hard dep
159 - --includedir="${EPREFIX}/usr/include/${PN}"
160 - --disable-pdf-plugin
161 - --disable-static
162 - --enable-shared
163 - --with-expat
164 - --with-cryptopp=no
165 - --with-geotiff
166 - --with-grib
167 - --with-hide-internal-symbols
168 - --with-libjson-c="${EPREFIX}/usr/"
169 - --with-libtiff
170 - --with-libtool
171 - --with-libz="${EPREFIX}/usr/"
172 - --with-gnm
173 - --without-bsb
174 - --without-charls
175 - --without-dods-root
176 - --without-ecw
177 - --without-epsilon
178 - --without-fgdb
179 - --without-fme
180 - --without-gta
181 - --without-grass
182 - --without-hdf4
183 - --without-idb
184 - --without-ingres
185 - --without-jasper
186 - --without-jp2lura
187 - --without-jp2mrsid
188 - --without-kakadu
189 - --without-kea
190 - --without-libkml
191 - --without-mongocxx
192 - --without-mrsid
193 - --without-mrsid_lidar
194 - --without-msg
195 - --without-mrf
196 - --without-rasdaman
197 - --without-rasterlite2
198 - --without-pcraster
199 - --without-pdfium
200 - --without-podofo
201 - --without-qhull
202 - --without-sde
203 - --without-sfcgal
204 - --without-sosi
205 - --without-teigha
206 - --disable-lto
207 - $(use_enable debug)
208 - $(use_with armadillo)
209 - $(use_with aux_xml pam)
210 - $(use_with curl)
211 - $(use_with fits cfitsio)
212 - $(use_with geos)
213 - $(use_with gif)
214 - $(use_with gml xerces)
215 - $(use_with hdf5)
216 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library yreleased developer by gdal
217 - $(use_with jpeg)
218 - $(use_with jpeg2k openjpeg)
219 - $(use_with lzma liblzma)
220 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
221 - $(use_with netcdf)
222 - $(use_with oracle oci)
223 - $(use_with odbc)
224 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
225 - $(use_with opencl)
226 - $(use_with pdf poppler)
227 - $(use_with perl)
228 - $(use_with png)
229 - $(use_with postgres pg)
230 - $(use_with python)
231 - $(use_with spatialite)
232 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
233 - $(use_with threads)
234 - $(use_with webp)
235 - $(use_with xls freexl)
236 - $(use_with zstd)
237 - )
238 -
239 - tc-export AR RANLIB
240 -
241 - if use java; then
242 - myconf+=(
243 - --with-java=$(java-config --jdk-home 2>/dev/null)
244 - --with-jvm-lib=dlopen
245 - $(use_with mdb)
246 - )
247 - else
248 - myconf+=( --without-java --without-mdb )
249 - fi
250 -
251 - if use sqlite; then
252 - append-libs -lsqlite3
253 - fi
254 -
255 - # bug #632660
256 - if use ogdi; then
257 - tc-export PKG_CONFIG
258 - append-cflags $(${PKG_CONFIG} --cflags libtirpc)
259 - append-cxxflags $(${PKG_CONFIG} --cflags libtirpc)
260 - fi
261 -
262 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
263 -
264 - # mysql-config puts this in (and boy is it a PITA to get it out)
265 - if use mysql; then
266 - sed -e "s: -rdynamic : :" \
267 - -i GDALmake.opt || die "sed LIBS failed"
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 - # gdal-config needed before generating Python bindings
278 - default
279 -
280 - if use perl ; then
281 - pushd "${S}"/swig/perl > /dev/null || die
282 - perl-module_src_configure
283 - perl-module_src_compile
284 - popd > /dev/null || die
285 - fi
286 -
287 - if use python; then
288 - rm -f "${S}"/swig/python/*_wrap.cpp || die
289 - emake -C "${S}"/swig/python generate
290 - pushd "${S}"/swig/python > /dev/null || die
291 - distutils-r1_src_compile
292 - popd > /dev/null || die
293 - fi
294 -
295 - use doc && emake docs
296 -}
297 -
298 -src_install() {
299 - if use perl ; then
300 - pushd "${S}"/swig/perl > /dev/null || die
301 - myinst=( DESTDIR="${D}" )
302 - perl-module_src_install
303 - popd > /dev/null || die
304 - sed -e 's:BINDINGS = \(.*\) perl:BINDINGS = \1:g' \
305 - -i GDALmake.opt || die
306 - fi
307 -
308 - use perl && perl_delete_localpod
309 -
310 - local DOCS=( Doxyfile HOWTO-RELEASE NEWS )
311 - use doc && HTML_DOCS=( html/. )
312 -
313 - default
314 -
315 - python_install() {
316 - distutils-r1_python_install
317 - python_doscript scripts/*.py
318 - }
319 -
320 - if use python; then
321 - # Don't clash with gdal's docs
322 - unset DOCS HTML_DOCS
323 -
324 - pushd "${S}"/swig/python > /dev/null || die
325 - distutils-r1_src_install
326 - popd > /dev/null || die
327 -
328 - newdoc swig/python/README.txt README-python.txt
329 -
330 - insinto /usr/share/${PN}/samples
331 - doins -r swig/python/samples/
332 - fi
333 -
334 - doman "${S}"/man/man*/*
335 - find "${ED}" -name '*.la' -delete || die
336 -}
337 -
338 -pkg_postinst() {
339 - elog "Check available image and data formats after building with"
340 - elog "gdalinfo and ogrinfo (using the --formats switch)."
341 -}