1 |
commit: 4cab022774dfa69ad00f658bdbb3b16acb8e603d |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 29 10:03:27 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 29 10:03:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cab0227 |
7 |
|
8 |
sci-libs/gdal: drop 3.6.1 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
sci-libs/gdal/gdal-3.6.1.ebuild | 242 ---------------------------------------- |
13 |
1 file changed, 242 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/gdal/gdal-3.6.1.ebuild b/sci-libs/gdal/gdal-3.6.1.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2d935c2e7b32..000000000000 |
18 |
--- a/sci-libs/gdal/gdal-3.6.1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,242 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..11} ) |
27 |
-inherit cmake java-pkg-opt-2 python-single-r1 |
28 |
- |
29 |
-DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
30 |
-HOMEPAGE="https://gdal.org/" |
31 |
-SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.xz" |
32 |
-SRC_URI+=" test? ( https://download.osgeo.org/${PN}/${PV}/${PN}autotest-${PV}.tar.gz )" |
33 |
- |
34 |
-LICENSE="BSD Info-ZIP MIT" |
35 |
-SLOT="0/32" # subslot is libgdal.so.<SONAME> |
36 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
37 |
-IUSE="armadillo +curl cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_ssse3 doc fits geos gif gml hdf5 heif java jpeg jpeg2k lzma mysql netcdf odbc ogdi opencl oracle pdf png postgres python spatialite sqlite test webp xls zstd" |
38 |
-# Tests fail to build in 3.5.0, let's not worry too much yet given |
39 |
-# we're only just porting to CMake. Revisit later. |
40 |
-RESTRICT="!test? ( test )" |
41 |
- |
42 |
-REQUIRED_USE=" |
43 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
44 |
- spatialite? ( sqlite ) |
45 |
-" |
46 |
- |
47 |
-BDEPEND="virtual/pkgconfig |
48 |
- doc? ( app-doc/doxygen ) |
49 |
- java? ( |
50 |
- dev-java/ant-core |
51 |
- dev-lang/swig:0 |
52 |
- >=virtual/jdk-1.8:* |
53 |
- ) |
54 |
- python? ( |
55 |
- dev-lang/swig:0 |
56 |
- $(python_gen_cond_dep ' |
57 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
- ') |
59 |
- )" |
60 |
-DEPEND="dev-libs/expat |
61 |
- dev-libs/json-c:= |
62 |
- dev-libs/libpcre2 |
63 |
- dev-libs/libxml2:2 |
64 |
- dev-libs/openssl:= |
65 |
- media-libs/tiff |
66 |
- >=sci-libs/libgeotiff-1.5.1-r1:= |
67 |
- >=sci-libs/proj-6.0.0:= |
68 |
- sys-libs/zlib[minizip(+)] |
69 |
- armadillo? ( sci-libs/armadillo:=[lapack] ) |
70 |
- curl? ( net-misc/curl ) |
71 |
- fits? ( sci-libs/cfitsio:= ) |
72 |
- geos? ( >=sci-libs/geos-3.8.0 ) |
73 |
- gif? ( media-libs/giflib:= ) |
74 |
- gml? ( >=dev-libs/xerces-c-3.1 ) |
75 |
- heif? ( media-libs/libheif:= ) |
76 |
- hdf5? ( >=sci-libs/hdf5-1.6.4:=[cxx,szip] ) |
77 |
- jpeg? ( media-libs/libjpeg-turbo:= ) |
78 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
79 |
- lzma? ( || ( |
80 |
- app-arch/xz-utils |
81 |
- app-arch/lzma |
82 |
- ) ) |
83 |
- mysql? ( virtual/mysql ) |
84 |
- netcdf? ( sci-libs/netcdf:= ) |
85 |
- odbc? ( dev-db/unixODBC ) |
86 |
- ogdi? ( >=sci-libs/ogdi-4.1.0-r1 ) |
87 |
- opencl? ( virtual/opencl ) |
88 |
- oracle? ( dev-db/oracle-instantclient:= ) |
89 |
- pdf? ( app-text/poppler:= ) |
90 |
- png? ( media-libs/libpng:= ) |
91 |
- postgres? ( >=dev-db/postgresql-8.4:= ) |
92 |
- python? ( |
93 |
- ${PYTHON_DEPS} |
94 |
- $(python_gen_cond_dep ' |
95 |
- dev-python/numpy[${PYTHON_USEDEP}] |
96 |
- ') |
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 |
-RDEPEND="${DEPEND} |
104 |
- java? ( >=virtual/jre-1.8:* )" |
105 |
- |
106 |
-pkg_setup() { |
107 |
- use python && python-single-r1_pkg_setup |
108 |
- use java && java-pkg-opt-2_pkg_setup |
109 |
-} |
110 |
- |
111 |
-src_prepare() { |
112 |
- cmake_src_prepare |
113 |
- |
114 |
- if use test ; then |
115 |
- mv "${WORKDIR}"/gdalautotest-${PV} "${S}"/autotest || die |
116 |
- fi |
117 |
-} |
118 |
- |
119 |
-src_configure() { |
120 |
- local mycmakeargs=( |
121 |
- -DENABLE_IPO=OFF |
122 |
- -DGDAL_USE_EXTERNAL_LIBS=ON |
123 |
- -DGDAL_USE_INTERNAL_LIBS=OFF |
124 |
- |
125 |
- # bug #844874 and bug #845150 |
126 |
- -DCMAKE_INSTALL_INCLUDEDIR="include/gdal" |
127 |
- |
128 |
- # Options here are generally off because of one of: |
129 |
- # - Not yet packaged dependencies |
130 |
- # |
131 |
- # - Off for autotools build and didn't want more churn by |
132 |
- # enabling during port to CMake. Feel free to request them |
133 |
- # being turned on if useful for you. |
134 |
- -DGDAL_USE_ARMADILLO=$(usex armadillo) |
135 |
- -DGDAL_USE_ARROW=OFF |
136 |
- -DGDAL_USE_BLOSC=OFF |
137 |
- -DGDAL_USE_BRUNSLI=OFF |
138 |
- -DGDAL_USE_CRNLIB=OFF |
139 |
- -DGDAL_USE_CFITSIO=$(usex fits) |
140 |
- -DGDAL_USE_CURL=$(usex curl) |
141 |
- -DGDAL_USE_CRYPTOPP=OFF |
142 |
- -DGDAL_USE_DEFLATE=OFF |
143 |
- -DGDAL_USE_ECW=OFF |
144 |
- -DGDAL_USE_EXPAT=ON |
145 |
- -DGDAL_USE_FILEGDB=OFF |
146 |
- -DGDAL_USE_FREEXL=$(usex xls) |
147 |
- -DGDAL_USE_FYBA=OFF |
148 |
- -DGDAL_USE_GEOTIFF=ON |
149 |
- -DGDAL_USE_GEOS=$(usex geos) |
150 |
- -DGDAL_USE_GIF=$(usex gif) |
151 |
- -DGDAL_USE_GTA=OFF |
152 |
- -DGDAL_USE_HEIF=$(usex heif) |
153 |
- -DGDAL_USE_HDF4=OFF |
154 |
- -DGDAL_USE_HDF5=$(usex hdf5) |
155 |
- -DGDAL_USE_HDFS=OFF |
156 |
- -DGDAL_USE_ICONV=ON # TODO dep |
157 |
- -DGDAL_USE_IDB=OFF |
158 |
- -DGDAL_USE_JPEG=$(usex jpeg) |
159 |
- |
160 |
- # https://gdal.org/build_hints.html#jpeg12 |
161 |
- # Independent of whether using system libjpeg |
162 |
- -DGDAL_USE_JPEG12_INTERNAL=ON |
163 |
- |
164 |
- -DGDAL_USE_JSONC=ON |
165 |
- -DGDAL_USE_JXL=OFF |
166 |
- -DGDAL_USE_KDU=OFF |
167 |
- -DGDAL_USE_KEA=OFF |
168 |
- -DGDAL_USE_LERC=OFF |
169 |
- -DGDAL_USE_LIBKML=OFF |
170 |
- -DGDAL_USE_LIBLZMA=$(usex lzma) |
171 |
- -DGDAL_USE_LIBXML2=ON |
172 |
- -DGDAL_USE_LURATECH=OFF |
173 |
- -DGDAL_USE_LZ4=OFF |
174 |
- -DGDAL_USE_MONGOCXX=OFF |
175 |
- -DGDAL_USE_MRSID=OFF |
176 |
- -DGDAL_USE_MSSQL_NCLI=OFF |
177 |
- -DGDAL_USE_MSSQL_ODBC=OFF |
178 |
- -DGDAL_USE_MYSQL=$(usex mysql) |
179 |
- -DGDAL_USE_NETCDF=$(usex netcdf) |
180 |
- -DGDAL_USE_ODBC=$(usex odbc) |
181 |
- -DGDAL_USE_ODBCCPP=OFF |
182 |
- -DGDAL_USE_OGDI=$(usex ogdi) |
183 |
- -DGDAL_USE_OPENCAD=OFF |
184 |
- -DGDAL_USE_OPENCL=$(usex opencl) |
185 |
- -DGDAL_USE_OPENEXR=OFF |
186 |
- -DGDAL_USE_OPENJPEG=$(usex jpeg2k) |
187 |
- -DGDAL_USE_OPENSSL=ON |
188 |
- -DGDAL_USE_ORACLE=$(usex oracle) |
189 |
- -DGDAL_USE_PARQUET=OFF |
190 |
- -DGDAL_USE_PCRE2=ON |
191 |
- -DGDAL_USE_PDFIUM=OFF |
192 |
- -DGDAL_USE_PNG=$(usex png) |
193 |
- -DGDAL_USE_POPPLER=$(usex pdf) |
194 |
- -DGDAL_USE_POSTGRESQL=$(usex postgres) |
195 |
- -DGDAL_USE_QHULL=OFF |
196 |
- -DGDAL_USE_RASTERLITE2=OFF |
197 |
- -DGDAL_USE_RDB=OFF |
198 |
- -DGDAL_USE_SPATIALITE=$(usex spatialite) |
199 |
- -DGDAL_USE_SQLITE3=$(usex sqlite) |
200 |
- -DGDAL_USE_SFCGAL=OFF |
201 |
- -DGDAL_USE_TEIGHA=OFF |
202 |
- -DGDAL_USE_TIFF=ON |
203 |
- -DGDAL_USE_TILEDB=OFF |
204 |
- -DGDAL_USE_WEBP=$(usex webp) |
205 |
- -DGDAL_USE_XERCESC=$(usex gml) |
206 |
- -DGDAL_USE_ZLIB=ON |
207 |
- -DGDAL_USE_ZSTD=$(usex zstd) |
208 |
- |
209 |
- # Bindings |
210 |
- -DBUILD_PYTHON_BINDINGS=$(usex python) |
211 |
- -DBUILD_JAVA_BINDINGS=$(usex java) |
212 |
- # bug #845369 |
213 |
- -DBUILD_CSHARP_BINDINGS=OFF |
214 |
- |
215 |
- # Check work/gdal-3.5.0_build/CMakeCache.txt after configure |
216 |
- # and https://github.com/OSGeo/gdal/blob/master/cmake/helpers/CheckCompilerMachineOption.cmake#L71 |
217 |
- # Commented out: not (yet?) implemented upstream. |
218 |
- # Also, arm64 stuff is a TODO upstream, but not there (yet?) |
219 |
- -Dtest_avx=$(usex cpu_flags_x86_avx) |
220 |
- -Dtest_avx2=$(usex cpu_flags_x86_avx2) |
221 |
- -Dtest_sse=$(usex cpu_flags_x86_sse) |
222 |
- -Dtest_sse2=$(usex cpu_flags_x86_sse2) |
223 |
- #-Dtest_sse3=$(usex cpu_flags_x86_sse3) |
224 |
- -Dtest_sse4.1=$(usex cpu_flags_x86_sse4_1) |
225 |
- #-Dtest_sse4.2=$(usex cpu_flags_x86_sse4_2) |
226 |
- #-Dtest_sse4a=$(usex cpu_flags_x86_sse4a) |
227 |
- -Dtest_ssse3=$(usex cpu_flags_x86_ssse3) |
228 |
- #-Dtest_fma4=$(usex cpu_flags_x86_fma4) |
229 |
- #-Dtest_xop=$(usex cpu_flags_x86_xop) |
230 |
- ) |
231 |
- |
232 |
- cmake_src_configure |
233 |
-} |
234 |
- |
235 |
-src_compile() { |
236 |
- cmake_src_compile |
237 |
- |
238 |
- use doc && cmake_src_compile doc |
239 |
-} |
240 |
- |
241 |
-src_test() { |
242 |
- export GDAL_RUN_SLOW_TESTS=0 |
243 |
- export GDAL_DOWNLOAD_TEST_DATA=0 |
244 |
- |
245 |
- # Two test suites: |
246 |
- # 1. autotests (much larger, uses pytest) |
247 |
- # 2. Small set of fuzzing tests (no download needed) |
248 |
- |
249 |
- # Missing file for test-unit? |
250 |
- cmake_src_test -E "(test-unit)" |
251 |
-} |
252 |
- |
253 |
-src_install() { |
254 |
- cmake_src_install |
255 |
- use python && python_optimize |
256 |
- # TODO: install docs? |
257 |
-} |
258 |
- |
259 |
-pkg_postinst() { |
260 |
- elog "Check available image and data formats after building with" |
261 |
- elog "gdalinfo and ogrinfo (using the --formats switch)." |
262 |
-} |