1 |
commit: 9c20aad4922fb94a82abaf786056b8ac3d2add93 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 19 18:35:14 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 19 18:53:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c20aad4 |
7 |
|
8 |
sci-libs/gdal: Drop 1.11 versions |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
sci-libs/gdal/Manifest | 2 - |
13 |
.../gdal/files/gdal-1.10.0-ruby-makefile.patch | 47 --- |
14 |
sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch | 22 -- |
15 |
.../files/gdal-1.11.1-poppler-0.31.0-support.patch | 119 ------- |
16 |
sci-libs/gdal/files/gdal-1.11.1-swig-3.0.3.patch | 161 ---------- |
17 |
sci-libs/gdal/gdal-1.11.1-r4.ebuild | 352 --------------------- |
18 |
sci-libs/gdal/gdal-1.11.2-r1.ebuild | 349 -------------------- |
19 |
7 files changed, 1052 deletions(-) |
20 |
|
21 |
diff --git a/sci-libs/gdal/Manifest b/sci-libs/gdal/Manifest |
22 |
index 109dfbf2dcb..d601fb10b32 100644 |
23 |
--- a/sci-libs/gdal/Manifest |
24 |
+++ b/sci-libs/gdal/Manifest |
25 |
@@ -1,4 +1,2 @@ |
26 |
-DIST gdal-1.11.1.tar.gz 10731242 SHA256 f46b5944a8cabc8516673f231f466131cdfd2cdc6677dbee5d96ec7fc58a3340 SHA512 17214ae17a5199d73477d17cf8680396aee8a28d4333cf55818bdd869548dc6a4d7535d7e05949696db31a7be4a511c5ca73199af3dda48d9a40d5640618e9c3 WHIRLPOOL 1f07ee4acccf58552ddef6b5a306b9dbe832014f6890d353f195ab0d47dfc4e81164b7c8b9cefc9915035d113d2f28818f05e89918728eadb0e80e43e7220b5b |
27 |
-DIST gdal-1.11.2.tar.gz 10746847 SHA256 66bc8192d24e314a66ed69285186d46e6999beb44fc97eeb9c76d82a117c0845 SHA512 f1f025de5a618cc2458b6d1f066647341ad4ded1cc2a08e4b78756d96d38715ddd8ba34b7c263369bde66cb20c7919195e13b60a1ecadee25ef80db79f3eb7da WHIRLPOOL 77274f6f9b9bb29fc21c6f274512bccebc7748420c31e3e626d26087194f69b9606354603b393b77903451b073d034f2508403193fdf738f5b099d7808771653 |
28 |
DIST gdal-2.0.2.tar.gz 11643726 SHA256 db7722caf8d9dd798ec18012b9cacf40a518918466126a88b9fd277bd7d40cc4 SHA512 b3fedc8d1d0522d2a6fd22fbc722c551ebf2e4326f64b76c9c43cd3848f7c97a0636c691ee383b3f3c872dc79cd0e216527d3985c6aac3103395fde657db1266 WHIRLPOOL 889b35d0c2d972681d30eb33b731498b58951ed64a37d0152b15f8d9c3e414703158498cc6eb1bc75a3cd598a567738e4e937fffa6a55cdff2b6cf87338e25e6 |
29 |
DIST gdal-2.0.3.tar.gz 11589011 SHA256 af661066a0bcac733521d66a73375dbe70b0e87d234a99af9f8f1d034c127914 SHA512 3ed2a084fa146fab8d5f5e039480ab935edaefebe9e55f85bf637a4487a3f56951c93055395850e7bf35d5a6d6e901f741ae01ad64be87597aabfad52f1c5e90 WHIRLPOOL 15bc985dc9a8543e3cc7caaca36e41bb9891558adaea2c3883af3d58d5059d01eacda9e8e79b6051c230dd84d08b93b9a8c778758b8fab14d146d42bfba22659 |
30 |
|
31 |
diff --git a/sci-libs/gdal/files/gdal-1.10.0-ruby-makefile.patch b/sci-libs/gdal/files/gdal-1.10.0-ruby-makefile.patch |
32 |
deleted file mode 100644 |
33 |
index cc89200c526..00000000000 |
34 |
--- a/sci-libs/gdal/files/gdal-1.10.0-ruby-makefile.patch |
35 |
+++ /dev/null |
36 |
@@ -1,47 +0,0 @@ |
37 |
-diff -Naurw gdal-1.10.0.orig/swig/ruby/RubyMakefile.mk gdal-1.10.0/swig/ruby/RubyMakefile.mk |
38 |
---- gdal-1.10.0.orig/swig/ruby/RubyMakefile.mk 2013-04-24 18:55:26.000000000 +0000 |
39 |
-+++ gdal-1.10.0/swig/ruby/RubyMakefile.mk 2013-06-25 23:58:06.464518830 +0000 |
40 |
-@@ -37,13 +37,13 @@ |
41 |
- |
42 |
- ifeq ("$(shell uname -s)", "Darwin") |
43 |
- RUBY_MODULES=$(RUBY_MODULES_MAC) |
44 |
--LDFLAGS += -Xcompiler -bundle -L$(RUBY_LIB_DIR) |
45 |
--RUBY_LIB := -l$(RUBY_SO_NAME) |
46 |
- else |
47 |
- RUBY_MODULES=$(RUBY_MODULES_LIN) |
48 |
--LDFLAGS += -Xcompiler -shared -L$(RUBY_LIB_DIR) |
49 |
--RUBY_LIB := -l$(RUBY_SO_NAME) |
50 |
- endif |
51 |
-+LDFLAGS += -fPIC -DPIC -shared -L$(RUBY_LIB_DIR) |
52 |
-+CFLAGS += -fPIC -DPIC |
53 |
-+CXXFLAGS += -fPIC -DPIC |
54 |
-+RUBY_LIB := -l$(RUBY_SO_NAME) |
55 |
- |
56 |
- build: $(RUBY_MODULES) |
57 |
- |
58 |
-@@ -56,10 +56,10 @@ |
59 |
- veryclean: clean |
60 |
- rm -f *_wrap.cpp |
61 |
- |
62 |
--$(INSTALL_DIR): |
63 |
-+$(DESTDIR)$(INSTALL_DIR): |
64 |
- mkdir -p $(DESTDIR)$(INSTALL_DIR) |
65 |
- |
66 |
--install: $(INSTALL_DIR) |
67 |
-+install: $(DESTDIR)$(INSTALL_DIR) $(RUBY_MODULES) |
68 |
- for i in $(RUBY_MODULES) ; do $(INSTALL) $$i $(DESTDIR)$(INSTALL_DIR) ; done |
69 |
- |
70 |
- $(RUBY_MODULES_MAC): %.bundle: %_wrap.o |
71 |
-@@ -69,10 +69,10 @@ |
72 |
- $(LD) $(LDFLAGS) $(LIBS) $(GDAL_SLIB_LINK) $(RUBY_LIB) $< -o $@ |
73 |
- |
74 |
- %.o: %.cpp |
75 |
-- $(CXX) $(CFLAGS) $(GDAL_INCLUDE) $(RUBY_INCLUDE) -c $< |
76 |
-+ $(CXX) $(CXXFLAGS) $(GDAL_INCLUDE) $(RUBY_INCLUDE) -c $< |
77 |
- |
78 |
- %.o: %.cxx |
79 |
-- $(CXX) $(CFLAGS) $(GDAL_INCLUDE) $(RUBY_INCLUDE) -c $< |
80 |
-+ $(CXX) $(CXXFLAGS) $(GDAL_INCLUDE) $(RUBY_INCLUDE) -c $< |
81 |
- |
82 |
- %.o: %.c |
83 |
- $(CC) $(CFLAGS) $(GDAL_INCLUDE) $(RUBY_INCLUDE) -c $< |
84 |
|
85 |
diff --git a/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch b/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch |
86 |
deleted file mode 100644 |
87 |
index 4f4e80b84f9..00000000000 |
88 |
--- a/sci-libs/gdal/files/gdal-1.11-swig-3.0.6.patch |
89 |
+++ /dev/null |
90 |
@@ -1,22 +0,0 @@ |
91 |
---- gdal/swig/include/python/ogr_python.i |
92 |
-+++ gdal/swig/include/python/ogr_python.i |
93 |
-@@ -67,7 +67,7 @@ |
94 |
- def __getitem__(self, value): |
95 |
- """Support dictionary, list, and slice -like access to the datasource. |
96 |
--ds[0] would return the first layer on the datasource. |
97 |
--ds['aname'] would return the layer named "aname". |
98 |
--ds[0:4] would return a list of the first four layers.""" |
99 |
-+ ds[0] would return the first layer on the datasource. |
100 |
-+ ds['aname'] would return the layer named "aname". |
101 |
-+ ds[0:4] would return a list of the first four layers.""" |
102 |
- if isinstance(value, slice): |
103 |
- output = [] |
104 |
-@@ -135,6 +135,6 @@ |
105 |
- def __getitem__(self, value): |
106 |
- """Support list and slice -like access to the layer. |
107 |
--layer[0] would return the first feature on the layer. |
108 |
--layer[0:4] would return a list of the first four features.""" |
109 |
-+ layer[0] would return the first feature on the layer. |
110 |
-+ layer[0:4] would return a list of the first four features.""" |
111 |
- if isinstance(value, slice): |
112 |
- import sys |
113 |
|
114 |
diff --git a/sci-libs/gdal/files/gdal-1.11.1-poppler-0.31.0-support.patch b/sci-libs/gdal/files/gdal-1.11.1-poppler-0.31.0-support.patch |
115 |
deleted file mode 100644 |
116 |
index 7700c246387..00000000000 |
117 |
--- a/sci-libs/gdal/files/gdal-1.11.1-poppler-0.31.0-support.patch |
118 |
+++ /dev/null |
119 |
@@ -1,119 +0,0 @@ |
120 |
-diff -urpN gdal-1.11.1.orig/frmts/pdf/pdfdataset.cpp gdal-1.11.1/frmts/pdf/pdfdataset.cpp |
121 |
---- gdal-1.11.1.orig/frmts/pdf/pdfdataset.cpp 2014-09-24 06:47:43.000000000 -0700 |
122 |
-+++ gdal-1.11.1/frmts/pdf/pdfdataset.cpp 2015-02-19 13:55:58.714589328 -0800 |
123 |
-@@ -108,12 +108,9 @@ class GDALPDFOutputDev : public SplashOu |
124 |
- |
125 |
- public: |
126 |
- GDALPDFOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, |
127 |
-- GBool reverseVideoA, SplashColorPtr paperColorA, |
128 |
-- GBool bitmapTopDownA = gTrue, |
129 |
-- GBool allowAntialiasA = gTrue) : |
130 |
-+ GBool reverseVideoA, SplashColorPtr paperColorA) : |
131 |
- SplashOutputDev(colorModeA, bitmapRowPadA, |
132 |
-- reverseVideoA, paperColorA, |
133 |
-- bitmapTopDownA, allowAntialiasA), |
134 |
-+ reverseVideoA, paperColorA), |
135 |
- bEnableVector(TRUE), |
136 |
- bEnableText(TRUE), |
137 |
- bEnableBitmap(TRUE) {} |
138 |
-diff -urpN gdal-1.11.1.orig/frmts/pdf/pdfio.cpp gdal-1.11.1/frmts/pdf/pdfio.cpp |
139 |
---- gdal-1.11.1.orig/frmts/pdf/pdfio.cpp 2014-09-24 06:47:43.000000000 -0700 |
140 |
-+++ gdal-1.11.1/frmts/pdf/pdfio.cpp 2015-02-19 13:55:58.715589318 -0800 |
141 |
-@@ -39,13 +39,25 @@ |
142 |
- |
143 |
- CPL_CVSID("$Id$"); |
144 |
- |
145 |
-+ |
146 |
-+#ifdef POPPLER_BASE_STREAM_HAS_TWO_ARGS |
147 |
-+/* Poppler 0.31.0 is the first one that needs to know the file size */ |
148 |
-+static vsi_l_offset VSIPDFFileStreamGetSize(VSILFILE* f) |
149 |
-+{ |
150 |
-+ VSIFSeekL(f, 0, SEEK_END); |
151 |
-+ vsi_l_offset nSize = VSIFTellL(f); |
152 |
-+ VSIFSeekL(f, 0, SEEK_SET); |
153 |
-+ return nSize; |
154 |
-+} |
155 |
-+#endif |
156 |
-+ |
157 |
- /************************************************************************/ |
158 |
- /* VSIPDFFileStream() */ |
159 |
- /************************************************************************/ |
160 |
- |
161 |
- VSIPDFFileStream::VSIPDFFileStream(VSILFILE* f, const char* pszFilename, Object *dictA): |
162 |
- #ifdef POPPLER_BASE_STREAM_HAS_TWO_ARGS |
163 |
-- BaseStream(dictA, 0) |
164 |
-+ BaseStream(dictA, (setPos_offset_type)VSIPDFFileStreamGetSize(f)) |
165 |
- #else |
166 |
- BaseStream(dictA) |
167 |
- #endif |
168 |
-@@ -195,7 +207,7 @@ int VSIPDFFileStream::FillBuffer() |
169 |
- /* getChar() */ |
170 |
- /************************************************************************/ |
171 |
- |
172 |
--/* The unoptimized version performs a bit well since we must go through */ |
173 |
-+/* The unoptimized version performs a bit less since we must go through */ |
174 |
- /* the whole virtual I/O chain for each character reading. We save a few */ |
175 |
- /* percent with this extra internal caching */ |
176 |
- |
177 |
-@@ -326,4 +338,47 @@ void VSIPDFFileStream::moveStart(moveSta |
178 |
- nPosInBuffer = nBufferLength = -1; |
179 |
- } |
180 |
- |
181 |
-+/************************************************************************/ |
182 |
-+/* hasGetChars() */ |
183 |
-+/************************************************************************/ |
184 |
-+ |
185 |
-+GBool VSIPDFFileStream::hasGetChars() |
186 |
-+{ |
187 |
-+ return true; |
188 |
-+} |
189 |
-+ |
190 |
-+/************************************************************************/ |
191 |
-+/* getChars() */ |
192 |
-+/************************************************************************/ |
193 |
-+ |
194 |
-+int VSIPDFFileStream::getChars(int nChars, Guchar *buffer) |
195 |
-+{ |
196 |
-+ int nRead = 0; |
197 |
-+ while (nRead < nChars) |
198 |
-+ { |
199 |
-+ int nToRead = nChars - nRead; |
200 |
-+ if (nPosInBuffer == nBufferLength) |
201 |
-+ { |
202 |
-+ if (!bLimited && nToRead > BUFFER_SIZE) |
203 |
-+ { |
204 |
-+ int nJustRead = (int) VSIFReadL(buffer + nRead, 1, nToRead, f); |
205 |
-+ nPosInBuffer = nBufferLength = -1; |
206 |
-+ nCurrentPos += nJustRead; |
207 |
-+ nRead += nJustRead; |
208 |
-+ break; |
209 |
-+ } |
210 |
-+ else if (!FillBuffer() || nPosInBuffer >= nBufferLength) |
211 |
-+ break; |
212 |
-+ } |
213 |
-+ if( nToRead > nBufferLength - nPosInBuffer ) |
214 |
-+ nToRead = nBufferLength - nPosInBuffer; |
215 |
-+ |
216 |
-+ memcpy( buffer + nRead, abyBuffer + nPosInBuffer, nToRead ); |
217 |
-+ nPosInBuffer += nToRead; |
218 |
-+ nCurrentPos += nToRead; |
219 |
-+ nRead += nToRead; |
220 |
-+ } |
221 |
-+ return nRead; |
222 |
-+} |
223 |
-+ |
224 |
- #endif |
225 |
-diff -urpN gdal-1.11.1.orig/frmts/pdf/pdfio.h gdal-1.11.1/frmts/pdf/pdfio.h |
226 |
---- gdal-1.11.1.orig/frmts/pdf/pdfio.h 2014-09-24 06:47:43.000000000 -0700 |
227 |
-+++ gdal-1.11.1/frmts/pdf/pdfio.h 2015-02-19 13:55:58.715589318 -0800 |
228 |
-@@ -93,6 +93,10 @@ class VSIPDFFileStream: public BaseStrea |
229 |
- virtual void close(); |
230 |
- |
231 |
- private: |
232 |
-+ /* Added in poppler 0.15.0 */ |
233 |
-+ virtual GBool hasGetChars(); |
234 |
-+ virtual int getChars(int nChars, Guchar *buffer); |
235 |
-+ |
236 |
- VSIPDFFileStream *poParent; |
237 |
- GooString *poFilename; |
238 |
- VSILFILE *f; |
239 |
|
240 |
diff --git a/sci-libs/gdal/files/gdal-1.11.1-swig-3.0.3.patch b/sci-libs/gdal/files/gdal-1.11.1-swig-3.0.3.patch |
241 |
deleted file mode 100644 |
242 |
index c6b8240b8eb..00000000000 |
243 |
--- a/sci-libs/gdal/files/gdal-1.11.1-swig-3.0.3.patch |
244 |
+++ /dev/null |
245 |
@@ -1,161 +0,0 @@ |
246 |
-svn diff -c 28298 https://svn.osgeo.org/gdal/branches/1.11 |
247 |
-r28298 | rouault | 2015-01-06 10:03:37 +0100 (Di, 06 Jan 2015) | 1 line |
248 |
-Python bindings: fix processing error of ogr_python.i with SWIG 3 (#5795) |
249 |
-http://trac.osgeo.org/gdal/ticket/5795#comment:3 |
250 |
-https://bugs.gentoo.org/534168 |
251 |
- |
252 |
-Index: gdal/swig/python/osgeo/ogr.py |
253 |
-=================================================================== |
254 |
---- gdal/swig/python/osgeo/ogr.py (revision 28297) |
255 |
-+++ gdal/swig/python/osgeo/ogr.py (revision 28298) |
256 |
-@@ -2025,12 +2025,12 @@ |
257 |
- """Returns the number of features in the layer""" |
258 |
- return self.GetFeatureCount() |
259 |
- |
260 |
-- |
261 |
-- |
262 |
-+ # To avoid __len__ being called when testing boolean value |
263 |
-+ # which can have side effects (#4758) |
264 |
- def __nonzero__(self): |
265 |
- return True |
266 |
- |
267 |
-- |
268 |
-+ # For Python 3 compat |
269 |
- __bool__ = __nonzero__ |
270 |
- |
271 |
- def __getitem__(self, value): |
272 |
-@@ -2041,9 +2041,9 @@ |
273 |
- import sys |
274 |
- output = [] |
275 |
- if value.stop == sys.maxint: |
276 |
-- |
277 |
-- |
278 |
-- |
279 |
-+ #for an unending slice, sys.maxint is used |
280 |
-+ #We need to stop before that or GDAL will write an |
281 |
-+ ##error to stdout |
282 |
- stop = len(self) - 1 |
283 |
- else: |
284 |
- stop = value.stop |
285 |
-@@ -2944,8 +2944,8 @@ |
286 |
- def __copy__(self): |
287 |
- return self.Clone() |
288 |
- |
289 |
-- |
290 |
-- |
291 |
-+ # This makes it possible to fetch fields in the form "feature.area". |
292 |
-+ # This has some risk of name collisions. |
293 |
- def __getattr__(self, key): |
294 |
- """Returns the values of fields by the given name""" |
295 |
- if key == 'this': |
296 |
-@@ -2961,8 +2961,8 @@ |
297 |
- else: |
298 |
- return self.GetField(idx) |
299 |
- |
300 |
-- |
301 |
-- |
302 |
-+ # This makes it possible to set fields in the form "feature.area". |
303 |
-+ # This has some risk of name collisions. |
304 |
- def __setattr__(self, key, value): |
305 |
- """Set the values of fields by the given name""" |
306 |
- if key == 'this' or key == 'thisown': |
307 |
-@@ -2978,7 +2978,7 @@ |
308 |
- else: |
309 |
- self.__dict__[key] = value |
310 |
- |
311 |
-- |
312 |
-+ # This makes it possible to fetch fields in the form "feature['area']". |
313 |
- def __getitem__(self, key): |
314 |
- """Returns the values of fields by the given name / field_index""" |
315 |
- if isinstance(key, str): |
316 |
-@@ -2993,7 +2993,7 @@ |
317 |
- else: |
318 |
- return self.GetField(fld_index) |
319 |
- |
320 |
-- |
321 |
-+ # This makes it possible to set fields in the form "feature['area'] = 123". |
322 |
- def __setitem__(self, key, value): |
323 |
- """Returns the value of a field by field name / index""" |
324 |
- if isinstance(key, str): |
325 |
-@@ -3026,9 +3026,9 @@ |
326 |
- return self.GetFieldAsIntegerList(fld_index) |
327 |
- if fld_type == OFTRealList: |
328 |
- return self.GetFieldAsDoubleList(fld_index) |
329 |
-- |
330 |
-- |
331 |
-- |
332 |
-+ ## if fld_type == OFTDateTime or fld_type == OFTDate or fld_type == OFTTime: |
333 |
-+ # return self.GetFieldAsDate(fld_index) |
334 |
-+ # default to returning as a string. Should we add more types? |
335 |
- return self.GetFieldAsString(fld_index) |
336 |
- |
337 |
- def SetField2(self, fld_index, value): |
338 |
-Index: gdal/swig/include/python/ogr_python.i |
339 |
-=================================================================== |
340 |
---- gdal/swig/include/python/ogr_python.i (revision 28297) |
341 |
-+++ gdal/swig/include/python/ogr_python.i (revision 28298) |
342 |
-@@ -111,7 +111,7 @@ |
343 |
- } |
344 |
- |
345 |
- %extend OGRLayerShadow { |
346 |
-- %pythoncode { |
347 |
-+ %pythoncode %{ |
348 |
- def Reference(self): |
349 |
- "For backwards compatibility only." |
350 |
- pass |
351 |
-@@ -183,12 +183,12 @@ |
352 |
- return output |
353 |
- schema = property(schema) |
354 |
- |
355 |
-- } |
356 |
-+ %} |
357 |
- |
358 |
- } |
359 |
- |
360 |
- %extend OGRFeatureShadow { |
361 |
-- %pythoncode { |
362 |
-+ %pythoncode %{ |
363 |
- def Reference(self): |
364 |
- pass |
365 |
- |
366 |
-@@ -383,12 +383,12 @@ |
367 |
- return output |
368 |
- |
369 |
- |
370 |
--} |
371 |
-+%} |
372 |
- |
373 |
- } |
374 |
- |
375 |
- %extend OGRGeometryShadow { |
376 |
--%pythoncode { |
377 |
-+%pythoncode %{ |
378 |
- def Destroy(self): |
379 |
- self.__swig_destroy__(self) |
380 |
- self.__del__() |
381 |
-@@ -416,8 +416,8 @@ |
382 |
- return subgeom |
383 |
- else: |
384 |
- raise StopIteration |
385 |
-+%} |
386 |
- } |
387 |
--} |
388 |
- |
389 |
- |
390 |
- %extend OGRFieldDefnShadow { |
391 |
-@@ -449,13 +449,13 @@ |
392 |
- } |
393 |
- |
394 |
- %extend OGRFieldDefnShadow { |
395 |
--%pythoncode { |
396 |
-+%pythoncode %{ |
397 |
- def Destroy(self): |
398 |
- "Once called, self has effectively been destroyed. Do not access. For backwards compatiblity only" |
399 |
- _ogr.delete_FieldDefn( self ) |
400 |
- self.thisown = 0 |
401 |
-+%} |
402 |
- } |
403 |
--} |
404 |
- |
405 |
- %import typemaps_python.i |
406 |
- |
407 |
|
408 |
diff --git a/sci-libs/gdal/gdal-1.11.1-r4.ebuild b/sci-libs/gdal/gdal-1.11.1-r4.ebuild |
409 |
deleted file mode 100644 |
410 |
index 9ef1f0a3dab..00000000000 |
411 |
--- a/sci-libs/gdal/gdal-1.11.1-r4.ebuild |
412 |
+++ /dev/null |
413 |
@@ -1,352 +0,0 @@ |
414 |
-# Copyright 1999-2017 Gentoo Foundation |
415 |
-# Distributed under the terms of the GNU General Public License v2 |
416 |
- |
417 |
-EAPI=5 |
418 |
- |
419 |
-WANT_AUTOCONF="2.5" |
420 |
- |
421 |
-GENTOO_DEPEND_ON_PERL="no" |
422 |
-PYTHON_COMPAT=( python2_7 python3_4 ) |
423 |
-DISTUTILS_OPTIONAL=1 |
424 |
- |
425 |
-inherit autotools eutils libtool perl-module distutils-r1 python-r1 toolchain-funcs java-pkg-opt-2 |
426 |
- |
427 |
-DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
428 |
-HOMEPAGE="http://www.gdal.org/" |
429 |
-SRC_URI="http://download.osgeo.org/${PN}/${PV}/${P}.tar.gz" |
430 |
- |
431 |
-SLOT="0" |
432 |
-LICENSE="BSD Info-ZIP MIT" |
433 |
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
434 |
-IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls" |
435 |
- |
436 |
-RDEPEND=" |
437 |
- dev-libs/expat |
438 |
- dev-libs/json-c |
439 |
- dev-libs/libpcre |
440 |
- dev-libs/libxml2 |
441 |
- media-libs/tiff:0= |
442 |
- sci-libs/libgeotiff |
443 |
- sys-libs/zlib[minizip(+)] |
444 |
- armadillo? ( sci-libs/armadillo[lapack] ) |
445 |
- curl? ( net-misc/curl ) |
446 |
- fits? ( sci-libs/cfitsio ) |
447 |
- geos? ( >=sci-libs/geos-2.2.1 ) |
448 |
- gif? ( media-libs/giflib ) |
449 |
- gml? ( >=dev-libs/xerces-c-3 ) |
450 |
- hdf5? ( >=sci-libs/hdf5-1.6.4[szip] ) |
451 |
- java? ( >=virtual/jre-1.6:* ) |
452 |
- jpeg? ( virtual/jpeg:0= ) |
453 |
- jpeg2k? ( media-libs/jasper:= ) |
454 |
- mysql? ( virtual/mysql ) |
455 |
- netcdf? ( sci-libs/netcdf ) |
456 |
- odbc? ( dev-db/unixODBC ) |
457 |
- ogdi? ( sci-libs/ogdi ) |
458 |
- opencl? ( virtual/opencl ) |
459 |
- pdf? ( >=app-text/poppler-0.24.3:= ) |
460 |
- perl? ( dev-lang/perl:= ) |
461 |
- png? ( media-libs/libpng:0= ) |
462 |
- postgres? ( >=dev-db/postgresql-8.4:= ) |
463 |
- python? ( |
464 |
- ${PYTHON_DEPS} |
465 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
466 |
- dev-python/numpy[${PYTHON_USEDEP}] |
467 |
- ) |
468 |
- ruby? ( dev-lang/ruby:1.9 ) |
469 |
- sqlite? ( dev-db/sqlite:3 ) |
470 |
- spatialite? ( dev-db/spatialite ) |
471 |
- xls? ( dev-libs/freexl ) |
472 |
-" |
473 |
- |
474 |
-SWIG_DEP=">=dev-lang/swig-2.0.2" |
475 |
-DEPEND="${RDEPEND} |
476 |
- doc? ( app-doc/doxygen ) |
477 |
- java? ( >=virtual/jdk-1.6 ) |
478 |
- perl? ( ${SWIG_DEP} ) |
479 |
- python? ( ${SWIG_DEP} ) |
480 |
- ruby? ( ${SWIG_DEP} )" |
481 |
- |
482 |
-AT_M4DIR="${S}/m4" |
483 |
-MAKEOPTS+=" -j1" |
484 |
- |
485 |
-REQUIRED_USE=" |
486 |
- spatialite? ( sqlite ) |
487 |
- mdb? ( java ) |
488 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
489 |
-" |
490 |
- |
491 |
-pkg_setup() { |
492 |
- java-pkg-opt-2_pkg_setup |
493 |
-} |
494 |
- |
495 |
-src_prepare() { |
496 |
- java-pkg-opt-2_src_prepare |
497 |
- |
498 |
- # fix datadir and docdir placement |
499 |
- sed -i \ |
500 |
- -e "s:@datadir@:@datadir@/gdal:" \ |
501 |
- -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
502 |
- "${S}"/GDALmake.opt.in || die |
503 |
- |
504 |
- # the second sed expression should fix bug 371075 |
505 |
- sed -i \ |
506 |
- -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \ |
507 |
- -e "s:--prefix=\$(DESTDIR):--prefix=:" \ |
508 |
- "${S}"/swig/python/GNUmakefile || die |
509 |
- |
510 |
- epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch |
511 |
- |
512 |
- # -soname is only accepted by GNU ld/ELF |
513 |
- [[ ${CHOST} == *-darwin* ]] \ |
514 |
- && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \ |
515 |
- || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch |
516 |
- |
517 |
- # Fix spatialite/sqlite include issue |
518 |
- sed -i \ |
519 |
- -e 's:spatialite/sqlite3.h:sqlite3.h:g' \ |
520 |
- ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die |
521 |
- |
522 |
- # Fix freexl configure check |
523 |
- sed -i \ |
524 |
- -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \ |
525 |
- configure.in || die |
526 |
- |
527 |
- sed \ |
528 |
- -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \ |
529 |
- -i configure.in || die |
530 |
- |
531 |
- sed \ |
532 |
- -e 's:^ar:$(AR):g' \ |
533 |
- -i ogr/ogrsf_frmts/sdts/install-libs.sh || die |
534 |
- |
535 |
- # Fix swig-3.0.3 problem (bug #534168) |
536 |
- epatch "${FILESDIR}"/${PN}-1.11.1-swig-3.0.3.patch |
537 |
- |
538 |
- # Fix swig-3.0.6 problem, https://trac.osgeo.org/gdal/ticket/6045 |
539 |
- epatch "${FILESDIR}"/${PN}-1.11-swig-3.0.6.patch |
540 |
- |
541 |
- # bug 540132 |
542 |
- epatch "${FILESDIR}"/${PN}-1.11.1-poppler-0.31.0-support.patch |
543 |
- |
544 |
- tc-export AR RANLIB |
545 |
- |
546 |
- eautoreconf |
547 |
- |
548 |
- prepare_python() { |
549 |
- mkdir -p "${BUILD_DIR}" || die |
550 |
- find "${S}" -type d -maxdepth 1 -exec ln -s {} "${BUILD_DIR}"/ \; ||die |
551 |
- find "${S}" -type f -maxdepth 1 -exec cp --target="${BUILD_DIR}"/ {} + ||die |
552 |
-# mkdir -p "${BUILD_DIR}"/swig/python || die |
553 |
-# mkdir -p "${BUILD_DIR}"/apps || die |
554 |
-# cp -dpR --target="${BUILD_DIR}"/swig/ \ |
555 |
-# "${S}"/swig/{python,SWIGmake.base,GNUmakefile} || die |
556 |
-# ln -s "${S}"/swig/include "${BUILD_DIR}"/swig/ || die |
557 |
-# ln -s "${S}"/apps/gdal-config "${BUILD_DIR}"/apps/ || die |
558 |
-# ln -s "${S}"/port "${BUILD_DIR}"/ || die |
559 |
- } |
560 |
- if use python; then |
561 |
- python_foreach_impl prepare_python |
562 |
- fi |
563 |
-} |
564 |
- |
565 |
-gdal_src_configure() { |
566 |
- local myopts="" |
567 |
- |
568 |
- if use ruby; then |
569 |
- RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')" |
570 |
- echo "Ruby module dir is: $RUBY_MOD_DIR" |
571 |
- fi |
572 |
- |
573 |
- if use java; then |
574 |
- myopts+=" |
575 |
- --with-java=$(java-config --jdk-home 2>/dev/null) |
576 |
- $(use_with mdb)" |
577 |
- else |
578 |
- myopts+=" --without-java --without-mdb" |
579 |
- use mdb && ewarn "mdb requires java use enabled. disabling" |
580 |
- fi |
581 |
- |
582 |
- if use sqlite; then |
583 |
- myopts+=" LIBS=-lsqlite3" |
584 |
- fi |
585 |
- |
586 |
- # pcidsk is internal, because there is no such library yet released |
587 |
- # also that thing is developed by the gdal people |
588 |
- # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore |
589 |
- # bsb - legal issues |
590 |
- # oracle - disabled, i dont have and can't test |
591 |
- # ingres - same story as oracle oci |
592 |
- # podofo - we use poppler instead they are exclusive for each other |
593 |
- # tiff is a hard dep |
594 |
- ECONF_SOURCE="${S}" econf \ |
595 |
- --includedir="${EPREFIX}/usr/include/${PN}" \ |
596 |
- --disable-static \ |
597 |
- --enable-shared \ |
598 |
- --with-expat \ |
599 |
- --with-geotiff \ |
600 |
- --with-grib \ |
601 |
- --with-libtiff \ |
602 |
- --with-libz="${EPREFIX}/usr/" \ |
603 |
- --with-ogr \ |
604 |
- --without-bsb \ |
605 |
- --without-dods-root \ |
606 |
- --without-dwgdirect \ |
607 |
- --without-epsilon \ |
608 |
- --without-fme \ |
609 |
- --without-grass \ |
610 |
- --without-hdf4 \ |
611 |
- --without-idb \ |
612 |
- --without-ingres \ |
613 |
- --without-jp2mrsid \ |
614 |
- --without-kakadu \ |
615 |
- --without-libtool \ |
616 |
- --without-mrsid \ |
617 |
- --without-msg \ |
618 |
- --without-oci \ |
619 |
- --without-pcraster \ |
620 |
- --without-podofo \ |
621 |
- --without-sde \ |
622 |
- $(use_enable debug) \ |
623 |
- $(use_with armadillo) \ |
624 |
- $(use_with aux_xml pam) \ |
625 |
- $(use_with curl) \ |
626 |
- --without-ecw \ |
627 |
- $(use_with fits cfitsio) \ |
628 |
- $(use_with geos) \ |
629 |
- $(use_with gif) \ |
630 |
- $(use_with gml xerces) \ |
631 |
- $(use_with hdf5) \ |
632 |
- $(use_with jpeg pcidsk) \ |
633 |
- $(use_with jpeg) \ |
634 |
- $(use_with jpeg2k jasper) \ |
635 |
- $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \ |
636 |
- $(use_with netcdf) \ |
637 |
- $(use_with odbc) \ |
638 |
- $(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
639 |
- $(use_with opencl) \ |
640 |
- $(use_with pdf poppler) \ |
641 |
- $(use_with perl) \ |
642 |
- $(use_with png) \ |
643 |
- $(use_with postgres pg) \ |
644 |
- $(use_with python) \ |
645 |
- $(use_with ruby) \ |
646 |
- $(use_with spatialite) \ |
647 |
- $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \ |
648 |
- $(use_with threads) \ |
649 |
- $(use_with xls freexl) \ |
650 |
- ${myopts} |
651 |
- |
652 |
- # mysql-config puts this in (and boy is it a PITA to get it out) |
653 |
- if use mysql; then |
654 |
- sed -i \ |
655 |
- -e "s: -rdynamic : :" \ |
656 |
- GDALmake.opt || die "sed LIBS failed" |
657 |
- fi |
658 |
- |
659 |
- if [[ -n $use_python ]]; then |
660 |
- # updated for newer swig (must specify the path to input files) |
661 |
- sed -i \ |
662 |
- -e "s: gdal_array.i: ../include/gdal_array.i:" \ |
663 |
- -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
664 |
- swig/python/GNUmakefile || die "sed python makefile failed" |
665 |
- sed -i \ |
666 |
- -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \ |
667 |
- swig/python/setup.cfg || die "sed python setup.cfg failed" |
668 |
-# -e "s:gdal_config=.*$:gdal_config=../../../apps/gdal-config:g" \ |
669 |
- fi |
670 |
-} |
671 |
- |
672 |
-src_configure() { |
673 |
- local use_python="" |
674 |
- |
675 |
- gdal_src_configure |
676 |
- |
677 |
- if use python; then |
678 |
- use_python="yes" |
679 |
- python_foreach_impl run_in_build_dir gdal_src_configure |
680 |
- fi |
681 |
-} |
682 |
- |
683 |
-src_compile() { |
684 |
- local i |
685 |
- for i in perl ruby; do |
686 |
- if use $i; then |
687 |
- rm "${S}"/swig/$i/*_wrap.cpp |
688 |
- emake -C "${S}"/swig/$i generate |
689 |
- fi |
690 |
- done |
691 |
- |
692 |
- default |
693 |
- |
694 |
- if use perl ; then |
695 |
- pushd "${S}"/swig/perl > /dev/null |
696 |
- perl-module_src_configure |
697 |
- perl-module_src_compile |
698 |
- popd > /dev/null |
699 |
- fi |
700 |
- |
701 |
- use doc && emake docs |
702 |
- |
703 |
- compile_python() { |
704 |
- rm -f swig/python/*_wrap.cpp |
705 |
- emake -C swig/python generate |
706 |
- emake -C swig/python build |
707 |
- } |
708 |
- if use python; then |
709 |
- python_foreach_impl run_in_build_dir compile_python |
710 |
- fi |
711 |
-} |
712 |
- |
713 |
-src_install() { |
714 |
- if use perl ; then |
715 |
- pushd "${S}"/swig/perl > /dev/null |
716 |
- perl-module_src_install |
717 |
- popd > /dev/null |
718 |
- sed -i \ |
719 |
- -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \ |
720 |
- GDALmake.opt || die |
721 |
- fi |
722 |
- |
723 |
- default |
724 |
- |
725 |
- if use ruby ; then |
726 |
- # weird reinstall collision; needs manual intervention... |
727 |
- pushd "${S}"/swig/ruby > /dev/null |
728 |
- rm -rf "${D}"${RUBY_MOD_DIR}/gdal |
729 |
- exeinto ${RUBY_MOD_DIR}/gdal |
730 |
- doexe *.so || die "doins ruby modules failed" |
731 |
- popd > /dev/null |
732 |
- fi |
733 |
- |
734 |
- use perl && perl_delete_localpod |
735 |
- |
736 |
- dodoc Doxyfile HOWTO-RELEASE NEWS |
737 |
- |
738 |
- if use doc ; then |
739 |
- dohtml html/* |
740 |
- docinto ogr |
741 |
- dohtml ogr/html/* |
742 |
- fi |
743 |
- |
744 |
- install_python() { |
745 |
- emake -C swig/python DESTDIR="${D}" install |
746 |
- } |
747 |
- if use python; then |
748 |
- python_foreach_impl run_in_build_dir install_python |
749 |
- newdoc swig/python/README.txt README-python.txt |
750 |
- insinto /usr/share/${PN}/samples |
751 |
- doins swig/python/samples/* |
752 |
- python_replicate_script "${ED}"/usr/bin/*py |
753 |
- fi |
754 |
- |
755 |
- pushd man/man1 > /dev/null |
756 |
- for i in * ; do |
757 |
- newman ${i} ${i} |
758 |
- done |
759 |
- popd > /dev/null |
760 |
-} |
761 |
- |
762 |
-pkg_postinst() { |
763 |
- elog "Check available image and data formats after building with" |
764 |
- elog "gdalinfo and ogrinfo (using the --formats switch)." |
765 |
-} |
766 |
|
767 |
diff --git a/sci-libs/gdal/gdal-1.11.2-r1.ebuild b/sci-libs/gdal/gdal-1.11.2-r1.ebuild |
768 |
deleted file mode 100644 |
769 |
index 8cea1f6257c..00000000000 |
770 |
--- a/sci-libs/gdal/gdal-1.11.2-r1.ebuild |
771 |
+++ /dev/null |
772 |
@@ -1,349 +0,0 @@ |
773 |
-# Copyright 1999-2017 Gentoo Foundation |
774 |
-# Distributed under the terms of the GNU General Public License v2 |
775 |
- |
776 |
-EAPI=5 |
777 |
- |
778 |
-WANT_AUTOCONF="2.5" |
779 |
- |
780 |
-GENTOO_DEPEND_ON_PERL="no" |
781 |
-PYTHON_COMPAT=( python2_7 python3_4 ) |
782 |
-DISTUTILS_OPTIONAL=1 |
783 |
- |
784 |
-inherit autotools eutils libtool perl-module distutils-r1 python-r1 toolchain-funcs java-pkg-opt-2 |
785 |
- |
786 |
-DESCRIPTION="Translator library for raster geospatial data formats (includes OGR support)" |
787 |
-HOMEPAGE="http://www.gdal.org/" |
788 |
-SRC_URI="http://download.osgeo.org/${PN}/${PV}/${P}.tar.gz" |
789 |
- |
790 |
-SLOT="0" |
791 |
-LICENSE="BSD Info-ZIP MIT" |
792 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
793 |
-IUSE="armadillo +aux_xml curl debug doc fits geos gif gml hdf5 java jpeg jpeg2k mdb mysql netcdf odbc ogdi opencl pdf perl png postgres python ruby spatialite sqlite threads xls" |
794 |
- |
795 |
-RDEPEND=" |
796 |
- dev-libs/expat |
797 |
- dev-libs/json-c |
798 |
- dev-libs/libpcre |
799 |
- dev-libs/libxml2 |
800 |
- media-libs/tiff:0= |
801 |
- sci-libs/libgeotiff |
802 |
- sys-libs/zlib[minizip(+)] |
803 |
- armadillo? ( sci-libs/armadillo[lapack] ) |
804 |
- curl? ( net-misc/curl ) |
805 |
- fits? ( sci-libs/cfitsio ) |
806 |
- geos? ( >=sci-libs/geos-2.2.1 ) |
807 |
- gif? ( media-libs/giflib ) |
808 |
- gml? ( >=dev-libs/xerces-c-3 ) |
809 |
- hdf5? ( >=sci-libs/hdf5-1.6.4[szip] ) |
810 |
- java? ( >=virtual/jre-1.6:* ) |
811 |
- jpeg? ( virtual/jpeg:0= ) |
812 |
- jpeg2k? ( media-libs/jasper:= ) |
813 |
- mysql? ( virtual/mysql ) |
814 |
- netcdf? ( sci-libs/netcdf ) |
815 |
- odbc? ( dev-db/unixODBC ) |
816 |
- ogdi? ( sci-libs/ogdi ) |
817 |
- opencl? ( virtual/opencl ) |
818 |
- pdf? ( >=app-text/poppler-0.24.3:= ) |
819 |
- perl? ( dev-lang/perl:= ) |
820 |
- png? ( media-libs/libpng:0= ) |
821 |
- postgres? ( >=dev-db/postgresql-8.4:= ) |
822 |
- python? ( |
823 |
- ${PYTHON_DEPS} |
824 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
825 |
- dev-python/numpy[${PYTHON_USEDEP}] |
826 |
- ) |
827 |
- ruby? ( dev-lang/ruby:1.9 ) |
828 |
- sqlite? ( dev-db/sqlite:3 ) |
829 |
- spatialite? ( dev-db/spatialite ) |
830 |
- xls? ( dev-libs/freexl ) |
831 |
-" |
832 |
- |
833 |
-SWIG_DEP=">=dev-lang/swig-2.0.2" |
834 |
-DEPEND="${RDEPEND} |
835 |
- doc? ( app-doc/doxygen ) |
836 |
- java? ( >=virtual/jdk-1.6 ) |
837 |
- perl? ( ${SWIG_DEP} ) |
838 |
- python? ( ${SWIG_DEP} ) |
839 |
- ruby? ( ${SWIG_DEP} )" |
840 |
- |
841 |
-AT_M4DIR="${S}/m4" |
842 |
-MAKEOPTS+=" -j1" |
843 |
- |
844 |
-REQUIRED_USE=" |
845 |
- spatialite? ( sqlite ) |
846 |
- mdb? ( java ) |
847 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
848 |
-" |
849 |
- |
850 |
-pkg_setup() { |
851 |
- java-pkg-opt-2_pkg_setup |
852 |
-} |
853 |
- |
854 |
-src_prepare() { |
855 |
- java-pkg-opt-2_src_prepare |
856 |
- |
857 |
- # fix datadir and docdir placement |
858 |
- sed -i \ |
859 |
- -e "s:@datadir@:@datadir@/gdal:" \ |
860 |
- -e "s:@exec_prefix@/doc:@exec_prefix@/share/doc/${PF}/html:g" \ |
861 |
- "${S}"/GDALmake.opt.in || die |
862 |
- |
863 |
- # the second sed expression should fix bug 371075 |
864 |
- sed -i \ |
865 |
- -e "s:setup.py install:setup.py install --root=\$(DESTDIR):" \ |
866 |
- -e "s:--prefix=\$(DESTDIR):--prefix=:" \ |
867 |
- "${S}"/swig/python/GNUmakefile || die |
868 |
- |
869 |
- epatch "${FILESDIR}"/${PN}-1.10.0-ruby-makefile.patch |
870 |
- |
871 |
- # -soname is only accepted by GNU ld/ELF |
872 |
- [[ ${CHOST} == *-darwin* ]] \ |
873 |
- && epatch "${FILESDIR}"/${PN}-1.5.0-install_name.patch \ |
874 |
- || epatch "${FILESDIR}"/${PN}-1.5.0-soname.patch |
875 |
- |
876 |
- # Fix spatialite/sqlite include issue |
877 |
- sed -i \ |
878 |
- -e 's:spatialite/sqlite3.h:sqlite3.h:g' \ |
879 |
- ogr/ogrsf_frmts/sqlite/ogr_sqlite.h || die |
880 |
- |
881 |
- # Fix freexl configure check |
882 |
- sed -i \ |
883 |
- -e 's:FREEXL_LIBS=missing):FREEXL_LIBS=missing,-lm):g' \ |
884 |
- configure.in || die |
885 |
- |
886 |
- sed \ |
887 |
- -e "s: /usr/: \"${EPREFIX}\"/usr/:g" \ |
888 |
- -i configure.in || die |
889 |
- |
890 |
- sed \ |
891 |
- -e 's:^ar:$(AR):g' \ |
892 |
- -i ogr/ogrsf_frmts/sdts/install-libs.sh || die |
893 |
- |
894 |
- # bug 540132 |
895 |
- epatch "${FILESDIR}"/${PN}-1.11.1-poppler-0.31.0-support.patch |
896 |
- |
897 |
- # Fix swig-3.0.6 problem, https://trac.osgeo.org/gdal/ticket/6045 |
898 |
- epatch "${FILESDIR}"/${PN}-1.11-swig-3.0.6.patch |
899 |
- |
900 |
- tc-export AR RANLIB |
901 |
- |
902 |
- eautoreconf |
903 |
- |
904 |
- prepare_python() { |
905 |
- mkdir -p "${BUILD_DIR}" || die |
906 |
- find "${S}" -type d -maxdepth 1 -exec ln -s {} "${BUILD_DIR}"/ \; ||die |
907 |
- find "${S}" -type f -maxdepth 1 -exec cp --target="${BUILD_DIR}"/ {} + ||die |
908 |
-# mkdir -p "${BUILD_DIR}"/swig/python || die |
909 |
-# mkdir -p "${BUILD_DIR}"/apps || die |
910 |
-# cp -dpR --target="${BUILD_DIR}"/swig/ \ |
911 |
-# "${S}"/swig/{python,SWIGmake.base,GNUmakefile} || die |
912 |
-# ln -s "${S}"/swig/include "${BUILD_DIR}"/swig/ || die |
913 |
-# ln -s "${S}"/apps/gdal-config "${BUILD_DIR}"/apps/ || die |
914 |
-# ln -s "${S}"/port "${BUILD_DIR}"/ || die |
915 |
- } |
916 |
- if use python; then |
917 |
- python_foreach_impl prepare_python |
918 |
- fi |
919 |
-} |
920 |
- |
921 |
-gdal_src_configure() { |
922 |
- local myopts="" |
923 |
- |
924 |
- if use ruby; then |
925 |
- RUBY_MOD_DIR="$(ruby19 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')" |
926 |
- echo "Ruby module dir is: $RUBY_MOD_DIR" |
927 |
- fi |
928 |
- |
929 |
- if use java; then |
930 |
- myopts+=" |
931 |
- --with-java=$(java-config --jdk-home 2>/dev/null) |
932 |
- $(use_with mdb)" |
933 |
- else |
934 |
- myopts+=" --without-java --without-mdb" |
935 |
- use mdb && ewarn "mdb requires java use enabled. disabling" |
936 |
- fi |
937 |
- |
938 |
- if use sqlite; then |
939 |
- myopts+=" LIBS=-lsqlite3" |
940 |
- fi |
941 |
- |
942 |
- # pcidsk is internal, because there is no such library yet released |
943 |
- # also that thing is developed by the gdal people |
944 |
- # kakadu, mrsid jp2mrsid - another jpeg2k stuff, ignore |
945 |
- # bsb - legal issues |
946 |
- # oracle - disabled, i dont have and can't test |
947 |
- # ingres - same story as oracle oci |
948 |
- # podofo - we use poppler instead they are exclusive for each other |
949 |
- # tiff is a hard dep |
950 |
- ECONF_SOURCE="${S}" econf \ |
951 |
- --includedir="${EPREFIX}/usr/include/${PN}" \ |
952 |
- --disable-static \ |
953 |
- --enable-shared \ |
954 |
- --with-expat \ |
955 |
- --with-geotiff \ |
956 |
- --with-grib \ |
957 |
- --with-libtiff \ |
958 |
- --with-libz="${EPREFIX}/usr/" \ |
959 |
- --with-ogr \ |
960 |
- --without-bsb \ |
961 |
- --without-dods-root \ |
962 |
- --without-dwgdirect \ |
963 |
- --without-epsilon \ |
964 |
- --without-fme \ |
965 |
- --without-grass \ |
966 |
- --without-hdf4 \ |
967 |
- --without-idb \ |
968 |
- --without-ingres \ |
969 |
- --without-jp2mrsid \ |
970 |
- --without-kakadu \ |
971 |
- --without-libtool \ |
972 |
- --without-mrsid \ |
973 |
- --without-msg \ |
974 |
- --without-oci \ |
975 |
- --without-pcraster \ |
976 |
- --without-podofo \ |
977 |
- --without-sde \ |
978 |
- $(use_enable debug) \ |
979 |
- $(use_with armadillo) \ |
980 |
- $(use_with aux_xml pam) \ |
981 |
- $(use_with curl) \ |
982 |
- --without-ecw \ |
983 |
- $(use_with fits cfitsio) \ |
984 |
- $(use_with geos) \ |
985 |
- $(use_with gif) \ |
986 |
- $(use_with gml xerces) \ |
987 |
- $(use_with hdf5) \ |
988 |
- $(use_with jpeg pcidsk) \ |
989 |
- $(use_with jpeg) \ |
990 |
- $(use_with jpeg2k jasper) \ |
991 |
- $(use_with mysql mysql "${EPREFIX}"/usr/bin/mysql_config) \ |
992 |
- $(use_with netcdf) \ |
993 |
- $(use_with odbc) \ |
994 |
- $(use_with ogdi ogdi "${EPREFIX}"/usr) \ |
995 |
- $(use_with opencl) \ |
996 |
- $(use_with pdf poppler) \ |
997 |
- $(use_with perl) \ |
998 |
- $(use_with png) \ |
999 |
- $(use_with postgres pg) \ |
1000 |
- $(use_with python) \ |
1001 |
- $(use_with ruby) \ |
1002 |
- $(use_with spatialite) \ |
1003 |
- $(use_with sqlite sqlite3 "${EPREFIX}"/usr) \ |
1004 |
- $(use_with threads) \ |
1005 |
- $(use_with xls freexl) \ |
1006 |
- ${myopts} |
1007 |
- |
1008 |
- # mysql-config puts this in (and boy is it a PITA to get it out) |
1009 |
- if use mysql; then |
1010 |
- sed -i \ |
1011 |
- -e "s: -rdynamic : :" \ |
1012 |
- GDALmake.opt || die "sed LIBS failed" |
1013 |
- fi |
1014 |
- |
1015 |
- if [[ -n $use_python ]]; then |
1016 |
- # updated for newer swig (must specify the path to input files) |
1017 |
- sed -i \ |
1018 |
- -e "s: gdal_array.i: ../include/gdal_array.i:" \ |
1019 |
- -e "s:\$(DESTDIR)\$(prefix):\$(DESTDIR)\$(INST_PREFIX):g" \ |
1020 |
- swig/python/GNUmakefile || die "sed python makefile failed" |
1021 |
- sed -i \ |
1022 |
- -e "s:library_dirs = :library_dirs = /usr/$(get_libdir):g" \ |
1023 |
- swig/python/setup.cfg || die "sed python setup.cfg failed" |
1024 |
-# -e "s:gdal_config=.*$:gdal_config=../../../apps/gdal-config:g" \ |
1025 |
- fi |
1026 |
-} |
1027 |
- |
1028 |
-src_configure() { |
1029 |
- local use_python="" |
1030 |
- |
1031 |
- gdal_src_configure |
1032 |
- |
1033 |
- if use python; then |
1034 |
- use_python="yes" |
1035 |
- python_foreach_impl run_in_build_dir gdal_src_configure |
1036 |
- fi |
1037 |
-} |
1038 |
- |
1039 |
-src_compile() { |
1040 |
- local i |
1041 |
- for i in perl ruby; do |
1042 |
- if use $i; then |
1043 |
- rm "${S}"/swig/$i/*_wrap.cpp |
1044 |
- emake -C "${S}"/swig/$i generate |
1045 |
- fi |
1046 |
- done |
1047 |
- |
1048 |
- default |
1049 |
- |
1050 |
- if use perl ; then |
1051 |
- pushd "${S}"/swig/perl > /dev/null |
1052 |
- perl-module_src_configure |
1053 |
- perl-module_src_compile |
1054 |
- popd > /dev/null |
1055 |
- fi |
1056 |
- |
1057 |
- use doc && emake docs |
1058 |
- |
1059 |
- compile_python() { |
1060 |
- rm -f swig/python/*_wrap.cpp |
1061 |
- emake -C swig/python generate |
1062 |
- emake -C swig/python build |
1063 |
- } |
1064 |
- if use python; then |
1065 |
- python_foreach_impl run_in_build_dir compile_python |
1066 |
- fi |
1067 |
-} |
1068 |
- |
1069 |
-src_install() { |
1070 |
- if use perl ; then |
1071 |
- pushd "${S}"/swig/perl > /dev/null |
1072 |
- perl-module_src_install |
1073 |
- popd > /dev/null |
1074 |
- sed -i \ |
1075 |
- -e "s:BINDINGS = python ruby perl:BINDINGS = python ruby:g" \ |
1076 |
- GDALmake.opt || die |
1077 |
- fi |
1078 |
- |
1079 |
- default |
1080 |
- |
1081 |
- if use ruby ; then |
1082 |
- # weird reinstall collision; needs manual intervention... |
1083 |
- pushd "${S}"/swig/ruby > /dev/null |
1084 |
- rm -rf "${D}"${RUBY_MOD_DIR}/gdal |
1085 |
- exeinto ${RUBY_MOD_DIR}/gdal |
1086 |
- doexe *.so || die "doins ruby modules failed" |
1087 |
- popd > /dev/null |
1088 |
- fi |
1089 |
- |
1090 |
- use perl && perl_delete_localpod |
1091 |
- |
1092 |
- dodoc Doxyfile HOWTO-RELEASE NEWS |
1093 |
- |
1094 |
- if use doc ; then |
1095 |
- dohtml html/* |
1096 |
- docinto ogr |
1097 |
- dohtml ogr/html/* |
1098 |
- fi |
1099 |
- |
1100 |
- install_python() { |
1101 |
- emake -C swig/python DESTDIR="${D}" install |
1102 |
- } |
1103 |
- if use python; then |
1104 |
- python_foreach_impl run_in_build_dir install_python |
1105 |
- newdoc swig/python/README.txt README-python.txt |
1106 |
- insinto /usr/share/${PN}/samples |
1107 |
- doins swig/python/samples/* |
1108 |
- python_replicate_script "${ED}"/usr/bin/*py |
1109 |
- fi |
1110 |
- |
1111 |
- pushd man/man1 > /dev/null |
1112 |
- for i in * ; do |
1113 |
- newman ${i} ${i} |
1114 |
- done |
1115 |
- popd > /dev/null |
1116 |
-} |
1117 |
- |
1118 |
-pkg_postinst() { |
1119 |
- elog "Check available image and data formats after building with" |
1120 |
- elog "gdalinfo and ogrinfo (using the --formats switch)." |
1121 |
-} |