1 |
commit: f289949ea2ef43cb9a22ed5708a4805fada75e01 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 19 16:04:43 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 19 16:04:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f289949e |
7 |
|
8 |
dev-libs/pth: remove (like in gx86) |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
dev-libs/pth/Manifest | 1 - |
13 |
dev-libs/pth/files/pth-2.0.5-parallelfix.patch | 15 --- |
14 |
dev-libs/pth/files/pth-2.0.6-ldflags.patch | 17 --- |
15 |
dev-libs/pth/files/pth-2.0.6-sigstack.patch | 22 ---- |
16 |
dev-libs/pth/files/pth-2.0.7-aix.patch | 14 --- |
17 |
dev-libs/pth/files/pth-2.0.7-ia64.patch | 30 ----- |
18 |
dev-libs/pth/files/pth-2.0.7-kernel-3.patch | 24 ---- |
19 |
dev-libs/pth/files/pth-2.0.7-mint.patch | 139 --------------------- |
20 |
.../pth/files/pth-2.0.7-parallel-install.patch | 12 -- |
21 |
dev-libs/pth/metadata.xml | 8 -- |
22 |
dev-libs/pth/pth-2.0.7-r3.ebuild | 60 --------- |
23 |
11 files changed, 342 deletions(-) |
24 |
|
25 |
diff --git a/dev-libs/pth/Manifest b/dev-libs/pth/Manifest |
26 |
deleted file mode 100644 |
27 |
index 10cbc0e727..0000000000 |
28 |
--- a/dev-libs/pth/Manifest |
29 |
+++ /dev/null |
30 |
@@ -1 +0,0 @@ |
31 |
-DIST pth-2.0.7.tar.gz 652640 BLAKE2B f6a3df2136bb0194a6ceca76a750d68c549b9ff069f4fb02154e9f6418b3fc52befe1196e1ed4655a1acf1c6ef676184aa6f3403d0a39cb2c9315bb0d4fb150a SHA512 f79d74047c50e06f3198356f88647c5c1c8a04ebdd94641fc31d5ab0fd2750d86615fcb81da2f98d7ea73d012a501195d3fa09060571d18dcfdaec5d7a0ecb12 |
32 |
|
33 |
diff --git a/dev-libs/pth/files/pth-2.0.5-parallelfix.patch b/dev-libs/pth/files/pth-2.0.5-parallelfix.patch |
34 |
deleted file mode 100644 |
35 |
index a305f59333..0000000000 |
36 |
--- a/dev-libs/pth/files/pth-2.0.5-parallelfix.patch |
37 |
+++ /dev/null |
38 |
@@ -1,15 +0,0 @@ |
39 |
---- Makefile.in.orig 2005-11-08 05:58:55.000000000 +1100 |
40 |
-+++ Makefile.in 2005-11-08 06:29:02.000000000 +1100 |
41 |
-@@ -148,10 +148,9 @@ |
42 |
- |
43 |
- # be aware of libtool when building the objects |
44 |
- .SUFFIXES: |
45 |
--.SUFFIXES: .c .o .lo |
46 |
--.c.o: |
47 |
-+%.o: %.c $(TARGET_PREQ) |
48 |
- $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
49 |
--.c.lo: |
50 |
-+%.lo: %.c $(TARGET_PREQ) |
51 |
- $(LIBTOOL) --mode=compile --quiet $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
52 |
- |
53 |
- # the default target |
54 |
|
55 |
diff --git a/dev-libs/pth/files/pth-2.0.6-ldflags.patch b/dev-libs/pth/files/pth-2.0.6-ldflags.patch |
56 |
deleted file mode 100644 |
57 |
index 7a4a5ab300..0000000000 |
58 |
--- a/dev-libs/pth/files/pth-2.0.6-ldflags.patch |
59 |
+++ /dev/null |
60 |
@@ -1,17 +0,0 @@ |
61 |
-Index: pth-2.0.6/Makefile.in |
62 |
-=================================================================== |
63 |
---- pth-2.0.6.orig/Makefile.in |
64 |
-+++ pth-2.0.6/Makefile.in |
65 |
-@@ -168,10 +168,10 @@ pth_p.h: $(S)pth_p.h.in |
66 |
- |
67 |
- # build the static and possibly shared libraries |
68 |
- libpth.la: $(LOBJS) |
69 |
-- $(LIBTOOL) --mode=link --quiet $(CC) -o libpth.la $(LOBJS) \ |
70 |
-+ $(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o libpth.la $(LOBJS) \ |
71 |
- -rpath $(libdir) -version-info `$(SHTOOL) version -lc -dlibtool $(_VERSION_FILE)` |
72 |
- libpthread.la: pthread.lo $(LOBJS) |
73 |
-- $(LIBTOOL) --mode=link --quiet $(CC) -o libpthread.la pthread.lo $(LOBJS) \ |
74 |
-+ $(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o libpthread.la pthread.lo $(LOBJS) \ |
75 |
- -rpath $(libdir) -version-info `$(SHTOOL) version -lc -dlibtool $(_VERSION_FILE)` |
76 |
- |
77 |
- # build the manual pages |
78 |
|
79 |
diff --git a/dev-libs/pth/files/pth-2.0.6-sigstack.patch b/dev-libs/pth/files/pth-2.0.6-sigstack.patch |
80 |
deleted file mode 100644 |
81 |
index 3914dea7ac..0000000000 |
82 |
--- a/dev-libs/pth/files/pth-2.0.6-sigstack.patch |
83 |
+++ /dev/null |
84 |
@@ -1,22 +0,0 @@ |
85 |
-diff -urNp pth-2.0.6.old/aclocal.m4 pth-2.0.6/aclocal.m4 |
86 |
---- pth-2.0.6.old/aclocal.m4 2004-12-31 21:33:19.000000000 +0200 |
87 |
-+++ pth-2.0.6/aclocal.m4 2006-09-20 14:46:59.000000000 +0300 |
88 |
-@@ -1522,6 +1522,7 @@ int main(int argc, char *argv[]) |
89 |
- int sksize; |
90 |
- char result[1024]; |
91 |
- int i; |
92 |
-+exit (1); |
93 |
- sksize = 32768; |
94 |
- skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); |
95 |
- if (skbuf == NULL) |
96 |
-diff -urNp pth-2.0.6.old/configure pth-2.0.6/configure |
97 |
---- pth-2.0.6.old/configure 2005-11-22 09:49:21.000000000 +0200 |
98 |
-+++ pth-2.0.6/configure 2006-09-20 14:55:23.000000000 +0300 |
99 |
-@@ -24735,6 +24735,7 @@ int main(int argc, char *argv[]) |
100 |
- int sksize; |
101 |
- char result[1024]; |
102 |
- int i; |
103 |
-+exit (1); |
104 |
- sksize = 32768; |
105 |
- skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); |
106 |
- if (skbuf == NULL) |
107 |
|
108 |
diff --git a/dev-libs/pth/files/pth-2.0.7-aix.patch b/dev-libs/pth/files/pth-2.0.7-aix.patch |
109 |
deleted file mode 100644 |
110 |
index 309d25b1cd..0000000000 |
111 |
--- a/dev-libs/pth/files/pth-2.0.7-aix.patch |
112 |
+++ /dev/null |
113 |
@@ -1,14 +0,0 @@ |
114 |
-http://cvs.ossp.org/tktview?tn=195 |
115 |
- |
116 |
---- aclocal.m4.orig 2013-11-29 14:36:58.021044281 +0000 |
117 |
-+++ aclocal.m4 2013-11-29 14:38:20.606684317 +0000 |
118 |
-@@ -1185,7 +1185,9 @@ |
119 |
- changequote(<<, >>)dnl |
120 |
- << |
121 |
- #include <stdio.h> |
122 |
-+#include <stdlib.h> |
123 |
- #include <sys/types.h> |
124 |
-+#include <sys/time.h> |
125 |
- #include <unistd.h> |
126 |
- int main(int argc, char *argv[]) |
127 |
- { |
128 |
|
129 |
diff --git a/dev-libs/pth/files/pth-2.0.7-ia64.patch b/dev-libs/pth/files/pth-2.0.7-ia64.patch |
130 |
deleted file mode 100644 |
131 |
index 8b08b82ca6..0000000000 |
132 |
--- a/dev-libs/pth/files/pth-2.0.7-ia64.patch |
133 |
+++ /dev/null |
134 |
@@ -1,30 +0,0 @@ |
135 |
-# http://bugs.debian.org/225780 |
136 |
-diff -Naurp pth.orig/pth_sched.c pth/pth_sched.c |
137 |
---- pth.orig/pth_sched.c 2009-07-16 23:16:52.000000000 +0000 |
138 |
-+++ pth/pth_sched.c 2009-07-16 23:20:51.000000000 +0000 |
139 |
-@@ -297,8 +297,15 @@ intern void *pth_scheduler(void *dummy) |
140 |
- /* |
141 |
- * Check for stack overflow |
142 |
- */ |
143 |
-+#ifndef __ia64__ |
144 |
- if (pth_current->stackguard != NULL) { |
145 |
- if (*pth_current->stackguard != 0xDEAD) { |
146 |
-+#else |
147 |
-+ /* On ia64 the stack grows down but the bottom part is used for register |
148 |
-+ * backing store which grows up. So we check for a meet in the middle |
149 |
-+ */ |
150 |
-+ if (pth_current->mctx.uc.uc_mcontext.sc_gr[12] <= pth_current->mctx.uc.uc_mcontext.sc_ar_bsp) { |
151 |
-+#endif |
152 |
- pth_debug3("pth_scheduler: stack overflow detected for thread 0x%lx (\"%s\")", |
153 |
- (unsigned long)pth_current, pth_current->name); |
154 |
- /* |
155 |
-@@ -324,7 +331,9 @@ intern void *pth_scheduler(void *dummy) |
156 |
- pth_current->state = PTH_STATE_DEAD; |
157 |
- kill(getpid(), SIGSEGV); |
158 |
- } |
159 |
-+#ifndef __ia64__ |
160 |
- } |
161 |
-+#endif |
162 |
- |
163 |
- /* |
164 |
- * If previous thread is now marked as dead, kick it out |
165 |
|
166 |
diff --git a/dev-libs/pth/files/pth-2.0.7-kernel-3.patch b/dev-libs/pth/files/pth-2.0.7-kernel-3.patch |
167 |
deleted file mode 100644 |
168 |
index c8a1afb369..0000000000 |
169 |
--- a/dev-libs/pth/files/pth-2.0.7-kernel-3.patch |
170 |
+++ /dev/null |
171 |
@@ -1,24 +0,0 @@ |
172 |
-diff -ur pth-2.0.7.orig/aclocal.m4 pth-2.0.7/aclocal.m4 |
173 |
---- pth-2.0.7.orig/aclocal.m4 2012-08-08 16:25:05.289931224 +0200 |
174 |
-+++ pth-2.0.7/aclocal.m4 2012-08-08 16:26:45.164932424 +0200 |
175 |
-@@ -1074,7 +1074,7 @@ |
176 |
- braindead=no |
177 |
- case "x`uname -r`" in |
178 |
- changequote(, )dnl |
179 |
-- x2.[23456789]* ) ;; |
180 |
-+ x2.[23456789]* | x3.[0-9]* ) ;; |
181 |
- changequote([, ]) |
182 |
- * ) braindead=yes ;; |
183 |
- esac |
184 |
-diff -ur pth-2.0.7.orig/configure pth-2.0.7/configure |
185 |
---- pth-2.0.7.orig/configure 2012-08-08 16:25:05.289931224 +0200 |
186 |
-+++ pth-2.0.7/configure 2012-08-08 16:27:00.391494004 +0200 |
187 |
-@@ -22512,7 +22512,7 @@ |
188 |
- *-*-linux* ) |
189 |
- braindead=no |
190 |
- case "x`uname -r`" in |
191 |
-- x2.[23456789]* ) ;; |
192 |
-+ x2.[23456789]* | x3.[0-9]* ) ;; |
193 |
- |
194 |
- * ) braindead=yes ;; |
195 |
- esac |
196 |
|
197 |
diff --git a/dev-libs/pth/files/pth-2.0.7-mint.patch b/dev-libs/pth/files/pth-2.0.7-mint.patch |
198 |
deleted file mode 100644 |
199 |
index 9893fe93b0..0000000000 |
200 |
--- a/dev-libs/pth/files/pth-2.0.7-mint.patch |
201 |
+++ /dev/null |
202 |
@@ -1,139 +0,0 @@ |
203 |
-diff -ur pth-2.0.7/aclocal.m4 pth-2.0.7-mint/aclocal.m4 |
204 |
---- pth-2.0.7/aclocal.m4 Thu Jun 8 17:54:00 2006 |
205 |
-+++ pth-2.0.7-mint/aclocal.m4 Tue Mar 18 20:39:34 2008 |
206 |
-@@ -1104,6 +1104,9 @@ |
207 |
- *-*-cygwin* ) |
208 |
- ac_cv_check_sjlj=sjljw32 |
209 |
- ;; |
210 |
-+ *-*-mint* ) |
211 |
-+ ac_cv_check_sjlj=sjljmint |
212 |
-+ ;; |
213 |
- esac |
214 |
- ])dnl |
215 |
- $3="$ac_cv_check_sjlj" |
216 |
-diff -ur pth-2.0.7/configure.ac pth-2.0.7-mint/configure.ac |
217 |
---- pth-2.0.7/configure.ac Thu Jun 8 17:54:00 2006 |
218 |
-+++ pth-2.0.7-mint/configure.ac Tue Mar 18 20:40:18 2008 |
219 |
-@@ -356,7 +360,7 @@ |
220 |
- AC_IFALLYES(func:sigstack, mctx_stk=ss) |
221 |
- AC_IFALLYES(func:sigaltstack, mctx_stk=sas) |
222 |
- case $mctx_dsp in |
223 |
-- sjljlx|sjljisc|sjljw32 ) mctx_stk=none |
224 |
-+ sjljlx|sjljisc|sjljw32|sjljmint ) mctx_stk=none |
225 |
- esac |
226 |
- else |
227 |
- AC_ERROR([no appropriate mctx method found]) |
228 |
-@@ -376,8 +380,8 @@ |
229 |
- AC_ARG_WITH(mctx-dsp,dnl |
230 |
- [ --with-mctx-dsp=ID force mctx dispatching (sc,ssjlj,sjlj,usjlj,sjlje,...)],[ |
231 |
- case $withval in |
232 |
-- sc|ssjlj|sjlj|usjlj|sjlje|sjljlx|sjljisc|sjljw32 ) mctx_dsp=$withval ;; |
233 |
-- * ) AC_ERROR([invalid mctx dispatching -- allowed: sc,ssjlj,sjlj,usjlj,sjlje,sjljlx,sjljisc,sjljw32]) ;; |
234 |
-+ sc|ssjlj|sjlj|usjlj|sjlje|sjljlx|sjljisc|sjljw32|sjljmint ) mctx_dsp=$withval ;; |
235 |
-+ * ) AC_ERROR([invalid mctx dispatching -- allowed: sc,ssjlj,sjlj,usjlj,sjlje,sjljlx,sjljisc,sjljw32,sjljmint]) ;; |
236 |
- esac |
237 |
- ])dnl |
238 |
- AC_ARG_WITH(mctx-stk,dnl |
239 |
-@@ -438,7 +442,7 @@ |
240 |
- pth_sigsetjmp='setjmp(buf)' |
241 |
- pth_siglongjmp='longjmp(buf,val)' |
242 |
- ;; |
243 |
-- sjljlx|sjljisc|sjljw32 ) |
244 |
-+ sjljlx|sjljisc|sjljw32|sjljmint ) |
245 |
- pth_sigjmpbuf='sigjmp_buf' |
246 |
- pth_sigsetjmp='sigsetjmp(buf,1)' |
247 |
- pth_siglongjmp='siglongjmp(buf,val)' |
248 |
-diff -ur pth-2.0.7/pth_acmac.h.in pth-2.0.7-mint/pth_acmac.h.in |
249 |
---- pth-2.0.7/pth_acmac.h.in Thu Jun 8 17:54:02 2006 |
250 |
-+++ pth-2.0.7-mint/pth_acmac.h.in Tue Mar 18 20:39:34 2008 |
251 |
-@@ -55,6 +55,7 @@ |
252 |
- #define PTH_MCTX_DSP_sjljlx 6 |
253 |
- #define PTH_MCTX_DSP_sjljisc 7 |
254 |
- #define PTH_MCTX_DSP_sjljw32 8 |
255 |
-+#define PTH_MCTX_DSP_sjljmint 9 |
256 |
- #define PTH_MCTX_STK_mc 1 |
257 |
- #define PTH_MCTX_STK_ss 2 |
258 |
- #define PTH_MCTX_STK_sas 3 |
259 |
-diff -ur pth-2.0.7/pth_mctx.c pth-2.0.7-mint/pth_mctx.c |
260 |
---- pth-2.0.7/pth_mctx.c Thu Jun 8 17:54:02 2006 |
261 |
-+++ pth-2.0.7-mint/pth_mctx.c Tue Mar 18 20:39:34 2008 |
262 |
-@@ -180,7 +180,8 @@ |
263 |
- #elif PTH_MCTX_MTH(sjlj) &&\ |
264 |
- !PTH_MCTX_DSP(sjljlx) &&\ |
265 |
- !PTH_MCTX_DSP(sjljisc) &&\ |
266 |
-- !PTH_MCTX_DSP(sjljw32) |
267 |
-+ !PTH_MCTX_DSP(sjljw32) &&\ |
268 |
-+ !PTH_MCTX_DSP(sjljmint) |
269 |
- |
270 |
- /* |
271 |
- * VARIANT 2: THE SIGNAL STACK TRICK |
272 |
-@@ -532,6 +533,35 @@ |
273 |
- #endif |
274 |
- sigemptyset(&mctx->sigs); |
275 |
- mctx->error = 0; |
276 |
-+ return TRUE; |
277 |
-+} |
278 |
-+ |
279 |
-+/* |
280 |
-+ * VARIANT 6: MINT SPECIFIC JMP_BUF FIDDLING |
281 |
-+ * |
282 |
-+ * Oh hell, Mint has setjmp(3), but no sigstack(2) or sigaltstack(2). |
283 |
-+ * So we have to fiddle around with the jmp_buf here too... |
284 |
-+ */ |
285 |
-+ |
286 |
-+#elif PTH_MCTX_MTH(sjlj) && PTH_MCTX_DSP(sjljmint) |
287 |
-+intern int |
288 |
-+pth_mctx_set(pth_mctx_t *mctx, void (*func)(void), |
289 |
-+ char *sk_addr_lo, char *sk_addr_hi) |
290 |
-+{ |
291 |
-+ pth_mctx_save(mctx); |
292 |
-+ sigemptyset(&mctx->sigs); |
293 |
-+ |
294 |
-+ mctx->error = 0; |
295 |
-+ |
296 |
-+#ifdef __TURBOC__ |
297 |
-+ /* Well, it can be supported if you know how Turbo C save the PC |
298 |
-+ and SP in the jmp_buf (see setjmp.h in the Mintlib include) */ |
299 |
-+ #error "Turbo C compiler not supported" |
300 |
-+#else |
301 |
-+ mctx->jb[0] = (char *)func; |
302 |
-+ mctx->jb[12] = sk_addr_hi; |
303 |
-+#endif |
304 |
-+ |
305 |
- return TRUE; |
306 |
- } |
307 |
- |
308 |
-diff -ur pth-2.0.7/pthread.c pth-2.0.7-mint/pthread.c |
309 |
---- pth-2.0.7/pthread.c Thu Jun 8 17:54:02 2006 |
310 |
-+++ pth-2.0.7-mint/pthread.c Tue Mar 18 20:39:34 2008 |
311 |
-@@ -308,7 +308,7 @@ |
312 |
- return OK; |
313 |
- } |
314 |
- |
315 |
--int __pthread_detach(pthread_t thread) |
316 |
-+int pthread_detach(pthread_t thread) |
317 |
- { |
318 |
- pth_attr_t na; |
319 |
- |
320 |
-diff -ur pth-2.0.7/pthread.h.in pth-2.0.7-mint/pthread.h.in |
321 |
---- pth-2.0.7/pthread.h.in Thu Jun 8 17:54:02 2006 |
322 |
-+++ pth-2.0.7-mint/pthread.h.in Tue Mar 18 20:39:34 2008 |
323 |
-@@ -345,8 +345,7 @@ |
324 |
- |
325 |
- /* thread routines */ |
326 |
- extern int pthread_create(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *); |
327 |
--extern int __pthread_detach(pthread_t); |
328 |
--#define pthread_detach(t) __pthread_detach(t) |
329 |
-+extern int pthread_detach(pthread_t); |
330 |
- extern pthread_t pthread_self(void); |
331 |
- extern int pthread_equal(pthread_t, pthread_t); |
332 |
- extern int pthread_yield_np(void); |
333 |
-@@ -556,8 +555,6 @@ |
334 |
- #define pthread_mutexattr_default NULL |
335 |
- #define pthread_once_init PTHREAD_ONCE_INIT |
336 |
- |
337 |
--#define pthread_detach(thread) __pthread_detach(*(thread)) |
338 |
-- |
339 |
- #define pthread_attr_init pthread_attr_create |
340 |
- #define pthread_attr_delete pthread_attr_destroy |
341 |
- #define pthread_keycreate pthread_key_create |
342 |
|
343 |
diff --git a/dev-libs/pth/files/pth-2.0.7-parallel-install.patch b/dev-libs/pth/files/pth-2.0.7-parallel-install.patch |
344 |
deleted file mode 100644 |
345 |
index 7952cff576..0000000000 |
346 |
--- a/dev-libs/pth/files/pth-2.0.7-parallel-install.patch |
347 |
+++ /dev/null |
348 |
@@ -1,12 +0,0 @@ |
349 |
---- Makefile.in 2010-12-13 12:59:07.000000000 -0500 |
350 |
-+++ Makefile.new 2010-12-13 13:00:22.000000000 -0500 |
351 |
-@@ -215,7 +215,8 @@ |
352 |
- |
353 |
- # install the package |
354 |
- install: all-for-install |
355 |
-- @$(MAKE) $(MKFLAGS) install-dirs install-pth @INSTALL_PTHREAD@ |
356 |
-+ @$(MAKE) $(MKFLAGS) install-dirs |
357 |
-+ @$(MAKE) $(MKFLAGS) install-pth @INSTALL_PTHREAD@ |
358 |
- @touch .done-install >/dev/null 2>&1 || $(TRUE) |
359 |
- @$(MAKE) $(MKFLAGS) what-next |
360 |
- install-dirs: |
361 |
|
362 |
diff --git a/dev-libs/pth/metadata.xml b/dev-libs/pth/metadata.xml |
363 |
deleted file mode 100644 |
364 |
index f1c3d59fb2..0000000000 |
365 |
--- a/dev-libs/pth/metadata.xml |
366 |
+++ /dev/null |
367 |
@@ -1,8 +0,0 @@ |
368 |
-<?xml version="1.0" encoding="UTF-8"?> |
369 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
370 |
-<pkgmetadata> |
371 |
-<maintainer type="project"> |
372 |
- <email>crypto@g.o</email> |
373 |
- <name>Crypto</name> |
374 |
-</maintainer> |
375 |
-</pkgmetadata> |
376 |
|
377 |
diff --git a/dev-libs/pth/pth-2.0.7-r3.ebuild b/dev-libs/pth/pth-2.0.7-r3.ebuild |
378 |
deleted file mode 100644 |
379 |
index 5887e7cd12..0000000000 |
380 |
--- a/dev-libs/pth/pth-2.0.7-r3.ebuild |
381 |
+++ /dev/null |
382 |
@@ -1,60 +0,0 @@ |
383 |
-# Copyright 1999-2017 Gentoo Foundation |
384 |
-# Distributed under the terms of the GNU General Public License v2 |
385 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/pth/pth-2.0.7-r3.ebuild,v 1.10 2014/03/16 02:38:02 vapier Exp $ |
386 |
- |
387 |
-EAPI=4 |
388 |
- |
389 |
-inherit eutils fixheadtails libtool flag-o-matic autotools |
390 |
- |
391 |
-DESCRIPTION="GNU Portable Threads" |
392 |
-HOMEPAGE="http://www.gnu.org/software/pth/" |
393 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
394 |
- |
395 |
-LICENSE="LGPL-2.1" |
396 |
-SLOT="0" |
397 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
398 |
-IUSE="debug static-libs" |
399 |
- |
400 |
-DEPEND="" |
401 |
-RDEPEND="${DEPEND}" |
402 |
- |
403 |
-DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README THANKS USERS" |
404 |
- |
405 |
-src_prepare() { |
406 |
- epatch "${FILESDIR}"/${PN}-2.0.5-parallelfix.patch |
407 |
- epatch "${FILESDIR}"/${PN}-2.0.6-ldflags.patch |
408 |
- epatch "${FILESDIR}"/${PN}-2.0.6-sigstack.patch |
409 |
- epatch "${FILESDIR}"/${PN}-2.0.7-parallel-install.patch |
410 |
- epatch "${FILESDIR}"/${PN}-2.0.7-ia64.patch |
411 |
- epatch "${FILESDIR}"/${PN}-2.0.7-kernel-3.patch |
412 |
- epatch "${FILESDIR}"/${PN}-2.0.7-mint.patch |
413 |
- epatch "${FILESDIR}"/${PN}-2.0.7-aix.patch |
414 |
- |
415 |
- ht_fix_file aclocal.m4 configure |
416 |
- |
417 |
- eautoconf |
418 |
- elibtoolize |
419 |
-} |
420 |
- |
421 |
-src_configure() { |
422 |
- # bug 350815 |
423 |
- ( use arm || use sh ) && append-flags -U_FORTIFY_SOURCE |
424 |
- |
425 |
- local conf |
426 |
- |
427 |
- [[ ${CHOST} == *-mint* ]] && conf="${conf} --enable-pthread" |
428 |
- # http://www.mail-archive.com/pth-users@×××.org/msg00525.html |
429 |
- [[ ${CHOST} == powerpc*-darwin9 ]] && \ |
430 |
- conf="${conf} --with-mctx-mth=sjlj --with-mctx-dsp=ssjlj --with-mctx-stk=sas" |
431 |
- |
432 |
- use debug && conf="${conf} --enable-debug" # have a bug --disable-debug and shared |
433 |
- |
434 |
- econf \ |
435 |
- ${conf} \ |
436 |
- $(use_enable static-libs static) |
437 |
-} |
438 |
- |
439 |
-src_install() { |
440 |
- default |
441 |
- find "${ED}" -name '*.la' -exec rm -f {} + |
442 |
-} |