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