1 |
commit: 60635b48d915a8c9fa4a7f502642b9d1c1bfd090 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 2 11:20:26 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 2 11:20:26 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=60635b48 |
7 |
|
8 |
x11-libs/libxdl_view: Import patch from 6.3.0 |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha177 |
11 |
|
12 |
--- |
13 |
x11-libs/libxdl_view/ChangeLog | 70 +++++++++++ |
14 |
x11-libs/libxdl_view/files/4.2-as-needed.patch | 16 +++ |
15 |
x11-libs/libxdl_view/files/4.2-impl-dec.patch | 13 ++ |
16 |
.../files/libxdl_view-4.2-ccp4-6.3.0.patch | 131 +++++++++++++++++++++ |
17 |
x11-libs/libxdl_view/libxdl_view-4.2-r3.ebuild | 33 ++++++ |
18 |
x11-libs/libxdl_view/metadata.xml | 8 ++ |
19 |
6 files changed, 271 insertions(+) |
20 |
|
21 |
diff --git a/x11-libs/libxdl_view/ChangeLog b/x11-libs/libxdl_view/ChangeLog |
22 |
new file mode 100644 |
23 |
index 0000000..009c46a |
24 |
--- /dev/null |
25 |
+++ b/x11-libs/libxdl_view/ChangeLog |
26 |
@@ -0,0 +1,70 @@ |
27 |
+# ChangeLog for x11-libs/libxdl_view |
28 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxdl_view/ChangeLog,v 1.15 2012/08/26 13:43:57 jlec Exp $ |
30 |
+ |
31 |
+*libxdl_view-4.2-r3 (02 Jun 2013) |
32 |
+ |
33 |
+ 02 Jun 2013; Justin Lecher <jlec@g.o> +libxdl_view-4.2-r3.ebuild, |
34 |
+ +files/4.2-as-needed.patch, +files/libxdl_view-4.2-ccp4-6.3.0.patch, |
35 |
+ +files/4.2-impl-dec.patch, +metadata.xml: |
36 |
+ Import patch from 6.3.0 |
37 |
+ |
38 |
+ 26 Aug 2012; Justin Lecher <jlec@g.o> -libxdl_view-4.2-r1.ebuild: |
39 |
+ Drop old |
40 |
+ |
41 |
+ 21 Aug 2012; Johannes Huber <johu@g.o> libxdl_view-4.2-r2.ebuild: |
42 |
+ Stable for x86, wrt bug #429232 |
43 |
+ |
44 |
+ 04 Aug 2012; Anthony G. Basile <blueness@g.o> |
45 |
+ libxdl_view-4.2-r2.ebuild: |
46 |
+ Stable ppc, bug #429232 |
47 |
+ |
48 |
+ 03 Aug 2012; Agostino Sarubbo <ago@g.o> libxdl_view-4.2-r2.ebuild: |
49 |
+ Stable for amd64, wrt bug #429232 |
50 |
+ |
51 |
+*libxdl_view-4.2-r2 (30 May 2012) |
52 |
+ |
53 |
+ 30 May 2012; Justin Lecher <jlec@g.o> files/4.2-as-needed.patch, |
54 |
+ +libxdl_view-4.2-r2.ebuild: |
55 |
+ Fix underlinking |
56 |
+ |
57 |
+ 30 Apr 2012; Justin Lecher <jlec@g.o> libxdl_view-4.2-r1.ebuild, |
58 |
+ metadata.xml: |
59 |
+ Handle static libs |
60 |
+ |
61 |
+ 21 Nov 2011; Justin Lecher <jlec@g.o> libxdl_view-4.2-r1.ebuild: |
62 |
+ keyworded for ~x86-macos ~x64-macos, tested by Johan Hattne #390123 |
63 |
+ |
64 |
+ 28 Jun 2011; Brent Baude <ranger@g.o> libxdl_view-4.2-r1.ebuild: |
65 |
+ Marking libxdl_view-4.2-r1 ppc for bug 352117 |
66 |
+ |
67 |
+ 01 Feb 2011; Thomas Kahle <tomka@g.o> libxdl_view-4.2-r1.ebuild: |
68 |
+ x86 stable per bug 352117 |
69 |
+ |
70 |
+ 20 Jan 2011; Markos Chandras <hwoarang@g.o> libxdl_view-4.2-r1.ebuild: |
71 |
+ Stable on amd64 wrt bug #352117 |
72 |
+ |
73 |
+ 19 Jan 2011; Justin Lecher <jlec@g.o> files/4.2-as-needed.patch, |
74 |
+ files/4.2-impl-dec.patch: |
75 |
+ Parallel compilation fix, 352119 |
76 |
+ |
77 |
+ 16 Jan 2011; Kacper Kowalik <xarthisius@g.o> |
78 |
+ libxdl_view-4.2-r1.ebuild: |
79 |
+ marked ~ppc wrt #303931 |
80 |
+ |
81 |
+*libxdl_view-4.2-r1 (11 Nov 2010) |
82 |
+ |
83 |
+ 11 Nov 2010; Justin Lecher <jlec@g.o> files/4.2-as-needed.patch, |
84 |
+ -libxdl_view-4.2.ebuild, +files/4.2-impl-dec.patch, |
85 |
+ +libxdl_view-4.2-r1.ebuild: |
86 |
+ Fix for implict declarations and underlinking |
87 |
+ |
88 |
+ 29 Mar 2010; Justin Lecher <jlec@g.o> libxdl_view-4.2.ebuild: |
89 |
+ Keyworded for ~x86-linux ~amd64-linux |
90 |
+ |
91 |
+*libxdl_view-4.2 (02 Feb 2010) |
92 |
+ |
93 |
+ 02 Feb 2010; Justin Lecher (jlec) <jlec@g.o> |
94 |
+ +files/4.2-as-needed.patch, +libxdl_view-4.2.ebuild, +metadata.xml: |
95 |
+ Xlib for ccp4 |
96 |
+ |
97 |
|
98 |
diff --git a/x11-libs/libxdl_view/files/4.2-as-needed.patch b/x11-libs/libxdl_view/files/4.2-as-needed.patch |
99 |
new file mode 100644 |
100 |
index 0000000..a59d199 |
101 |
--- /dev/null |
102 |
+++ b/x11-libs/libxdl_view/files/4.2-as-needed.patch |
103 |
@@ -0,0 +1,16 @@ |
104 |
+diff --git a/Makefile.am b/Makefile.am |
105 |
+index 347bb21..cbb04db 100644 |
106 |
+--- a/Makefile.am |
107 |
++++ b/Makefile.am |
108 |
+@@ -19,7 +19,11 @@ lib_LTLIBRARIES = libxdl_view.la libxdl_viewextra.la |
109 |
+ ## The initial value of this was a mistake! |
110 |
+ ## See the libtool doc. |
111 |
+ libxdl_view_la_LDFLAGS = -version-info 2:0:0 |
112 |
++libxdl_view_la_LIBADD = -lX11 -lXt -lm |
113 |
++ |
114 |
+ libxdl_viewextra_la_LDFLAGS = -version-info 0:0:0 |
115 |
++libxdl_viewextra_la_DEPENDENCIES = libxdl_view.la |
116 |
++libxdl_viewextra_la_LIBADD = -lm -lxdl_view -ljwc_c |
117 |
+ |
118 |
+ EXTRA_DIST = doc/xdl_view_icon.gif doc/xdl_view_top.gif \ |
119 |
+ doc/xdl_view_top.html doc/xdl_view_updates.html \ |
120 |
|
121 |
diff --git a/x11-libs/libxdl_view/files/4.2-impl-dec.patch b/x11-libs/libxdl_view/files/4.2-impl-dec.patch |
122 |
new file mode 100644 |
123 |
index 0000000..4181437 |
124 |
--- /dev/null |
125 |
+++ b/x11-libs/libxdl_view/files/4.2-impl-dec.patch |
126 |
@@ -0,0 +1,13 @@ |
127 |
+diff --git a/Makefile.am b/Makefile.am |
128 |
+index 347bb21..aa41ba3 100644 |
129 |
+--- a/Makefile.am |
130 |
++++ b/Makefile.am |
131 |
+@@ -3,6 +3,8 @@ |
132 |
+ |
133 |
+ ## Process this file with automake. |
134 |
+ |
135 |
++CFLAGS += -std=c99 -L.libs |
136 |
++ |
137 |
+ libxdl_view_la_SOURCES = xdl_base_fr.c xdl_blank_obj.c xdl_image.c \ |
138 |
+ xdl_bg.c xdl_img_rd.c xdl_film_img.c xdl_io_window.c \ |
139 |
+ xdl_menu_area.c xdl_text_tab.c xdl_panel_itm.c \ |
140 |
|
141 |
diff --git a/x11-libs/libxdl_view/files/libxdl_view-4.2-ccp4-6.3.0.patch b/x11-libs/libxdl_view/files/libxdl_view-4.2-ccp4-6.3.0.patch |
142 |
new file mode 100644 |
143 |
index 0000000..5111efb |
144 |
--- /dev/null |
145 |
+++ b/x11-libs/libxdl_view/files/libxdl_view-4.2-ccp4-6.3.0.patch |
146 |
@@ -0,0 +1,131 @@ |
147 |
+--- a/src/xdl_laue_sim.c |
148 |
++++ b/src/xdl_laue_sim.c |
149 |
+@@ -790,8 +790,8 @@ |
150 |
+ if (gnomr>0.1) |
151 |
+ { |
152 |
+ gd->gnom = 1; |
153 |
+- thg = piov2 - 0.5*atanf(gnomr/ctof); |
154 |
+- gd->gdist = filmr/tanf(thg); |
155 |
++ thg = piov2 - 0.5*atan(gnomr/ctof); |
156 |
++ gd->gdist = filmr/tan(thg); |
157 |
+ gd->gnomr = gnomr; |
158 |
+ } |
159 |
+ |
160 |
+@@ -891,12 +891,12 @@ |
161 |
+ { |
162 |
+ if (gd->gnom) |
163 |
+ { |
164 |
+- r1 = sqrtf (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
165 |
++ r1 = sqrt (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
166 |
+ if (r1>=gnomr) |
167 |
+ { |
168 |
+- twoth = atanf (r1/gd->ctof); |
169 |
++ twoth = atan (r1/gd->ctof); |
170 |
+ thg = piov2 - 0.5*twoth; |
171 |
+- r2 = gd->gdist*tanf(thg); |
172 |
++ r2 = gd->gdist*tan(thg); |
173 |
+ ratio = r2/r1; |
174 |
+ d = ratio*((gd->xf[i]/gd->filmr)*(float)gd->half_size); |
175 |
+ gd->xpix[i] = gd->half_size + ((d>0.0)?(int)(d+0.5):(int)(d-0.5)); |
176 |
+@@ -4330,11 +4330,11 @@ |
177 |
+ ratio = 1.0; |
178 |
+ if (gd->gnom) |
179 |
+ { |
180 |
+- r1 = sqrtf (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
181 |
++ r1 = sqrt (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
182 |
+ if (r1<gd->gnomr) continue; |
183 |
+- twoth = atanf (r1/gd->ctof); |
184 |
++ twoth = atan (r1/gd->ctof); |
185 |
+ thg = piov2 - 0.5*twoth; |
186 |
+- r2 = gd->gdist*tanf(thg); |
187 |
++ r2 = gd->gdist*tan(thg); |
188 |
+ ratio = r2/r1; |
189 |
+ } |
190 |
+ xs = ratio*gd->ps_scal*gd->xf[k]*gd->mm_to_p + gd->ps_xc; |
191 |
+@@ -4421,11 +4421,11 @@ |
192 |
+ ratio = 1.0; |
193 |
+ if (gd->gnom) |
194 |
+ { |
195 |
+- r1 = sqrtf (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
196 |
++ r1 = sqrt (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
197 |
+ if (r1<gd->gnomr) continue; |
198 |
+- twoth = atanf (r1/gd->ctof); |
199 |
++ twoth = atan (r1/gd->ctof); |
200 |
+ thg = piov2 - 0.5*twoth; |
201 |
+- r2 = gd->gdist*tanf(thg); |
202 |
++ r2 = gd->gdist*tan(thg); |
203 |
+ ratio = r2/r1; |
204 |
+ } |
205 |
+ xs = ratio*gd->ps_scal*gd->xf[k]*gd->mm_to_p + gd->ps_xc; |
206 |
+@@ -4502,11 +4502,11 @@ |
207 |
+ ratio = 1.0; |
208 |
+ if (gd->gnom) |
209 |
+ { |
210 |
+- r1 = sqrtf (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
211 |
++ r1 = sqrt (gd->xf[k]*gd->xf[k]+gd->yf[k]*gd->yf[k]); |
212 |
+ if (r1<gd->gnomr) continue; |
213 |
+- twoth = atanf (r1/gd->ctof); |
214 |
++ twoth = atan (r1/gd->ctof); |
215 |
+ thg = piov2 - 0.5*twoth; |
216 |
+- r2 = gd->gdist*tanf(thg); |
217 |
++ r2 = gd->gdist*tan(thg); |
218 |
+ ratio = r2/r1; |
219 |
+ } |
220 |
+ xs = ratio*gd->ps_scal*gd->xf[k]*gd->mm_to_p + gd->ps_xc; |
221 |
+@@ -4733,11 +4733,11 @@ |
222 |
+ ratio = 1.0; |
223 |
+ if (gd->gnom) |
224 |
+ { |
225 |
+- r1 = sqrtf (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
226 |
++ r1 = sqrt (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
227 |
+ if (r1<gd->gnomr) continue; |
228 |
+- twoth = atanf (r1/gd->ctof); |
229 |
++ twoth = atan (r1/gd->ctof); |
230 |
+ thg = piov2 - 0.5*twoth; |
231 |
+- r2 = gd->gdist*tanf(thg); |
232 |
++ r2 = gd->gdist*tan(thg); |
233 |
+ ratio = r2/r1; |
234 |
+ } |
235 |
+ xs = ratio*gd->ps_scal*gd->xf[i]*gd->mm_to_p + gd->ps_xc; |
236 |
+@@ -5015,11 +5015,11 @@ |
237 |
+ ratio = 1.0; |
238 |
+ if (gd->gnom) |
239 |
+ { |
240 |
+- r1 = sqrtf (gd->xf[lt->idx]*gd->xf[lt->idx] |
241 |
++ r1 = sqrt (gd->xf[lt->idx]*gd->xf[lt->idx] |
242 |
+ +gd->yf[lt->idx]*gd->yf[lt->idx]); |
243 |
+- twoth = atanf (r1/gd->ctof); |
244 |
++ twoth = atan (r1/gd->ctof); |
245 |
+ thg = piov2 - 0.5*twoth; |
246 |
+- r2 = gd->gdist*tanf(thg); |
247 |
++ r2 = gd->gdist*tan(thg); |
248 |
+ ratio = r2/r1; |
249 |
+ } |
250 |
+ xsp = ratio*gd->ps_scal*gd->xf[lt->idx]*gd->mm_to_p + gd->ps_xc; |
251 |
+@@ -5408,8 +5408,8 @@ |
252 |
+ if (gnomr>0.1) |
253 |
+ { |
254 |
+ gd->gnom = 1; |
255 |
+- thg = piov2 - 0.5*atanf(gnomr/ctof); |
256 |
+- gd->gdist = filmr/tanf(thg); |
257 |
++ thg = piov2 - 0.5*atan(gnomr/ctof); |
258 |
++ gd->gdist = filmr/tan(thg); |
259 |
+ gd->gnomr = gnomr; |
260 |
+ } |
261 |
+ |
262 |
+@@ -5419,12 +5419,12 @@ |
263 |
+ { |
264 |
+ if (gd->gnom) |
265 |
+ { |
266 |
+- r1 = sqrtf (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
267 |
++ r1 = sqrt (gd->xf[i]*gd->xf[i]+gd->yf[i]*gd->yf[i]); |
268 |
+ if (r1>=gnomr) |
269 |
+ { |
270 |
+- twoth = atanf (r1/gd->ctof); |
271 |
++ twoth = atan (r1/gd->ctof); |
272 |
+ thg = piov2 - 0.5*twoth; |
273 |
+- r2 = gd->gdist*tanf(thg); |
274 |
++ r2 = gd->gdist*tan(thg); |
275 |
+ ratio = r2/r1; |
276 |
+ d = ratio*((gd->xf[i]/gd->filmr)*(float)gd->half_size); |
277 |
+ gd->xpix[i] = gd->half_size + ((d>0.0)?(int)(d+0.5):(int)(d-0.5)); |
278 |
|
279 |
diff --git a/x11-libs/libxdl_view/libxdl_view-4.2-r3.ebuild b/x11-libs/libxdl_view/libxdl_view-4.2-r3.ebuild |
280 |
new file mode 100644 |
281 |
index 0000000..1389a5b |
282 |
--- /dev/null |
283 |
+++ b/x11-libs/libxdl_view/libxdl_view-4.2-r3.ebuild |
284 |
@@ -0,0 +1,33 @@ |
285 |
+# Copyright 1999-2013 Gentoo Foundation |
286 |
+# Distributed under the terms of the GNU General Public License v2 |
287 |
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxdl_view/libxdl_view-4.2-r2.ebuild,v 1.5 2012/08/21 16:12:38 johu Exp $ |
288 |
+ |
289 |
+EAPI=5 |
290 |
+ |
291 |
+AUTOTOOLS_AUTORECONF=yes |
292 |
+ |
293 |
+inherit autotools-utils |
294 |
+ |
295 |
+DESCRIPTION="An X-Windows Based Toolkit" |
296 |
+HOMEPAGE="http://www.ccp4.ac.uk/dist/x-windows/xdl_view/doc/xdl_view_top.html" |
297 |
+SRC_URI="ftp://ftp.ccp4.ac.uk/jwc/${P}.tar.gz" |
298 |
+ |
299 |
+LICENSE="GPL-2" |
300 |
+SLOT="0" |
301 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
302 |
+IUSE="static-libs" |
303 |
+ |
304 |
+RDEPEND=" |
305 |
+ dev-libs/libjwc_c |
306 |
+ x11-libs/libXt" |
307 |
+DEPEND="${RDEPEND}" |
308 |
+ |
309 |
+PATCHES=( |
310 |
+ "${FILESDIR}"/${P}-ccp4-6.3.0.patch |
311 |
+ "${FILESDIR}"/${PV}-impl-dec.patch |
312 |
+ "${FILESDIR}"/${PV}-as-needed.patch ) |
313 |
+ |
314 |
+src_prepare() { |
315 |
+ rm missing || die |
316 |
+ autotools-utils_src_prepare |
317 |
+} |
318 |
|
319 |
diff --git a/x11-libs/libxdl_view/metadata.xml b/x11-libs/libxdl_view/metadata.xml |
320 |
new file mode 100644 |
321 |
index 0000000..4bf6dbc |
322 |
--- /dev/null |
323 |
+++ b/x11-libs/libxdl_view/metadata.xml |
324 |
@@ -0,0 +1,8 @@ |
325 |
+<?xml version="1.0" encoding="UTF-8"?> |
326 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
327 |
+<pkgmetadata> |
328 |
+ <herd>sci</herd> |
329 |
+ <maintainer> |
330 |
+ <email>sci@g.o</email> |
331 |
+ </maintainer> |
332 |
+</pkgmetadata> |