1 |
commit: 92a6aec7d300f7681223194ea170a71db5ef7258 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 22:34:14 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 00:20:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92a6aec7 |
7 |
|
8 |
sci-libs/ogdi: Drop 3.2.0_beta2 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
sci-libs/ogdi/Manifest | 1 - |
14 |
sci-libs/ogdi/files/ogdi-3.1.6-fpic.patch | 38 --- |
15 |
sci-libs/ogdi/files/ogdi-3.2.0_beta2-64b.patch | 11 - |
16 |
.../ogdi/files/ogdi-3.2.0_beta2-endianess.patch | 18 -- |
17 |
sci-libs/ogdi/files/ogdi-3.2.0_beta2-proj480.patch | 297 --------------------- |
18 |
sci-libs/ogdi/ogdi-3.2.0_beta2.ebuild | 66 ----- |
19 |
6 files changed, 431 deletions(-) |
20 |
|
21 |
diff --git a/sci-libs/ogdi/Manifest b/sci-libs/ogdi/Manifest |
22 |
index d2b94841f4a..e10d38f7e8a 100644 |
23 |
--- a/sci-libs/ogdi/Manifest |
24 |
+++ b/sci-libs/ogdi/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
-DIST ogdi-3.2.0.beta2.tar.gz 956839 BLAKE2B d0729d42f3224d9911bb09f8cf2f150204950739547bf8ed5349c8ed63e7ab7a4e17298fe8bbf45fc17f5781e86925ab35d8356d396ffe7f35a4cf20803fce04 SHA512 2159dfd010be9da63cf009beee7f6571cd13c4f08d1a69a5d945dd64878347b28455eb5376f184e2d91fa4a3bd409446ccbd706aa9000d3d7d2ac4b6e30ced93 |
27 |
DIST ogdi-3.2.0.tar.gz 976004 BLAKE2B 535f05b3145c49ce72adcd86cd9ded1c8d8d12e051feb4e1898d8ddabbff1cf27f609326ccdb3a1cbff523b277f99e9d8c3678d2ed565dd81e6c5d956ed2dcca SHA512 b29d52b733c15927d2c93df10632d9bf6288614b944c02a5e1a67f3f971263bcb07460b301fb5db389ed15fc5f38a1f3c0263c4b1441f2ea4809bb61b3e67ef0 |
28 |
|
29 |
diff --git a/sci-libs/ogdi/files/ogdi-3.1.6-fpic.patch b/sci-libs/ogdi/files/ogdi-3.1.6-fpic.patch |
30 |
deleted file mode 100644 |
31 |
index f6fbc85e5ae..00000000000 |
32 |
--- a/sci-libs/ogdi/files/ogdi-3.1.6-fpic.patch |
33 |
+++ /dev/null |
34 |
@@ -1,38 +0,0 @@ |
35 |
-diff --git a/config/generic.mak.in b/config/generic.mak.in |
36 |
-index 1cb74f5..2e9cabe 100644 |
37 |
---- a/config/generic.mak.in |
38 |
-+++ b/config/generic.mak.in |
39 |
-@@ -35,16 +35,16 @@ AR = ar cr |
40 |
- # Compilation and linking flags |
41 |
- # |
42 |
- SHLIB_CFLAGS = @C_PIC@ |
43 |
--COMMON_CFLAGS = $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1 |
44 |
-+COMMON_CFLAGS = $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1 @C_PIC@ |
45 |
- |
46 |
--SHLIB_LDFLAGS = -shared |
47 |
--COMMON_LDFLAGS = $(OPTIMIZATION) |
48 |
-+SHLIB_LDFLAGS = -shared -Wl,-soname,$(LIB_PREFIX)$(TOBEGEN).$(SHLIB_EXT).$(OGDI_MAJOR) |
49 |
-+COMMON_LDFLAGS = $(OPTIMIZATION) $(LDFLAGS) |
50 |
- |
51 |
- RPC_INCLUDES = @RPC_INCLUDES@ |
52 |
- |
53 |
- UCB_STATICLIB = |
54 |
- |
55 |
--TCL_INCLUDE = -I/usr/include/tcl8.3 |
56 |
-+TCL_INCLUDE = -I${prefix}/include |
57 |
- TCL_LINKLIB = |
58 |
- |
59 |
- # |
60 |
-diff --git a/config/unix.mak b/config/unix.mak |
61 |
-index e3af578..927b0fc 100644 |
62 |
---- a/config/unix.mak |
63 |
-+++ b/config/unix.mak |
64 |
-@@ -55,7 +55,7 @@ LINK_SW = -L |
65 |
- ifeq ($(CFG),debug) |
66 |
- OPTIMIZATION = -g |
67 |
- else |
68 |
--OPTIMIZATION = -O |
69 |
-+OPTIMIZATION = |
70 |
- endif |
71 |
- |
72 |
- # |
73 |
|
74 |
diff --git a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-64b.patch b/sci-libs/ogdi/files/ogdi-3.2.0_beta2-64b.patch |
75 |
deleted file mode 100644 |
76 |
index 16c40b2ff43..00000000000 |
77 |
--- a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-64b.patch |
78 |
+++ /dev/null |
79 |
@@ -1,11 +0,0 @@ |
80 |
---- ogdi.old/ogdi/driver/vrf/feature.c 2007/05/09 20:46:28 1.16 |
81 |
-+++ ogdi/ogdi/driver/vrf/feature.c 2009/05/08 04:15:50 1.17 |
82 |
-@@ -1347,7 +1350,7 @@ |
83 |
- short int temp4; |
84 |
- int temp5; |
85 |
- date_type temp6; |
86 |
-- long count; |
87 |
-+ int32 count; |
88 |
- |
89 |
- if (returnString != NULL) { |
90 |
- free(returnString); |
91 |
|
92 |
diff --git a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-endianess.patch b/sci-libs/ogdi/files/ogdi-3.2.0_beta2-endianess.patch |
93 |
deleted file mode 100644 |
94 |
index 75c85fbb29b..00000000000 |
95 |
--- a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-endianess.patch |
96 |
+++ /dev/null |
97 |
@@ -1,18 +0,0 @@ |
98 |
-diff -urNad ogdi-dfsg~/vpflib/include/machine.h ogdi-dfsg/vpflib/include/machine.h |
99 |
---- ogdi-dfsg~/vpflib/include/machine.h 2007-03-27 17:35:24.000000000 +0200 |
100 |
-+++ ogdi-dfsg/vpflib/include/machine.h 2007-03-27 17:41:16.000000000 +0200 |
101 |
-@@ -15,10 +15,11 @@ |
102 |
- long output; |
103 |
- } xBYTE_ORDER; |
104 |
- |
105 |
--#if SYS_BIG_ENDIAN == 1 |
106 |
--#define MACHINE_BYTE_ORDER MOST_SIGNIFICANT |
107 |
--#else |
108 |
-+#include <endian.h> |
109 |
-+#if __BYTE_ORDER == __LITTLE_ENDIAN |
110 |
- #define MACHINE_BYTE_ORDER LEAST_SIGNIFICANT |
111 |
-+#elif __BYTE_ORDER == __BIG_ENDIAN |
112 |
-+#define MACHINE_BYTE_ORDER MOST_SIGNIFICANT |
113 |
- #endif |
114 |
- |
115 |
- #ifdef _WINDOWS |
116 |
|
117 |
diff --git a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-proj480.patch b/sci-libs/ogdi/files/ogdi-3.2.0_beta2-proj480.patch |
118 |
deleted file mode 100644 |
119 |
index 9380f91ffd3..00000000000 |
120 |
--- a/sci-libs/ogdi/files/ogdi-3.2.0_beta2-proj480.patch |
121 |
+++ /dev/null |
122 |
@@ -1,297 +0,0 @@ |
123 |
-Index: ogdi-dfsg/configure |
124 |
-=================================================================== |
125 |
---- ogdi-dfsg.orig/configure |
126 |
-+++ ogdi-dfsg/configure |
127 |
-@@ -3939,7 +3939,7 @@ |
128 |
- fi |
129 |
- |
130 |
- |
131 |
--for ac_header in projects.h |
132 |
-+for ac_header in proj_api.h |
133 |
- do |
134 |
- as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
135 |
- if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
136 |
-@@ -4085,8 +4085,8 @@ |
137 |
- { (exit 1); exit 1; }; } |
138 |
- fi |
139 |
- if test "$ac_cv_header_projects_h" = no ; then |
140 |
-- { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&5 |
141 |
--echo "$as_me: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&2;} |
142 |
-+ { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&5 |
143 |
-+echo "$as_me: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&2;} |
144 |
- { (exit 1); exit 1; }; } |
145 |
- fi |
146 |
- |
147 |
-@@ -4095,12 +4095,12 @@ |
148 |
- |
149 |
- elif test "$with_proj" != "no" -a "$with_proj" != "" ; then |
150 |
- |
151 |
-- if test -r $with_proj/include/projects.h ; then |
152 |
-- echo "checking for $with_proj/include/projects.h ... found" |
153 |
-+ if test -r $with_proj/include/proj_api.h ; then |
154 |
-+ echo "checking for $with_proj/include/proj_api.h ... found" |
155 |
- PROJ_INCLUDE=-I$with_proj/include |
156 |
- else |
157 |
-- { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/projects.h" >&5 |
158 |
--echo "$as_me: error: Unable to find $with_proj/include/projects.h" >&2;} |
159 |
-+ { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/proj_api.h" >&5 |
160 |
-+echo "$as_me: error: Unable to find $with_proj/include/proj_api.h" >&2;} |
161 |
- { (exit 1); exit 1; }; } |
162 |
- fi |
163 |
- |
164 |
-Index: ogdi-dfsg/configure.in |
165 |
-=================================================================== |
166 |
---- ogdi-dfsg.orig/configure.in |
167 |
-+++ ogdi-dfsg/configure.in |
168 |
-@@ -81,13 +81,13 @@ |
169 |
- if test "$with_proj" = "yes" ; then |
170 |
- |
171 |
- AC_CHECK_LIB(proj,pj_init,PROJ_SETTING=external,PROJ_SETTING=missing,) |
172 |
-- AC_CHECK_HEADERS(projects.h) |
173 |
-+ AC_CHECK_HEADERS(proj_api.h) |
174 |
- |
175 |
- if test $PROJ_SETTING = missing ; then |
176 |
- AC_MSG_ERROR([Unable to find external PROJ.4 library, give path or use default internal library.]) |
177 |
- fi |
178 |
- if test "$ac_cv_header_projects_h" = no ; then |
179 |
-- AC_MSG_ERROR([Unable to find external PROJ.4 projects.h file, give path or use default internal library.]) |
180 |
-+ AC_MSG_ERROR([Unable to find external PROJ.4 proj_api.h file, give path or use default internal library.]) |
181 |
- fi |
182 |
- |
183 |
- PROJ_SETTING=external |
184 |
-@@ -95,11 +95,11 @@ |
185 |
- |
186 |
- elif test "$with_proj" != "no" -a "$with_proj" != "" ; then |
187 |
- |
188 |
-- if test -r $with_proj/include/projects.h ; then |
189 |
-- echo "checking for $with_proj/include/projects.h ... found" |
190 |
-+ if test -r $with_proj/include/projapi.h ; then |
191 |
-+ echo "checking for $with_proj/include/proj_api.h ... found" |
192 |
- PROJ_INCLUDE=-I$with_proj/include |
193 |
- else |
194 |
-- AC_MSG_ERROR([Unable to find $with_proj/include/projects.h]) |
195 |
-+ AC_MSG_ERROR([Unable to find $with_proj/include/proj_api.h]) |
196 |
- fi |
197 |
- |
198 |
- if test -r $with_proj/lib/libproj.so ; then |
199 |
-Index: ogdi-dfsg/ogdi/c-api/client.c |
200 |
-=================================================================== |
201 |
---- ogdi-dfsg.orig/ogdi/c-api/client.c |
202 |
-+++ ogdi-dfsg/ogdi/c-api/client.c |
203 |
-@@ -1576,7 +1576,7 @@ |
204 |
- char *error_message; |
205 |
- ecs_CtlPoints *cpts; |
206 |
- ecs_Result *res; |
207 |
-- PJ *tempproj; |
208 |
-+ projPJ tempproj; |
209 |
- |
210 |
- if (multiblock != 0) { |
211 |
- res = &cln_dummy_result; |
212 |
-@@ -1598,7 +1598,7 @@ |
213 |
- /* Check if the projection is valid */ |
214 |
- |
215 |
- if (strncmp(projection,PROJ_LONGLAT,13) != 0) { |
216 |
-- tempproj = (PJ *) cln_ProjInit(projection); |
217 |
-+ tempproj = (projPJ) cln_ProjInit(projection); |
218 |
- if(tempproj == NULL) { |
219 |
- res = &cln_dummy_result; |
220 |
- ecs_SetError(res,1,"This projection string is invalid"); |
221 |
-@@ -1775,7 +1775,7 @@ |
222 |
- ecs_Result *res; |
223 |
- register ecs_Client *cln; |
224 |
- char *server_proj; |
225 |
-- PJ *oldtarget,*oldsource; |
226 |
-+ projPJ oldtarget,oldsource; |
227 |
- ecs_Region oldreg; |
228 |
- int oldisprojequal; |
229 |
- int oldisTargetLL; |
230 |
-@@ -1874,7 +1874,7 @@ |
231 |
- |
232 |
- if (strncmp(projection,PROJ_LONGLAT,13) != 0) { |
233 |
- cln->isTargetLL = FALSE; |
234 |
-- cln->target = (PJ *) cln_ProjInit(projection); |
235 |
-+ cln->target = (projPJ) cln_ProjInit(projection); |
236 |
- if(cln->target == NULL) { |
237 |
- goto setprojerror; |
238 |
- } |
239 |
-@@ -1920,7 +1920,7 @@ |
240 |
- |
241 |
- if (strncmp(server_proj,PROJ_LONGLAT,13) != 0) { |
242 |
- cln->isSourceLL = FALSE; |
243 |
-- cln->source = (PJ *) cln_ProjInit(server_proj); |
244 |
-+ cln->source = (projPJ) cln_ProjInit(server_proj); |
245 |
- if(cln->source == NULL) { |
246 |
- goto setprojerror; |
247 |
- } |
248 |
-@@ -2328,13 +2328,13 @@ |
249 |
- * char *d: Projection name |
250 |
- * |
251 |
- * OUT |
252 |
-- * return PJ *: New projection structure. If NULL, the operation |
253 |
-+ * return projPJ: New projection structure. If NULL, the operation |
254 |
- * is a failure. |
255 |
- * |
256 |
- *---------------------------------------------------------------------- |
257 |
- */ |
258 |
- |
259 |
--PJ *cln_ProjInit(d) |
260 |
-+projPJ cln_ProjInit(d) |
261 |
- char *d; |
262 |
- { |
263 |
- int i,n; |
264 |
-@@ -2343,7 +2343,7 @@ |
265 |
- char *l; |
266 |
- int longueur; |
267 |
- char *c; |
268 |
-- PJ *retour; |
269 |
-+ projPJ retour; |
270 |
- |
271 |
- if ((c = (char *) malloc(strlen(d)+3)) == NULL) { |
272 |
- return NULL; |
273 |
-@@ -2378,7 +2378,7 @@ |
274 |
- n++; |
275 |
- } |
276 |
- |
277 |
-- retour = (PJ *) pj_init(n, (char **) tableau); |
278 |
-+ retour = (projPJ) pj_init(n, (char **) tableau); |
279 |
- free(c); |
280 |
- free(tableau); |
281 |
- |
282 |
-Index: ogdi-dfsg/ogdi/c-api/ecsgeo.c |
283 |
-=================================================================== |
284 |
---- ogdi-dfsg.orig/ogdi/c-api/ecsgeo.c |
285 |
-+++ ogdi-dfsg/ogdi/c-api/ecsgeo.c |
286 |
-@@ -310,7 +310,7 @@ |
287 |
- char *projection; |
288 |
- double X1,Y1,X2,Y2; |
289 |
- { |
290 |
-- PJ *proj; |
291 |
-+ projPJ proj; |
292 |
- char **argv; |
293 |
- int argc; |
294 |
- double lon1,lat1,lon2,lat2; |
295 |
-Index: ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c |
296 |
-=================================================================== |
297 |
---- ogdi-dfsg.orig/ogdi/datum_driver/usa/dtusa.c |
298 |
-+++ ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c |
299 |
-@@ -26,7 +26,12 @@ |
300 |
- ********************************************************************/ |
301 |
- |
302 |
- #include "ecs.h" |
303 |
--#include "projects.h" |
304 |
-+#include "proj_api.h" |
305 |
-+ |
306 |
-+/* Definition from Proj.4 */ |
307 |
-+projUV nad_cvt(projUV, int, struct CTABLE *); |
308 |
-+struct CTABLE *nad_init(projCtx ctx, char *); |
309 |
-+void nad_free(struct CTABLE *); |
310 |
- |
311 |
- typedef struct { |
312 |
- struct CTABLE *dtptr; |
313 |
-@@ -124,7 +129,7 @@ |
314 |
- strcat(pathfile,"/"); |
315 |
- strcat(pathfile,table); |
316 |
- |
317 |
-- ptr->dtptr = nad_init(pathfile); |
318 |
-+ ptr->dtptr = nad_init(pj_get_default_ctx(), pathfile); |
319 |
- if (ptr->dtptr == NULL) { |
320 |
- ptr->count--; |
321 |
- return FALSE; |
322 |
-Index: ogdi-dfsg/ogdi/include/ecs_util.h |
323 |
-=================================================================== |
324 |
---- ogdi-dfsg.orig/ogdi/include/ecs_util.h |
325 |
-+++ ogdi-dfsg/ogdi/include/ecs_util.h |
326 |
-@@ -105,12 +105,7 @@ |
327 |
- #include <sys/types.h> |
328 |
- #include <sys/stat.h> |
329 |
- |
330 |
--#include "projects.h" |
331 |
-- |
332 |
--/* Ensure we are compatible with PROJ.4.4.x and PROJ.4.3.x */ |
333 |
--#ifndef USE_PROJUV |
334 |
--# define projUV UV |
335 |
--#endif |
336 |
-+#include "proj_api.h" |
337 |
- |
338 |
- #include "ecs.h" |
339 |
- |
340 |
-@@ -1054,8 +1049,8 @@ |
341 |
- ecs_Family currentSelectionFamily: Current layer selection type |
342 |
- char *tclprocname: attribute callback procedure for tcl |
343 |
- char *target_proj: Projection descriptor |
344 |
-- PJ *target: target (c interface) projection descriptors |
345 |
-- PJ *source: source (driver) projection descriptors |
346 |
-+ projPJ target: target (c interface) projection descriptors |
347 |
-+ projPJ source: source (driver) projection descriptors |
348 |
- ecs_Datum targetdatum: target datum information |
349 |
- ecs_Datum sourcedatum: source datum information |
350 |
- void *dthandle: Handle to the datum driver |
351 |
-@@ -1092,8 +1088,8 @@ |
352 |
- ecs_Family currentSelectionFamily; /* Current layer selection type */ |
353 |
- char *tclprocname; /* attribute callback procedure for tcl */ |
354 |
- char *target_proj; |
355 |
-- PJ *target; /* source and target projection descriptors */ |
356 |
-- PJ *source; |
357 |
-+ projPJ target; /* source and target projection descriptors */ |
358 |
-+ projPJ source; |
359 |
- int isSourceLL; /* flags to avoid unnecessary computation */ |
360 |
- int isTargetLL; |
361 |
- int isProjEqual; |
362 |
-@@ -1165,7 +1161,7 @@ |
363 |
- |
364 |
- /* Projection conversion functions */ |
365 |
- |
366 |
--PJ *cln_ProjInit _ANSI_ARGS_((char *d)); |
367 |
-+projPJ cln_ProjInit _ANSI_ARGS_((char *d)); |
368 |
- int cln_CompareProjections _ANSI_ARGS_((int ClientID)); |
369 |
- int cln_UpdateMaxRegion _ANSI_ARGS_((int ClientID, double x, double y, ecs_Region *gr, int sens, int first)); |
370 |
- int cln_ConvRegion _ANSI_ARGS_((int ClientID, ecs_Region *gr, int sens)); |
371 |
-Index: ogdi-dfsg/contrib/ogdi_import/ogdi_import.c |
372 |
-=================================================================== |
373 |
---- ogdi-dfsg.orig/contrib/ogdi_import/ogdi_import.c |
374 |
-+++ ogdi-dfsg/contrib/ogdi_import/ogdi_import.c |
375 |
-@@ -63,12 +63,7 @@ |
376 |
- #include "ecs.h" |
377 |
- #include "shapefil.h" |
378 |
- #include <assert.h> |
379 |
--#include "projects.h" |
380 |
-- |
381 |
--#ifndef PJ_VERSION |
382 |
--#define projPJ PJ* |
383 |
--#define projUV UV |
384 |
--#endif |
385 |
-+#include "proj_api.h" |
386 |
- |
387 |
- static int ClientID = -1; |
388 |
- static int bNoDict = FALSE; |
389 |
-Index: ogdi-dfsg/contrib/ogdi_info/ogdi_info.c |
390 |
-=================================================================== |
391 |
---- ogdi-dfsg.orig/contrib/ogdi_info/ogdi_info.c |
392 |
-+++ ogdi-dfsg/contrib/ogdi_info/ogdi_info.c |
393 |
-@@ -63,7 +63,7 @@ |
394 |
- */ |
395 |
- |
396 |
- #include "ecs.h" |
397 |
--#include "projects.h" |
398 |
-+#include "proj_api.h" |
399 |
- |
400 |
- static int ClientID = -1; |
401 |
- static int bNoDict = FALSE; |
402 |
-@@ -214,7 +214,7 @@ |
403 |
- /* DumpGlobalRegion() */ |
404 |
- /************************************************************************/ |
405 |
- |
406 |
--static int DumpGlobalRegion( ecs_Region * region, PJ * proj_defn ) |
407 |
-+static int DumpGlobalRegion( ecs_Region * region, projPJ proj_defn ) |
408 |
- |
409 |
- { |
410 |
- ecs_Result *result; |
411 |
-@@ -398,7 +398,7 @@ |
412 |
- |
413 |
- { |
414 |
- ecs_Result *result; |
415 |
-- PJ *proj_defn = NULL; |
416 |
-+ projPJ proj_defn = NULL; |
417 |
- |
418 |
- /* -------------------------------------------------------------------- */ |
419 |
- /* Close old client if there is one active. */ |
420 |
|
421 |
diff --git a/sci-libs/ogdi/ogdi-3.2.0_beta2.ebuild b/sci-libs/ogdi/ogdi-3.2.0_beta2.ebuild |
422 |
deleted file mode 100644 |
423 |
index fcd803cbbad..00000000000 |
424 |
--- a/sci-libs/ogdi/ogdi-3.2.0_beta2.ebuild |
425 |
+++ /dev/null |
426 |
@@ -1,66 +0,0 @@ |
427 |
-# Copyright 1999-2017 Gentoo Foundation |
428 |
-# Distributed under the terms of the GNU General Public License v2 |
429 |
- |
430 |
-EAPI=5 |
431 |
- |
432 |
-MY_P=${P/_/.} |
433 |
-inherit eutils toolchain-funcs |
434 |
- |
435 |
-DESCRIPTION="Open Geographical Datastore Interface, a GIS support library" |
436 |
-HOMEPAGE="http://ogdi.sourceforge.net/" |
437 |
-SRC_URI="mirror://sourceforge/ogdi/${MY_P}.tar.gz" |
438 |
- |
439 |
-LICENSE="GPL-2" |
440 |
-SLOT="0" |
441 |
-KEYWORDS="amd64 ~arm ~arm64 ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux" |
442 |
-IUSE="static-libs" |
443 |
- |
444 |
-DEPEND=" |
445 |
- dev-libs/expat |
446 |
- >=sci-libs/proj-4.8.0 |
447 |
- sys-libs/zlib |
448 |
-" |
449 |
-RDEPEND="${DEPEND}" |
450 |
- |
451 |
-S=${WORKDIR}/${MY_P} |
452 |
- |
453 |
-src_prepare() { |
454 |
- rm -rf external |
455 |
- epatch \ |
456 |
- "${FILESDIR}"/${P}-subdirs.patch \ |
457 |
- "${FILESDIR}"/${P}-endianess.patch \ |
458 |
- "${FILESDIR}"/${P}-64b.patch \ |
459 |
- "${FILESDIR}"/${P}-proj480.patch \ |
460 |
- "${FILESDIR}"/${PN}-3.1.6-fpic.patch |
461 |
- sed 's:O2:O9:g' -i configure || die |
462 |
-} |
463 |
- |
464 |
-src_configure() { |
465 |
- export TOPDIR="${S}" |
466 |
- export TARGET=$(uname) |
467 |
- export CFG="release" |
468 |
- export LD_LIBRARY_PATH=$TOPDIR/bin/${TARGET} |
469 |
- |
470 |
- econf \ |
471 |
- --with-projlib="-L${EPREFIX}/usr/$(get_libdir) -lproj" \ |
472 |
- --with-zlib --with-expat |
473 |
-} |
474 |
- |
475 |
-src_compile() { |
476 |
- # bug #299239 |
477 |
- emake -j1 \ |
478 |
- CC="$(tc-getCC)" \ |
479 |
- LD="$(tc-getCC)" \ |
480 |
- SHLIB_LD="$(tc-getCC)" |
481 |
-} |
482 |
- |
483 |
-src_install() { |
484 |
- mv "${S}"/bin/${TARGET}/*.so* "${S}"/lib/Linux/. || die "lib move failed" |
485 |
- dobin "${S}"/bin/${TARGET}/* |
486 |
- insinto /usr/include |
487 |
- doins ogdi/include/ecs.h ogdi/include/ecs_util.h |
488 |
- dolib.so lib/${TARGET}/lib* |
489 |
- use static-libs && dolib.a lib/${TARGET}/static/*.a |
490 |
-# dosym libogdi31.so /usr/$(get_libdir)/libogdi.so |
491 |
- dodoc ChangeLog NEWS README |
492 |
-} |