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, 26 Feb 2020 17:23:14
Message-Id: 1582737761.d7809315e82d5fa6d1b2102f749f157af18998a2.asturm@gentoo
1 commit: d7809315e82d5fa6d1b2102f749f157af18998a2
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 26 17:22:12 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 17:22:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7809315
7
8 sci-libs/gdal: Drop 3.0.4 (r0)
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-libs/gdal/gdal-3.0.4.ebuild | 303 ----------------------------------------
14 1 file changed, 303 deletions(-)
15
16 diff --git a/sci-libs/gdal/gdal-3.0.4.ebuild b/sci-libs/gdal/gdal-3.0.4.ebuild
17 deleted file mode 100644
18 index eea42e45743..00000000000
19 --- a/sci-libs/gdal/gdal-3.0.4.ebuild
20 +++ /dev/null
21 @@ -1,303 +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 bash-completion-r1 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 - virtual/pkgconfig
49 - doc? ( app-doc/doxygen )
50 - java? (
51 - dev-java/ant-core
52 - dev-lang/swig:0
53 - >=virtual/jdk-1.7:*
54 - )
55 - perl? ( dev-lang/swig:0 )
56 - python? (
57 - dev-lang/swig:0
58 - dev-python/setuptools[${PYTHON_USEDEP}]
59 - )
60 -"
61 -DEPEND="
62 - dev-libs/expat
63 - dev-libs/json-c:=
64 - dev-libs/libpcre
65 - dev-libs/libxml2:2
66 - media-libs/tiff
67 - >=sci-libs/libgeotiff-1.5.1-r1:=
68 - >=sci-libs/proj-6.0.0:=
69 - sys-libs/zlib[minizip(+)]
70 - armadillo? ( sci-libs/armadillo:=[lapack] )
71 - curl? ( net-misc/curl )
72 - fits? ( sci-libs/cfitsio:= )
73 - geos? ( >=sci-libs/geos-3.8.0 )
74 - gif? ( media-libs/giflib:= )
75 - gml? ( >=dev-libs/xerces-c-3.1 )
76 - hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] )
77 - jpeg? ( virtual/jpeg:0= )
78 - jpeg2k? ( media-libs/openjpeg:2= )
79 - lzma? ( || (
80 - app-arch/xz-utils
81 - app-arch/lzma
82 - ) )
83 - mdb? ( dev-java/jackcess:1 )
84 - mysql? ( virtual/mysql )
85 - netcdf? ( sci-libs/netcdf:= )
86 - odbc? ( dev-db/unixODBC )
87 - ogdi? ( sci-libs/ogdi )
88 - opencl? ( virtual/opencl )
89 - oracle? ( dev-db/oracle-instantclient:= )
90 - pdf? ( app-text/poppler:= )
91 - perl? ( dev-lang/perl:= )
92 - png? ( media-libs/libpng:0= )
93 - postgres? ( >=dev-db/postgresql-8.4:= )
94 - python? (
95 - ${PYTHON_DEPS}
96 - dev-python/numpy[${PYTHON_USEDEP}]
97 - )
98 - spatialite? ( dev-db/spatialite )
99 - sqlite? ( dev-db/sqlite:3 )
100 - webp? ( media-libs/libwebp:= )
101 - xls? ( dev-libs/freexl )
102 - zstd? ( app-arch/zstd:= )
103 -"
104 -RDEPEND="${DEPEND}
105 - java? ( >=virtual/jre-1.7:* )
106 -"
107 -
108 -PATCHES=(
109 - "${FILESDIR}/${PN}-2.2.3-soname.patch"
110 - "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840
111 - "${FILESDIR}/${PN}-3.0.2-complete.patch"
112 - "${FILESDIR}/${PN}-3.0.2-datadir.patch"
113 -)
114 -
115 -src_prepare() {
116 - default
117 -
118 - sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \
119 - -i configure.ac || die
120 -
121 - sed -e 's:^ar:$(AR):g' \
122 - -i ogr/ogrsf_frmts/sdts/install-libs.sh || die
123 -
124 - # SWIG: Use of the include path to find the input file is deprecated and will not work with ccache.
125 - sed -e "s: gdal_array.i: ../include/gdal_array.i:" \
126 - -i swig/python/GNUmakefile || die "sed python makefile failed"
127 -
128 - eautoreconf
129 -}
130 -
131 -src_configure() {
132 - local myconf=(
133 - # charls - not packaged in Gentoo ebuild repository
134 - # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore
135 - # bsb - legal issues
136 - # ingres - same story as oracle oci
137 - # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead
138 - # podofo - we use poppler instead they are exclusive for each other
139 - # tiff is a hard dep
140 - --includedir="${EPREFIX}"/usr/include/${PN}
141 - --disable-lto
142 - --disable-static
143 - --disable-driver-bsb
144 - --disable-driver-mrf
145 - --disable-pdf-plugin
146 - --enable-shared
147 - --enable-driver-grib
148 - --with-bash-completion="$(get_bashcompdir)"
149 - --with-cpp14
150 - --with-cryptopp=no
151 - --with-expat
152 - --with-geotiff
153 - --with-gnm
154 - --with-hide-internal-symbols
155 - --with-libjson-c="${EPREFIX}"/usr/
156 - --with-libtiff
157 - --with-libtool
158 - --with-libz="${EPREFIX}"/usr/
159 - --without-charls
160 - --without-dods-root
161 - --without-ecw
162 - --without-epsilon
163 - --without-fgdb
164 - --without-fme
165 - --without-gta
166 - --without-grass
167 - --without-hdf4
168 - --without-idb
169 - --without-ingres
170 - --without-jasper
171 - --without-jp2lura
172 - --without-jp2mrsid
173 - --without-kakadu
174 - --without-kea
175 - --without-libkml
176 - --without-mongocxx
177 - --without-mrsid
178 - --without-mrsid_lidar
179 - --without-msg
180 - --without-rasdaman
181 - --without-rasterlite2
182 - --without-pcraster
183 - --without-pdfium
184 - --without-perl
185 - --without-podofo
186 - --without-python
187 - --without-qhull
188 - --without-sde
189 - --without-sfcgal
190 - --without-sosi
191 - --without-teigha
192 - $(use_enable debug)
193 - $(use_with armadillo)
194 - $(use_with aux-xml pam)
195 - $(use_with curl)
196 - $(use_with fits cfitsio)
197 - $(use_with geos)
198 - $(use_with gif)
199 - $(use_with gml xerces)
200 - $(use_with hdf5)
201 - $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library released developer by gdal
202 - $(use_with jpeg)
203 - $(use_with jpeg2k openjpeg)
204 - $(use_with lzma liblzma)
205 - $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config)
206 - $(use_with netcdf)
207 - $(use_with oracle oci)
208 - $(use_with odbc)
209 - $(use_with ogdi ogdi "${EPREFIX}"/usr)
210 - $(use_with opencl)
211 - $(use_with pdf poppler)
212 - $(use_with png)
213 - $(use_with postgres pg)
214 - $(use_with spatialite)
215 - $(use_with sqlite sqlite3 "${EPREFIX}"/usr)
216 - $(use_with threads)
217 - $(use_with webp)
218 - $(use_with xls freexl)
219 - $(use_with zstd)
220 - )
221 -
222 - tc-export AR RANLIB
223 -
224 - if use java; then
225 - myconf+=(
226 - --with-java=$(java-config --jdk-home 2>/dev/null)
227 - --with-jvm-lib=dlopen
228 - $(use_with mdb)
229 - )
230 - else
231 - myconf+=( --without-java --without-mdb )
232 - fi
233 -
234 - if use sqlite; then
235 - append-libs -lsqlite3
236 - fi
237 -
238 - # bug #632660
239 - if use ogdi; then
240 - tc-export PKG_CONFIG
241 - append-cflags $(${PKG_CONFIG} --cflags libtirpc)
242 - append-cxxflags $(${PKG_CONFIG} --cflags libtirpc)
243 - fi
244 -
245 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
246 -
247 - # mysql-config puts this in (and boy is it a PITA to get it out)
248 - if use mysql; then
249 - sed -e "s: -rdynamic : :" \
250 - -i GDALmake.opt || die "sed LIBS failed"
251 - fi
252 -}
253 -
254 -src_compile() {
255 - if use perl; then
256 - rm "${S}"/swig/perl/*_wrap.cpp || die
257 - emake -C "${S}"/swig/perl generate
258 - fi
259 -
260 - # gdal-config needed before generating Python bindings
261 - default
262 -
263 - if use java; then
264 - pushd "${S}"/swig/java > /dev/null || die
265 - emake
266 - popd > /dev/null || die
267 - fi
268 -
269 - if use perl; then
270 - pushd "${S}"/swig/perl > /dev/null || die
271 - perl-module_src_configure
272 - perl-module_src_compile
273 - popd > /dev/null || die
274 - fi
275 -
276 - if use python; then
277 - rm -f "${S}"/swig/python/*_wrap.cpp || die
278 - emake -C "${S}"/swig/python generate
279 - pushd "${S}"/swig/python > /dev/null || die
280 - distutils-r1_src_compile
281 - popd > /dev/null || die
282 - fi
283 -
284 - use doc && emake docs
285 -}
286 -
287 -src_install() {
288 - local DOCS=( NEWS )
289 - use doc && local HTML_DOCS=( html/. )
290 -
291 - default
292 -
293 - use java && java-pkg_dojar "${S}"/swig/java/gdal.jar
294 -
295 - if use perl; then
296 - pushd "${S}"/swig/perl > /dev/null || die
297 - myinst=( DESTDIR="${D}" )
298 - perl-module_src_install
299 - popd > /dev/null || die
300 - perl_delete_localpod
301 - fi
302 -
303 - if use python; then
304 - # Don't clash with gdal's docs
305 - unset DOCS HTML_DOCS
306 -
307 - pushd "${S}"/swig/python > /dev/null || die
308 - distutils-r1_src_install
309 - popd > /dev/null || die
310 -
311 - newdoc swig/python/README.rst README-python.rst
312 -
313 - insinto /usr/share/${PN}/samples
314 - doins -r swig/python/samples/.
315 - fi
316 -
317 - doman "${S}"/man/man*/*
318 - find "${D}" -name '*.la' -type f -delete || die
319 -}
320 -
321 -pkg_postinst() {
322 - elog "Check available image and data formats after building with"
323 - elog "gdalinfo and ogrinfo (using the --formats switch)."
324 -}