1 |
commit: 936fdfe7d0cbbc1fa31f612cc3dbf21156f4bd83 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 20:24:38 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 20:24:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936fdfe7 |
7 |
|
8 |
sci-libs/gdal: Drop 2.3.0-r2 |
9 |
|
10 |
Does not build against poppler versions in tree. |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
sci-libs/gdal/Manifest | 1 - |
16 |
sci-libs/gdal/files/gdal-2.2.3-goocast.patch | 11 - |
17 |
.../gdal/files/gdal-2.3.0-changeset_38658.patch | 80 ------ |
18 |
.../gdal/files/gdal-2.3.0-frmts-nitf38234.patch | 12 - |
19 |
sci-libs/gdal/files/gdal-2.3.0-libtiff.patch | 12 - |
20 |
sci-libs/gdal/gdal-2.3.0-r2.ebuild | 318 --------------------- |
21 |
6 files changed, 434 deletions(-) |
22 |
|
23 |
diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest |
24 |
index 3d0114321d5..3e3fe719104 100644 |
25 |
--- a/sci-libs/gdal/Manifest |
26 |
+++ b/sci-libs/gdal/Manifest |
27 |
@@ -1,2 +1 @@ |
28 |
-DIST gdal-2.3.0.tar.gz 14423820 BLAKE2B 6c67c66b2f68699249ccd4df2cb1e3b7042e94003b730e64bd8b8eec726a32da9485cab29552bd34c23831686ec3e879edd1848a2339c8289580ce282a287992 SHA512 b37e433be0b7a587ea9f9e5e720295e4cd1406f6c8ca770f5fedcd7fdc797e01e576eb887034b38f93f04a4e76c0ce84792bc7d91a49fea4122231a37ace812f |
29 |
DIST gdal-2.3.1.tar.gz 14450452 BLAKE2B 226ddf80ff8b9e3d420ac717b245a09fe3daa0331931f4d371b62ab9fa9bb0735ca11e1e045398de92d61b68815aa1dc3e7b6568f4853964cf42d188e46e6eb7 SHA512 0c5bb515dd2a9ad3110421b39bd680ce7e9de68e969cf35a7e63118965dbe193d25a7720a525e53af153de3e78f76ccc6983f4dcdfa6ba429d732a7a47a35d57 |
30 |
|
31 |
diff --git a/sci-libs/gdal/files/gdal-2.2.3-goocast.patch b/sci-libs/gdal/files/gdal-2.2.3-goocast.patch |
32 |
deleted file mode 100644 |
33 |
index a25a524c253..00000000000 |
34 |
--- a/sci-libs/gdal/files/gdal-2.2.3-goocast.patch |
35 |
+++ /dev/null |
36 |
@@ -1,11 +0,0 @@ |
37 |
---- a/frmts/pdf/pdfobject.cpp 2018-05-29 11:23:00.980957371 +0300 |
38 |
-+++ b/frmts/pdf/pdfobject.cpp 2018-05-29 11:23:44.378955265 +0300 |
39 |
-@@ -1055,7 +1055,7 @@ |
40 |
- { |
41 |
- if (GetType() == PDFObjectType_String) |
42 |
- { |
43 |
-- GooString* gooString = m_po->getString(); |
44 |
-+ GooString* gooString =(GooString*) m_po->getString(); |
45 |
- return (osStr = GDALPDFGetUTF8StringFromBytes(reinterpret_cast<const GByte*>(gooString->getCString()), |
46 |
- static_cast<int>(gooString->getLength()))); |
47 |
- } |
48 |
|
49 |
diff --git a/sci-libs/gdal/files/gdal-2.3.0-changeset_38658.patch b/sci-libs/gdal/files/gdal-2.3.0-changeset_38658.patch |
50 |
deleted file mode 100644 |
51 |
index 3f681836989..00000000000 |
52 |
--- a/sci-libs/gdal/files/gdal-2.3.0-changeset_38658.patch |
53 |
+++ /dev/null |
54 |
@@ -1,80 +0,0 @@ |
55 |
-Index: /trunk/gdal/frmts/nitf/nitfrasterband.cpp |
56 |
-=================================================================== |
57 |
---- a/frmts/nitf/nitfrasterband.cpp (revision 38657) |
58 |
-+++ b/frmts/nitf/nitfrasterband.cpp (revision 38658) |
59 |
-@@ -824,4 +826,20 @@ |
60 |
- pUnpackData[i+7] = ((pDataSrc[k+2]) & 0x7); |
61 |
- } |
62 |
-+ if( i < n ) |
63 |
-+ { |
64 |
-+ pUnpackData[i+0] = ((pDataSrc[k+0] >> 5)); |
65 |
-+ if( i + 1 < n ) |
66 |
-+ pUnpackData[i+1] = ((pDataSrc[k+0] >> 2) & 0x07); |
67 |
-+ if( i + 2 < n ) |
68 |
-+ pUnpackData[i+2] = ((pDataSrc[k+0] << 1) & 0x07) | (pDataSrc[k+1] >> 7); |
69 |
-+ if( i + 3 < n ) |
70 |
-+ pUnpackData[i+3] = ((pDataSrc[k+1] >> 4) & 0x07); |
71 |
-+ if( i + 4 < n ) |
72 |
-+ pUnpackData[i+4] = ((pDataSrc[k+1] >> 1) & 0x07); |
73 |
-+ if( i + 5 < n ) |
74 |
-+ pUnpackData[i+5] = ((pDataSrc[k+1] << 2) & 0x07) | (pDataSrc[k+2] >> 6); |
75 |
-+ if( i + 6 < n ) |
76 |
-+ pUnpackData[i+6] = ((pDataSrc[k+2] >> 3) & 0x07); |
77 |
-+ } |
78 |
- |
79 |
- memcpy(pData, pUnpackData, n); |
80 |
-@@ -842,4 +862,20 @@ |
81 |
- pUnpackData[i+7] = ((pDataSrc[k+4]) & 0x1f); |
82 |
- } |
83 |
-+ if( i < n ) |
84 |
-+ { |
85 |
-+ pUnpackData[i+0] = ((pDataSrc[k+0] >> 3)); |
86 |
-+ if( i + 1 < n ) |
87 |
-+ pUnpackData[i+1] = ((pDataSrc[k+0] << 2) & 0x1f) | (pDataSrc[k+1] >> 6); |
88 |
-+ if( i + 2 < n ) |
89 |
-+ pUnpackData[i+2] = ((pDataSrc[k+1] >> 1) & 0x1f); |
90 |
-+ if( i + 3 < n ) |
91 |
-+ pUnpackData[i+3] = ((pDataSrc[k+1] << 4) & 0x1f) | (pDataSrc[k+2] >> 4); |
92 |
-+ if( i + 4 < n ) |
93 |
-+ pUnpackData[i+4] = ((pDataSrc[k+2] << 1) & 0x1f) | (pDataSrc[k+3] >> 7); |
94 |
-+ if( i + 5 < n ) |
95 |
-+ pUnpackData[i+5] = ((pDataSrc[k+3] >> 2) & 0x1f); |
96 |
-+ if( i + 6 < n ) |
97 |
-+ pUnpackData[i+6] = ((pDataSrc[k+3] << 3) & 0x1f) | (pDataSrc[k+4] >> 5); |
98 |
-+ } |
99 |
- |
100 |
- memcpy(pData, pUnpackData, n); |
101 |
-@@ -856,4 +894,12 @@ |
102 |
- pUnpackData[i+3] = ((pDataSrc[k+2]) & 0x3f); |
103 |
- } |
104 |
-+ if( i < n ) |
105 |
-+ { |
106 |
-+ pUnpackData[i+0] = ((pDataSrc[k+0] >> 2)); |
107 |
-+ if( i + 1 < n ) |
108 |
-+ pUnpackData[i+1] = ((pDataSrc[k+0] << 4) & 0x3f) | (pDataSrc[k+1] >> 4); |
109 |
-+ if( i + 2 < n ) |
110 |
-+ pUnpackData[i+2] = ((pDataSrc[k+1] << 2) & 0x3f) | (pDataSrc[k+2] >> 6); |
111 |
-+ } |
112 |
- |
113 |
- memcpy(pData, pUnpackData, n); |
114 |
-@@ -873,4 +921,20 @@ |
115 |
- pUnpackData[i+6] = ((pDataSrc[k+5] << 1) & 0x7f) | (pDataSrc[k+6] >> 7); |
116 |
- pUnpackData[i+7] = ((pDataSrc[k+6]) & 0x7f); |
117 |
-+ } |
118 |
-+ if( i < n ) |
119 |
-+ { |
120 |
-+ pUnpackData[i+0] = ((pDataSrc[k+0] >> 1)); |
121 |
-+ if( i + 1 < n ) |
122 |
-+ pUnpackData[i+1] = ((pDataSrc[k+0] << 6) & 0x7f) | (pDataSrc[k+1] >> 2); |
123 |
-+ if( i + 2 < n ) |
124 |
-+ pUnpackData[i+2] = ((pDataSrc[k+1] << 5) & 0x7f) | (pDataSrc[k+2] >> 3) ; |
125 |
-+ if( i + 3 < n ) |
126 |
-+ pUnpackData[i+3] = ((pDataSrc[k+2] << 4) & 0x7f) | (pDataSrc[k+3] >> 4); |
127 |
-+ if( i + 4 < n ) |
128 |
-+ pUnpackData[i+4] = ((pDataSrc[k+3] << 3) & 0x7f) | (pDataSrc[k+4] >> 5); |
129 |
-+ if( i + 5 < n ) |
130 |
-+ pUnpackData[i+5] = ((pDataSrc[k+4] << 2) & 0x7f) | (pDataSrc[k+5] >> 6); |
131 |
-+ if( i + 6 < n ) |
132 |
-+ pUnpackData[i+6] = ((pDataSrc[k+5] << 1) & 0x7f) | (pDataSrc[k+6] >> 7); |
133 |
- } |
134 |
- |
135 |
|
136 |
diff --git a/sci-libs/gdal/files/gdal-2.3.0-frmts-nitf38234.patch b/sci-libs/gdal/files/gdal-2.3.0-frmts-nitf38234.patch |
137 |
deleted file mode 100644 |
138 |
index 783752e0efa..00000000000 |
139 |
--- a/sci-libs/gdal/files/gdal-2.3.0-frmts-nitf38234.patch |
140 |
+++ /dev/null |
141 |
@@ -1,12 +0,0 @@ |
142 |
-Index: trunk/gdal/frmts/nitf/nitffile.c |
143 |
-=================================================================== |
144 |
---- a/frmts/nitf/nitffile.c (revision 38085) |
145 |
-+++ b/frmts/nitf/nitffile.c (revision 38234) |
146 |
-@@ -350,5 +350,6 @@ |
147 |
- if (nOffset != -1) |
148 |
- nOffset = NITFCollectSegmentInfo( psFile, nHeaderLen, nOffset, "RE", 4, 7, &nNextData); |
149 |
-- else |
150 |
-+ |
151 |
-+ if( nOffset < 0 ) |
152 |
- { |
153 |
- NITFClose(psFile); |
154 |
|
155 |
diff --git a/sci-libs/gdal/files/gdal-2.3.0-libtiff.patch b/sci-libs/gdal/files/gdal-2.3.0-libtiff.patch |
156 |
deleted file mode 100644 |
157 |
index 5964165e3e6..00000000000 |
158 |
--- a/sci-libs/gdal/files/gdal-2.3.0-libtiff.patch |
159 |
+++ /dev/null |
160 |
@@ -1,12 +0,0 @@ |
161 |
---- ./frmts/gtiff/libtiff/tif_read.c.old 2018-08-11 09:12:42.378891934 +0100 |
162 |
-+++ ./frmts/gtiff/libtiff/tif_read.c 2018-08-11 09:15:37.330882891 +0100 |
163 |
-@@ -296,7 +296,8 @@ |
164 |
- } |
165 |
- else |
166 |
- { |
167 |
-- return 1; |
168 |
-+ tif->tif_rawcc = tif->tif_rawdataloaded; |
169 |
-+ return 1; |
170 |
- } |
171 |
- } |
172 |
- |
173 |
|
174 |
diff --git a/sci-libs/gdal/gdal-2.3.0-r2.ebuild b/sci-libs/gdal/gdal-2.3.0-r2.ebuild |
175 |
deleted file mode 100644 |
176 |
index fe8e746f8d1..00000000000 |
177 |
--- a/sci-libs/gdal/gdal-2.3.0-r2.ebuild |
178 |
+++ /dev/null |
179 |
@@ -1,318 +0,0 @@ |
180 |
-# Copyright 1999-2018 Gentoo Foundation |
181 |
-# Distributed under the terms of the GNU General Public License v2 |
182 |
- |
183 |
-EAPI=6 |
184 |
- |
185 |
-GENTOO_DEPEND_ON_PERL="no" |
186 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
187 |
-DISTUTILS_OPTIONAL=1 |
188 |
- |
189 |
-inherit autotools perl-module distutils-r1 toolchain-funcs flag-o-matic java-pkg-opt-2 |
190 |
- |
191 |
-DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
192 |
-HOMEPAGE="https://www.gdal.org/" |
193 |
-SRC_URI="https://download.osgeo.org/${PN}/${PV}/${P}.tar.gz" |
194 |
- |
195 |
-SLOT="0/2.3" |
196 |
-LICENSE="BSD Info-ZIP MIT" |
197 |
-KEYWORDS="amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
198 |
-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" |
199 |
- |
200 |
-COMMON_DEPEND=" |
201 |
- dev-libs/expat |
202 |
- dev-libs/json-c:= |
203 |
- dev-libs/libpcre |
204 |
- dev-libs/libxml2:= |
205 |
- media-libs/tiff:0= |
206 |
- sci-libs/libgeotiff |
207 |
- sys-libs/zlib:=[minizip(+)] |
208 |
- armadillo? ( sci-libs/armadillo:=[lapack] ) |
209 |
- curl? ( net-misc/curl ) |
210 |
- fits? ( sci-libs/cfitsio:= ) |
211 |
- geos? ( >=sci-libs/geos-2.2.1 ) |
212 |
- gif? ( media-libs/giflib:= ) |
213 |
- gml? ( >=dev-libs/xerces-c-3.1 ) |
214 |
- hdf5? ( >=sci-libs/hdf5-1.6.4:=[szip] ) |
215 |
- jpeg? ( virtual/jpeg:0= ) |
216 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
217 |
- lzma? ( || ( |
218 |
- app-arch/xz-utils |
219 |
- app-arch/lzma |
220 |
- ) ) |
221 |
- mdb? ( dev-java/jackcess:1 ) |
222 |
- mysql? ( virtual/mysql ) |
223 |
- netcdf? ( sci-libs/netcdf:= ) |
224 |
- odbc? ( dev-db/unixODBC ) |
225 |
- ogdi? ( sci-libs/ogdi ) |
226 |
- opencl? ( virtual/opencl ) |
227 |
- oracle? ( dev-db/oracle-instantclient:= ) |
228 |
- pdf? ( >=app-text/poppler-0.24.3:= ) |
229 |
- perl? ( dev-lang/perl:= ) |
230 |
- png? ( media-libs/libpng:0= ) |
231 |
- postgres? ( >=dev-db/postgresql-8.4:= ) |
232 |
- python? ( |
233 |
- ${PYTHON_DEPS} |
234 |
- dev-python/numpy[${PYTHON_USEDEP}] |
235 |
- ) |
236 |
- spatialite? ( dev-db/spatialite ) |
237 |
- sqlite? ( dev-db/sqlite:3 ) |
238 |
- webp? ( media-libs/libwebp:= ) |
239 |
- xls? ( dev-libs/freexl )" |
240 |
- |
241 |
-RDEPEND="${COMMON_DEPEND} |
242 |
- java? ( >=virtual/jre-1.7:* )" |
243 |
- |
244 |
-DEPEND="${COMMON_DEPEND} |
245 |
- doc? ( app-doc/doxygen ) |
246 |
- java? ( >=virtual/jdk-1.7:* ) |
247 |
- perl? ( dev-lang/swig:0 ) |
248 |
- python? ( |
249 |
- dev-lang/swig:0 |
250 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
251 |
- )" |
252 |
- |
253 |
-REQUIRED_USE=" |
254 |
- mdb? ( java ) |
255 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
256 |
- spatialite? ( sqlite ) |
257 |
-" |
258 |
- |
259 |
-PATCHES=( |
260 |
- "${FILESDIR}/${PN}-2.2.3-soname.patch" |
261 |
- "${FILESDIR}/${PN}-2.2.3-bashcomp-path.patch" # bug 641866 |
262 |
- "${FILESDIR}/${PN}-2.2.3-goocast.patch" # bug 656252 |
263 |
- "${FILESDIR}/${PN}-2.3.0-curl.patch" # bug 659840 |
264 |
- # Security bugs |
265 |
- "${FILESDIR}/${P}-libtiff.patch" # bug 621712 |
266 |
- "${FILESDIR}/${P}-frmts-nitf38234.patch" # bug 621720 |
267 |
- "${FILESDIR}/${P}-changeset_38658.patch" # bug 623028 |
268 |
-) |
269 |
- |
270 |
-src_prepare() { |
271 |
- # fix datadir and docdir placement |
272 |
- sed -e "s:@datadir@:@datadir@/gdal:" \ |
273 |
- -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
274 |
- -i "${S}"/GDALmake.opt.in || die |
275 |
- |
276 |
- # the second sed expression should fix bug 371075 |
277 |
- sed -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \ |
278 |
- -e "s:--prefix=\$(DESTDIR):--prefix=:" \ |
279 |
- -i "${S}"/swig/python/GNUmakefile || die |
280 |
- |
281 |
- # Fix spatialite/sqlite include issue |
282 |
- sed -e 's:spatialite/sqlite3.h:sqlite3.h:g' \ |
283 |
- -i ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die |
284 |
- |
285 |
- # Fix freexl configure check |
286 |
- sed -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \ |
287 |
- -i configure.ac || die |
288 |
- |
289 |
- sed -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \ |
290 |
- -i configure.ac || die |
291 |
- |
292 |
- sed -e 's:^ar:$(AR):g' \ |
293 |
- -i ogr/ogrsf_frmts/sdts/install-libs.sh || die |
294 |
- |
295 |
- # updated for newer swig (must specify the path to input files) |
296 |
- sed -e "s: gdal_array.i: ../include/gdal_array.i:" \ |
297 |
- -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
298 |
- -i swig/python/GNUmakefile || die "sed python makefile failed" |
299 |
- sed -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \ |
300 |
- -i swig/python/setup.cfg || die "sed python setup.cfg failed" |
301 |
- |
302 |
- default |
303 |
- |
304 |
- eautoreconf |
305 |
-} |
306 |
- |
307 |
-src_configure() { |
308 |
- # bug 619148 |
309 |
- append-cxxflags -std=c++14 |
310 |
- |
311 |
- local myconf=( |
312 |
- # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore |
313 |
- # bsb - legal issues |
314 |
- # ingres - same story as oracle oci |
315 |
- # jasper - disabled because unmaintained and vulnerable; openjpeg will be used as JPEG-2000 provider instead |
316 |
- # podofo - we use poppler instead they are exclusive for each other |
317 |
- # tiff is a hard dep |
318 |
- --includedir="${EPREFIX}/usr/include/${PN}" |
319 |
- --disable-pdf-plugin |
320 |
- --disable-static |
321 |
- --enable-shared |
322 |
- --with-expat |
323 |
- --with-cryptopp=no |
324 |
- --with-geotiff |
325 |
- --with-grib |
326 |
- --with-hide-internal-symbols |
327 |
- --with-libjson-c="${EPREFIX}/usr/" |
328 |
- --with-libtiff |
329 |
- --with-libtool |
330 |
- --with-libz="${EPREFIX}/usr/" |
331 |
- --with-gnm |
332 |
- --without-bsb |
333 |
- --without-dods-root |
334 |
- --without-ecw |
335 |
- --without-epsilon |
336 |
- --without-fgdb |
337 |
- --without-fme |
338 |
- --without-gta |
339 |
- --without-grass |
340 |
- --without-hdf4 |
341 |
- --without-idb |
342 |
- --without-ingres |
343 |
- --without-jasper |
344 |
- --without-jp2lura |
345 |
- --without-jp2mrsid |
346 |
- --without-kakadu |
347 |
- --without-kea |
348 |
- --without-libkml |
349 |
- --without-mongocxx |
350 |
- --without-mrsid |
351 |
- --without-mrsid_lidar |
352 |
- --without-msg |
353 |
- --without-mrf |
354 |
- --without-rasdaman |
355 |
- --without-rasterlite2 |
356 |
- --without-pcraster |
357 |
- --without-pdfium |
358 |
- --without-php |
359 |
- --without-podofo |
360 |
- --without-qhull |
361 |
- --without-sde |
362 |
- --without-sfcgal |
363 |
- --without-sosi |
364 |
- --without-teigha |
365 |
- --disable-lto |
366 |
- $(use_enable debug) |
367 |
- $(use_with armadillo) |
368 |
- $(use_with aux_xml pam) |
369 |
- $(use_with curl) |
370 |
- $(use_with fits cfitsio) |
371 |
- $(use_with geos) |
372 |
- $(use_with gif) |
373 |
- $(use_with gml xerces) |
374 |
- $(use_with hdf5) |
375 |
- $(use_with jpeg pcidsk) # pcidsk is internal, because there is no such library yreleased developer by gdal |
376 |
- $(use_with jpeg) |
377 |
- $(use_with jpeg2k openjpeg) |
378 |
- $(use_with lzma liblzma) |
379 |
- $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) |
380 |
- $(use_with netcdf) |
381 |
- $(use_with oracle oci) |
382 |
- $(use_with odbc) |
383 |
- $(use_with ogdi ogdi "${EPREFIX}"/usr) |
384 |
- $(use_with opencl) |
385 |
- $(use_with pdf poppler) |
386 |
- $(use_with perl) |
387 |
- $(use_with png) |
388 |
- $(use_with postgres pg) |
389 |
- $(use_with python) |
390 |
- $(use_with spatialite) |
391 |
- $(use_with sqlite sqlite3 "${EPREFIX}"/usr) |
392 |
- $(use_with threads) |
393 |
- $(use_with webp) |
394 |
- $(use_with xls freexl) ) |
395 |
- |
396 |
- tc-export AR RANLIB |
397 |
- |
398 |
- if use java; then |
399 |
- myconf+=( |
400 |
- --with-java=$(java-config --jdk-home 2>/dev/null) |
401 |
- --with-jvm-lib=dlopen |
402 |
- $(use_with mdb) |
403 |
- ) |
404 |
- else |
405 |
- myconf+=( --without-java --without-mdb ) |
406 |
- fi |
407 |
- |
408 |
- if use sqlite; then |
409 |
- append-libs -lsqlite3 |
410 |
- fi |
411 |
- |
412 |
- # bug #632660 |
413 |
- if use ogdi; then |
414 |
- tc-export PKG_CONFIG |
415 |
- append-cflags $(${PKG_CONFIG} --cflags libtirpc) |
416 |
- append-cxxflags $(${PKG_CONFIG} --cflags libtirpc) |
417 |
- fi |
418 |
- |
419 |
- ECONF_SOURCE="${S}" econf "${myconf[@]}" |
420 |
- |
421 |
- # mysql-config puts this in (and boy is it a PITA to get it out) |
422 |
- if use mysql; then |
423 |
- sed -e "s: -rdynamic : :" \ |
424 |
- -i GDALmake.opt || die "sed LIBS failed" |
425 |
- fi |
426 |
-} |
427 |
- |
428 |
-src_compile() { |
429 |
- if use perl; then |
430 |
- rm "${S}"/swig/perl/*_wrap.cpp || die |
431 |
- emake -C "${S}"/swig/perl generate |
432 |
- fi |
433 |
- |
434 |
- # gdal-config needed before generating Python bindings |
435 |
- default |
436 |
- |
437 |
- if use perl ; then |
438 |
- pushd "${S}"/swig/perl > /dev/null || die |
439 |
- perl-module_src_configure |
440 |
- perl-module_src_compile |
441 |
- popd > /dev/null || die |
442 |
- fi |
443 |
- |
444 |
- if use python; then |
445 |
- rm -f "${S}"/swig/python/*_wrap.cpp || die |
446 |
- emake -C "${S}"/swig/python generate |
447 |
- pushd "${S}"/swig/python > /dev/null || die |
448 |
- distutils-r1_src_compile |
449 |
- popd > /dev/null || die |
450 |
- fi |
451 |
- |
452 |
- use doc && emake docs |
453 |
-} |
454 |
- |
455 |
-src_install() { |
456 |
- if use perl ; then |
457 |
- pushd "${S}"/swig/perl > /dev/null || die |
458 |
- perl-module_src_install |
459 |
- popd > /dev/null || die |
460 |
- sed -e 's:BINDINGS = \(.*\) perl:BINDINGS = \1:g' \ |
461 |
- -i GDALmake.opt || die |
462 |
- fi |
463 |
- |
464 |
- use perl && perl_delete_localpod |
465 |
- |
466 |
- local DOCS=( Doxyfile HOWTO-RELEASE NEWS ) |
467 |
- use doc && HTML_DOCS=( html/. ) |
468 |
- |
469 |
- default |
470 |
- |
471 |
- python_install() { |
472 |
- distutils-r1_python_install |
473 |
- python_doscript scripts/*.py |
474 |
- } |
475 |
- |
476 |
- if use python; then |
477 |
- # Don't clash with gdal's docs |
478 |
- unset DOCS HTML_DOCS |
479 |
- |
480 |
- pushd "${S}"/swig/python > /dev/null || die |
481 |
- distutils-r1_src_install |
482 |
- popd > /dev/null || die |
483 |
- |
484 |
- newdoc swig/python/README.txt README-python.txt |
485 |
- |
486 |
- insinto /usr/share/${PN}/samples |
487 |
- doins -r swig/python/samples/ |
488 |
- fi |
489 |
- |
490 |
- doman "${S}"/man/man*/* |
491 |
- find "${ED}" -name '*.la' -delete || die |
492 |
-} |
493 |
- |
494 |
-pkg_postinst() { |
495 |
- elog "Check available image and data formats after building with" |
496 |
- elog "gdalinfo and ogrinfo (using the --formats switch)." |
497 |
-} |