1 |
commit: cc1e91fc1e8a7302af0ab19c8ad3c5ef5721ec92 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 1 18:36:14 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 1 18:36:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc1e91fc |
7 |
|
8 |
sci-biology/seaview: Port to EAPI 7 |
9 |
|
10 |
* Fix building against GCC 10 / -fno-common |
11 |
* Fix building against Clang |
12 |
|
13 |
Closes: https://bugs.gentoo.org/707842 |
14 |
Closes: https://bugs.gentoo.org/741198 |
15 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
16 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
17 |
|
18 |
...eaview-4.6-Wreserved-user-defined-literal.patch | 76 ++++++++++++++ |
19 |
.../seaview/files/seaview-4.6-fno-common.patch | 110 +++++++++++++++++++++ |
20 |
.../{seaview-4.6.ebuild => seaview-4.6-r1.ebuild} | 29 +++--- |
21 |
3 files changed, 203 insertions(+), 12 deletions(-) |
22 |
|
23 |
diff --git a/sci-biology/seaview/files/seaview-4.6-Wreserved-user-defined-literal.patch b/sci-biology/seaview/files/seaview-4.6-Wreserved-user-defined-literal.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..c9595748e90 |
26 |
--- /dev/null |
27 |
+++ b/sci-biology/seaview/files/seaview-4.6-Wreserved-user-defined-literal.patch |
28 |
@@ -0,0 +1,76 @@ |
29 |
+--- a/align.cxx |
30 |
++++ b/align.cxx |
31 |
+@@ -754,7 +754,7 @@ |
32 |
+ alignitems[clustalopt + MAX_MSA_ALGOS].label(strdup(options)); |
33 |
+ alignitems[clustalopt + MAX_MSA_ALGOS].flags = attr; |
34 |
+ if (view->alignment_algorithm < 2) alignitems[clustalopt + MAX_MSA_ALGOS + 3].flags = FL_MENU_INACTIVE; |
35 |
+- delete options; |
36 |
++ delete[] options; |
37 |
+ view->menu_align = alignitems; |
38 |
+ view->menubar->add("Align", 0, NULL, (void*)view->menu_align, FL_SUBMENU_POINTER); |
39 |
+ if (view->count_msa_algos >= MAX_MSA_ALGOS) (alignitems + clustalopt + MAX_MSA_ALGOS + 2)->deactivate(); |
40 |
+--- a/seaview.cxx |
41 |
++++ b/seaview.cxx |
42 |
+@@ -3314,7 +3314,7 @@ |
43 |
+ if(p != NULL) *p = 0; |
44 |
+ if(printout_black == TEXT_ONLY) strcat(suggested, ".txt"); |
45 |
+ else { |
46 |
+- strcat(suggested, "."PDF_OR_PS_EXT); |
47 |
++ strcat(suggested, "." PDF_OR_PS_EXT); |
48 |
+ } |
49 |
+ if( view->alt_col_rank != NULL ) { |
50 |
+ for(anerr = 0; anerr < view->tot_seqs; anerr++) |
51 |
+@@ -3424,7 +3424,7 @@ |
52 |
+ |
53 |
+ pdf_form = new Fl_Window(415, 90); |
54 |
+ pdf_form->box(FL_FLAT_BOX); |
55 |
+-pdf_form->label("Set "PDF_OR_PS" output options"); |
56 |
++pdf_form->label("Set " PDF_OR_PS " output options"); |
57 |
+ |
58 |
+ x = 5 + (int)fl_width("block size:"); y = 5; w = 50; h = 25; |
59 |
+ sizeinput = new Fl_Input(x, y, w, h, "font size:"); |
60 |
+@@ -5000,10 +5000,10 @@ |
61 |
+ {"Save prot alignmt", 0,file_menu_callback, 0, FL_MENU_INACTIVE}, |
62 |
+ {"Save bootstrap replicates", 0,file_menu_callback, 0, FL_MENU_INACTIVE | FL_MENU_DIVIDER}, |
63 |
+ #if !defined(__APPLE__) |
64 |
+- {"Prepare "PDF_OR_PS"", 0, file_menu_callback, 0, 0}, |
65 |
+- {""PDF_OR_PS" options...", 0, file_menu_callback, 0, FL_MENU_DIVIDER}, |
66 |
++ {"Prepare " PDF_OR_PS "", 0, file_menu_callback, 0, 0}, |
67 |
++ {"" PDF_OR_PS " options...", 0, file_menu_callback, 0, FL_MENU_DIVIDER}, |
68 |
+ #else |
69 |
+- {"Prepare "PDF_OR_PS"", 0, file_menu_callback, 0, FL_MENU_DIVIDER}, |
70 |
++ {"Prepare " PDF_OR_PS "", 0, file_menu_callback, 0, FL_MENU_DIVIDER}, |
71 |
+ #endif |
72 |
+ {"Concatenate", 0,file_menu_callback, 0, FL_MENU_DIVIDER}, |
73 |
+ {"New window", FL_COMMAND | 'n', file_menu_callback, 0, 0}, |
74 |
+--- a/treedraw.cxx |
75 |
++++ b/treedraw.cxx |
76 |
+@@ -210,7 +210,7 @@ |
77 |
+ {"Save all trees", 0, file_callback, NULL, 0}, |
78 |
+ {"Save patristic distances", 0, patristic_callback, NULL, FL_MENU_DIVIDER}, |
79 |
+ {"Print", FL_COMMAND | 'p', file_callback, NULL, 0}, |
80 |
+- {"Save as "PDF_OR_PS"", 0, file_callback, NULL, 0}, |
81 |
++ {"Save as " PDF_OR_PS "", 0, file_callback, NULL, 0}, |
82 |
+ {"Save as SVG", 0, file_callback, NULL, 0}, |
83 |
+ {"A4", 0, file_callback, NULL, FL_MENU_RADIO | 0}, |
84 |
+ {"Letter", 0, file_callback, NULL, FL_MENU_RADIO | 0}, |
85 |
+--- a/xfmatpt.cxx |
86 |
++++ b/xfmatpt.cxx |
87 |
+@@ -205,7 +205,7 @@ |
88 |
+ compute->callback(compute_proc, fdui); |
89 |
+ fdui->compute_butt = compute; |
90 |
+ |
91 |
+-Fl_Widget *postscript = cre_button(fin, curr_y, &width, but_height, fontsize, "Write "PDF_OR_PS); |
92 |
++Fl_Widget *postscript = cre_button(fin, curr_y, &width, but_height, fontsize, "Write " PDF_OR_PS); |
93 |
+ fin += width; |
94 |
+ postscript->callback(plot_button_proc, fdui); |
95 |
+ |
96 |
+@@ -870,7 +870,7 @@ |
97 |
+ #ifndef MICRO |
98 |
+ matpt->form->hide(); Fl::flush(); // because of strange bug on 32-bit Linux only |
99 |
+ #endif |
100 |
+- fl_message("Dot plot is now in file\n%s\nin "PDF_OR_PS" format", surface->outfname()); |
101 |
++ fl_message("Dot plot is now in file\n%s\nin " PDF_OR_PS " format", surface->outfname()); |
102 |
+ delete surface; |
103 |
+ #ifndef MICRO |
104 |
+ matpt->form->show(); Fl::flush(); |
105 |
|
106 |
diff --git a/sci-biology/seaview/files/seaview-4.6-fno-common.patch b/sci-biology/seaview/files/seaview-4.6-fno-common.patch |
107 |
new file mode 100644 |
108 |
index 00000000000..24cc28dfb3b |
109 |
--- /dev/null |
110 |
+++ b/sci-biology/seaview/files/seaview-4.6-fno-common.patch |
111 |
@@ -0,0 +1,110 @@ |
112 |
+--- a/csrc/dnapars.c |
113 |
++++ b/csrc/dnapars.c |
114 |
+@@ -77,41 +77,43 @@ |
115 |
+ /* function prototypes */ |
116 |
+ |
117 |
+ |
118 |
+-Char infilename[FNMLNGTH], outfilename[FNMLNGTH], intreename[FNMLNGTH], *outtreename, |
119 |
++extern Char infilename[FNMLNGTH], outfilename[FNMLNGTH], intreename[FNMLNGTH], *outtreename, |
120 |
+ weightfilename[FNMLNGTH]; |
121 |
+ char basechar[32]="ACMGRSVTWYHKDBNO???????????????"; |
122 |
+-node *root; |
123 |
+-long chars, col, msets, ith, njumble, jumb, maxtrees; |
124 |
++extern node *root; |
125 |
++extern long chars, col, msets, ith, njumble, jumb; |
126 |
++long maxtrees; |
127 |
+ /* chars = number of sites in actual sequences */ |
128 |
+-long inseed, inseed0; |
129 |
+-double threshold; |
130 |
+-boolean jumble, usertree, thresh, weights, thorough, rearrfirst, |
131 |
+- trout, progress, stepbox, ancseq, mulsets, justwts, firstset, mulf, |
132 |
+- multf; |
133 |
++extern long inseed, inseed0; |
134 |
++extern double threshold; |
135 |
++boolean thorough, rearrfirst, mulf, multf; |
136 |
++extern boolean justwts, ancseq, weights, thresh, jumble, usertree, trout, mulsets, progress, stepbox, firstset; |
137 |
+ steptr oldweight; |
138 |
+-longer seed; |
139 |
+-pointarray treenode; /* pointers to all nodes in tree */ |
140 |
+-long *enterorder; |
141 |
++extern longer seed; |
142 |
++extern pointarray treenode; /* pointers to all nodes in tree */ |
143 |
++extern long *enterorder; |
144 |
+ long *zeros; |
145 |
+ |
146 |
+ /* local variables for Pascal maketree, propagated globally for C version: */ |
147 |
+ |
148 |
+-long minwhich; |
149 |
++extern long minwhich; |
150 |
+ static double like, minsteps, bestyet, bestlike, bstlike2; |
151 |
+-boolean lastrearr, recompute; |
152 |
+-double nsteps[maxuser]; |
153 |
+-long **fsteps; |
154 |
+-node *there, *oldnufork; |
155 |
+-long *place; |
156 |
+-bestelm *bestrees; |
157 |
+-long *threshwt; |
158 |
++extern boolean lastrearr, recompute; |
159 |
++extern double nsteps[maxuser]; |
160 |
++extern long **fsteps; |
161 |
++extern node *there; |
162 |
++node *oldnufork; |
163 |
++extern long *place; |
164 |
++extern bestelm *bestrees; |
165 |
++extern long *threshwt; |
166 |
+ baseptr nothing; |
167 |
+-gbases *garbage; |
168 |
+-node *temp, *temp1, *temp2, *tempsum, *temprm, *tempadd, *tempf, *tmp, *tmp1, |
169 |
++extern gbases *garbage; |
170 |
++extern node *temp, *temp1; |
171 |
++node *temp2, *tempsum, *temprm, *tempadd, *tempf, *tmp, *tmp1, |
172 |
+ *tmp2, *tmp3, *tmprm, *tmpadd; |
173 |
+-boolean *names; |
174 |
++extern boolean *names; |
175 |
+ node *grbg; |
176 |
+-char *progname; |
177 |
++extern char *progname; |
178 |
+ |
179 |
+ |
180 |
+ static void getoptions(int arg_maxtrees, dnapars_S_option s_option) |
181 |
+--- a/csrc/phylip.c |
182 |
++++ b/csrc/phylip.c |
183 |
+@@ -35,6 +35,8 @@ |
184 |
+ |
185 |
+ #include "phylip.h" |
186 |
+ |
187 |
++boolean javarun; |
188 |
++ |
189 |
+ #ifdef WIN32 |
190 |
+ #include <windows.h> |
191 |
+ /* for console code (clear screen, text color settings) */ |
192 |
+--- a/csrc/phylip.h |
193 |
++++ b/csrc/phylip.h |
194 |
+@@ -342,7 +342,7 @@ |
195 |
+ /* Lower-triangular format. */ |
196 |
+ #define MAT_LOWERTRI (MAT_LOWER | MAT_MACHINE) |
197 |
+ |
198 |
+-boolean javarun; |
199 |
++extern boolean javarun; |
200 |
+ |
201 |
+ typedef long *steptr; |
202 |
+ typedef long longer[6]; |
203 |
+@@ -363,7 +363,6 @@ |
204 |
+ extern boolean ibmpc, ansi, tranvsp; |
205 |
+ //extern naym *nayme; /* names of species */ |
206 |
+ extern char* *nayme; /* names of species */ |
207 |
+-boolean firstplotblock; // for debugging BMP output |
208 |
+ |
209 |
+ #define ebcdic EBCDIC |
210 |
+ |
211 |
+--- a/csrc/protpars.c |
212 |
++++ b/csrc/protpars.c |
213 |
+@@ -127,7 +127,7 @@ |
214 |
+ node *temp, *temp1; |
215 |
+ Char ch; |
216 |
+ aas tmpa; |
217 |
+-char *progname; |
218 |
++extern char *progname; |
219 |
+ |
220 |
+ /* Local variables for maketree, propagated globally for c version: */ |
221 |
+ long minwhich; |
222 |
|
223 |
diff --git a/sci-biology/seaview/seaview-4.6.ebuild b/sci-biology/seaview/seaview-4.6-r1.ebuild |
224 |
similarity index 82% |
225 |
rename from sci-biology/seaview/seaview-4.6.ebuild |
226 |
rename to sci-biology/seaview/seaview-4.6-r1.ebuild |
227 |
index 4ad8ad61b72..469f8872812 100644 |
228 |
--- a/sci-biology/seaview/seaview-4.6.ebuild |
229 |
+++ b/sci-biology/seaview/seaview-4.6-r1.ebuild |
230 |
@@ -1,9 +1,9 @@ |
231 |
-# Copyright 1999-2016 Gentoo Foundation |
232 |
+# Copyright 1999-2020 Gentoo Authors |
233 |
# Distributed under the terms of the GNU General Public License v2 |
234 |
|
235 |
-EAPI=6 |
236 |
+EAPI=7 |
237 |
|
238 |
-inherit eutils toolchain-funcs |
239 |
+inherit desktop toolchain-funcs |
240 |
|
241 |
DESCRIPTION="A graphical multiple sequence alignment editor" |
242 |
HOMEPAGE="http://pbil.univ-lyon1.fr/software/seaview.html" |
243 |
@@ -15,19 +15,24 @@ KEYWORDS="~amd64 ~x86" |
244 |
IUSE="+xft" |
245 |
|
246 |
RDEPEND=" |
247 |
+ sci-biology/clustalw:2 |
248 |
+ sci-biology/phyml |
249 |
+ || ( |
250 |
+ sci-libs/libmuscle |
251 |
+ sci-biology/muscle |
252 |
+ ) |
253 |
sys-libs/zlib |
254 |
- x11-libs/fltk:1 |
255 |
+ x11-libs/fltk:1[xft?] |
256 |
x11-libs/libX11 |
257 |
- xft? ( |
258 |
- x11-libs/libXft |
259 |
- x11-libs/fltk:1[xft] ) |
260 |
- sci-biology/clustalw:2 |
261 |
- || ( sci-libs/libmuscle sci-biology/muscle ) |
262 |
- sci-biology/phyml" |
263 |
-DEPEND="${RDEPEND} |
264 |
- virtual/pkgconfig" |
265 |
+ xft? ( x11-libs/libXft )" |
266 |
+DEPEND="${RDEPEND}" |
267 |
+BDEPEND="virtual/pkgconfig" |
268 |
|
269 |
S="${WORKDIR}/${PN}" |
270 |
+PATCHES=( |
271 |
+ "${FILESDIR}"/${PN}-4.6-fno-common.patch |
272 |
+ "${FILESDIR}"/${PN}-4.6-Wreserved-user-defined-literal.patch |
273 |
+) |
274 |
|
275 |
src_prepare() { |
276 |
default |