Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-misc/elmer-post/, sci-misc/elmer-post/files/
Date: Sat, 30 Jan 2021 14:30:57
Message-Id: 1612016955.ba983cfe38d725df4ec45976a19d2c34e438301b.andrewammerlaan@gentoo
1 commit: ba983cfe38d725df4ec45976a19d2c34e438301b
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Sat Jan 30 14:29:15 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sat Jan 30 14:29:15 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ba983cfe
7
8 sci-misc/elmer-post: remove pack, now included in elmer-fem[post]
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
11
12 sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild | 59 ----
13 sci-misc/elmer-post/elmer-post-9999.ebuild | 61 ----
14 .../files/elmer-post-6.0_p4651-bfr-overflow.patch | 16 -
15 .../files/elmer-post-6.0_p4651-impl-dec.patch | 15 -
16 .../files/elmer-post-6.0_p4651-oof.patch | 181 -----------
17 .../files/elmer-post-6.0_p4651-tcltk8.6.patch | 355 ---------------------
18 .../files/elmer-post-6.0_p4651-underlinking.patch | 20 --
19 sci-misc/elmer-post/metadata.xml | 11 -
20 8 files changed, 718 deletions(-)
21
22 diff --git a/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild b/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild
23 deleted file mode 100644
24 index 83c8288ac..000000000
25 --- a/sci-misc/elmer-post/elmer-post-6.0_p4651.ebuild
26 +++ /dev/null
27 @@ -1,59 +0,0 @@
28 -# Copyright 1999-2021 Gentoo Authors
29 -# Distributed under the terms of the GNU General Public License v2
30 -
31 -EAPI=5
32 -
33 -AUTOTOOLS_AUTORECONF=true
34 -
35 -inherit autotools-utils flag-o-matic multilib toolchain-funcs
36 -
37 -ELMER_ROOT="elmerfem"
38 -MY_PN=${PN/elmer-/}
39 -
40 -DESCRIPTION="Finite element programs, libraries, and visualization tools - elmerpost"
41 -HOMEPAGE="https://www.csc.fi/web/elmer"
42 -SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -IUSE="debug opengl"
48 -
49 -RDEPEND="
50 - dev-lang/tcl:0=
51 - dev-lang/tk:0=
52 - opengl? (
53 - virtual/opengl
54 - media-libs/ftgl
55 - )
56 - sci-misc/elmer-fem"
57 -DEPEND="${RDEPEND}
58 - virtual/pkgconfig"
59 -
60 -S="${WORKDIR}/post"
61 -
62 -PATCHES=(
63 - "${FILESDIR}"/${P}-oof.patch
64 - "${FILESDIR}"/${P}-underlinking.patch
65 - "${FILESDIR}"/${P}-tcltk8.6.patch
66 - "${FILESDIR}"/${P}-bfr-overflow.patch
67 - "${FILESDIR}"/${P}-impl-dec.patch
68 -)
69 -
70 -src_prepare() {
71 - use opengl && append-cppflags $($(tc-getPKG_CONFIG) --cflags ftgl)
72 - autotools-utils_src_prepare
73 -}
74 -
75 -src_configure() {
76 - local myeconfargs=(
77 - $(use_with debug)
78 - --with-matc
79 - --with-x
80 - )
81 - autotools-utils_src_configure
82 -}
83 -
84 -src_install() {
85 - autotools-utils_src_install ELMER_POST_DATADIR="/usr/share/elmerpost"
86 -}
87
88 diff --git a/sci-misc/elmer-post/elmer-post-9999.ebuild b/sci-misc/elmer-post/elmer-post-9999.ebuild
89 deleted file mode 100644
90 index 07258a6d5..000000000
91 --- a/sci-misc/elmer-post/elmer-post-9999.ebuild
92 +++ /dev/null
93 @@ -1,61 +0,0 @@
94 -# Copyright 1999-2021 Gentoo Authors
95 -# Distributed under the terms of the GNU General Public License v2
96 -
97 -EAPI=5
98 -
99 -AUTOTOOLS_AUTORECONF=true
100 -
101 -inherit autotools-utils flag-o-matic multilib subversion toolchain-funcs
102 -
103 -ELMER_ROOT="elmerfem"
104 -MY_PN=${PN/elmer-/}
105 -
106 -DESCRIPTION="Finite element programs, libraries, and visualization tools - elmerpost"
107 -HOMEPAGE="https://www.csc.fi/web/elmer"
108 -SRC_URI=""
109 -ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}"
110 -ESVN_PROJECT="${MY_PN}"
111 -
112 -LICENSE="GPL-2"
113 -SLOT="0"
114 -KEYWORDS=""
115 -IUSE="debug opengl"
116 -
117 -RDEPEND="
118 - dev-lang/tcl:0=
119 - dev-lang/tk:0=
120 - opengl? (
121 - virtual/opengl
122 - media-libs/ftgl
123 - )
124 - sci-misc/elmer-fem"
125 -DEPEND="${RDEPEND}
126 - virtual/pkgconfig"
127 -
128 -S="${WORKDIR}/post"
129 -
130 -PATCHES=(
131 - "${FILESDIR}"/${PN}-6.0_p4651-oof.patch
132 - "${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch
133 - "${FILESDIR}"/${PN}-6.0_p4651-tcltk8.6.patch
134 - "${FILESDIR}"/${PN}-6.0_p4651-bfr-overflow.patch
135 - "${FILESDIR}"/${PN}-6.0_p4651-impl-dec.patch
136 -)
137 -
138 -src_prepare() {
139 - use opengl && append-cppflags $($(tc-getPKG_CONFIG) --cflags ftgl)
140 - autotools-utils_src_prepare
141 -}
142 -
143 -src_configure() {
144 - local myeconfargs=(
145 - $(use_with debug)
146 - --with-matc
147 - --with-x
148 - )
149 - autotools-utils_src_configure
150 -}
151 -
152 -src_install() {
153 - autotools-utils_src_install ELMER_POST_DATADIR="/usr/share/elmerpost"
154 -}
155
156 diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch
157 deleted file mode 100644
158 index b5d78116c..000000000
159 --- a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-bfr-overflow.patch
160 +++ /dev/null
161 @@ -1,16 +0,0 @@
162 - src/sico2elmer/sico2elmerc.c | 2 +-
163 - 1 file changed, 1 insertion(+), 1 deletion(-)
164 -
165 -diff --git a/src/sico2elmer/sico2elmerc.c b/src/sico2elmer/sico2elmerc.c
166 -index 1522030..6ae875c 100755
167 ---- a/src/sico2elmer/sico2elmerc.c
168 -+++ b/src/sico2elmer/sico2elmerc.c
169 -@@ -27,7 +27,7 @@ void STDCALLBULL FC_FUNC(postgrid,POSTGRID) (float *xi, /* unscaled x coordinat
170 - int imax, jmax, kcmax, ktmax;
171 - float *staggered_grid[2];
172 - float actual_scaled_coord[3];
173 -- char groupid[4], filename[80], yes_no, *suffix=".ep";
174 -+ char groupid[8], filename[80], yes_no, *suffix=".ep";
175 - FILE *ptFile;
176 -
177 - /* constants */
178
179 diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch
180 deleted file mode 100644
181 index 30c82595e..000000000
182 --- a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-impl-dec.patch
183 +++ /dev/null
184 @@ -1,15 +0,0 @@
185 - src/screensave.c | 1 +
186 - 1 file changed, 1 insertion(+)
187 -
188 -diff --git a/src/screensave.c b/src/screensave.c
189 -index ae4f577..810f54c 100755
190 ---- a/src/screensave.c
191 -+++ b/src/screensave.c
192 -@@ -26,6 +26,7 @@
193 - #include <math.h>
194 - #include <stdlib.h>
195 - #include <strings.h>
196 -+#include <string.h>
197 -
198 -
199 - #include <GL/gl.h>
200
201 diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch
202 deleted file mode 100644
203 index cd9368748..000000000
204 --- a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-oof.patch
205 +++ /dev/null
206 @@ -1,181 +0,0 @@
207 - src/ElmerPost.c | 2 +-
208 - src/Makefile.am | 16 ++++++++--------
209 - src/camera/context.cc | 2 +-
210 - src/camera/file.cc | 2 +-
211 - src/camera/glp.h | 4 ++--
212 - src/elmerpost.h | 2 +-
213 - src/fttext.cpp | 2 +-
214 - src/graphics/graphics.h | 2 +-
215 - src/second.c | 2 +-
216 - src/sico2elmer/sico2elmerc.c | 2 +-
217 - 10 files changed, 18 insertions(+), 18 deletions(-)
218 -
219 -diff --git a/src/ElmerPost.c b/src/ElmerPost.c
220 -index 2a238b0..9c63113 100644
221 ---- a/src/ElmerPost.c
222 -+++ b/src/ElmerPost.c
223 -@@ -45,7 +45,7 @@
224 -
225 - #define MODULE_MAIN
226 - #include "elmerpost.h"
227 --#include "../config.h"
228 -+#include "config.h"
229 -
230 - #include <tcl.h>
231 - #include <tk.h>
232 -diff --git a/src/Makefile.am b/src/Makefile.am
233 -index f4234a1..cd35e72 100755
234 ---- a/src/Makefile.am
235 -+++ b/src/Makefile.am
236 -@@ -98,31 +98,31 @@ install-data-local:
237 -
238 - @echo "Instaling help to ${ELMER_POST_DATADIR}/help"
239 - mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/help
240 -- cp -r help/* $(DESTDIR)$(ELMER_POST_DATADIR)/help
241 -+ cp -r $(srcdir)/help/* $(DESTDIR)$(ELMER_POST_DATADIR)/help
242 - rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/help -name .svn`
243 -
244 - @echo "Instaling tcl scripts to ${ELMER_POST_DATADIR}/tcl"
245 - mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/tcl
246 -- cp -r tcl/* $(DESTDIR)$(ELMER_POST_DATADIR)/tcl
247 -+ cp -r $(srcdir)/tcl/* $(DESTDIR)$(ELMER_POST_DATADIR)/tcl
248 - rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/tcl -name .svn`
249 -
250 - @echo "Instaling initialization scripts to ${ELMER_POST_DATADIR}/lib"
251 - mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/lib
252 -- cp -r lib/* $(DESTDIR)$(ELMER_POST_DATADIR)/lib
253 -+ cp -r $(srcdir)/lib/* $(DESTDIR)$(ELMER_POST_DATADIR)/lib
254 - rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/lib -name .svn`
255 -
256 - @echo "Installing fonts to $(ELMER_POST_DATADIR)/fonts"
257 - mkdir -p $(DESTDIR)$(ELMER_POST_DATADIR)/fonts
258 -- cp -r fonts/* $(DESTDIR)$(ELMER_POST_DATADIR)/fonts
259 -+ cp -r $(srcdir)/fonts/* $(DESTDIR)$(ELMER_POST_DATADIR)/fonts
260 - rm -rf `find $(DESTDIR)$(ELMER_POST_DATADIR)/fonts -name .svn`
261 - #
262 - # Copy the help and tcl
263 - #
264 - dist-hook:
265 -- cp -r tcl $(distdir)
266 -- cp -r help $(distdir)
267 -- cp -r lib $(distdir)
268 -- cp -r fonts $(distdir)
269 -+ cp -r $(srcdir)/tcl $(distdir)
270 -+ cp -r $(srcdir)/help $(distdir)
271 -+ cp -r $(srcdir)/lib $(distdir)
272 -+ cp -r $(srcdir)/fonts $(distdir)
273 - rm -rf `find $(distdir)/ -name .svn`
274 - rm -rf `find $(distdir)/ -name CVS`
275 - rm -rf `find $(distdir)/ -name \#*`
276 -diff --git a/src/camera/context.cc b/src/camera/context.cc
277 -index c2bcbd4..e7926b3 100755
278 ---- a/src/camera/context.cc
279 -+++ b/src/camera/context.cc
280 -@@ -38,7 +38,7 @@
281 - // Include necessary headers.
282 - //
283 -
284 --#include <../../config.h>
285 -+#include <config.h>
286 -
287 - #include "glp.h"
288 - #include <math.h>
289 -diff --git a/src/camera/file.cc b/src/camera/file.cc
290 -index 1f4cd30..6544830 100755
291 ---- a/src/camera/file.cc
292 -+++ b/src/camera/file.cc
293 -@@ -47,7 +47,7 @@
294 - //
295 -
296 -
297 --#include <../../config.h>
298 -+#include <config.h>
299 -
300 - #include <stdio.h>
301 - #include <stdlib.h>
302 -diff --git a/src/camera/glp.h b/src/camera/glp.h
303 -index 8c65318..31a2e49 100755
304 ---- a/src/camera/glp.h
305 -+++ b/src/camera/glp.h
306 -@@ -35,7 +35,7 @@
307 -
308 - #ifndef _GL_GLP_H_
309 - # define _GL_GLP_H_
310 --#include "../../config.h"
311 -+#include "config.h"
312 -
313 - #if defined(WIN32) ||defined(MINGW32)
314 - #include <windows.h>
315 -@@ -49,7 +49,7 @@
316 - // Include necessary headers.
317 - //
318 - #include <GL/gl.h>
319 --#include "../../config.h"
320 -+#include "config.h"
321 -
322 -
323 -
324 -diff --git a/src/elmerpost.h b/src/elmerpost.h
325 -index 53560c0..7d312df 100755
326 ---- a/src/elmerpost.h
327 -+++ b/src/elmerpost.h
328 -@@ -44,7 +44,7 @@
329 - *
330 - ******************************************************************************/
331 -
332 --#include "../config.h"
333 -+#include "config.h"
334 -
335 - #if defined(WIN32) || defined(MINGW32)
336 - #include <windows.h>
337 -diff --git a/src/fttext.cpp b/src/fttext.cpp
338 -index 9ee88f8..48a3e0a 100644
339 ---- a/src/fttext.cpp
340 -+++ b/src/fttext.cpp
341 -@@ -10,7 +10,7 @@
342 - // Date: 15. Jan 2008
343 - //-----------------------------------------------------------------------------------
344 - #if defined(HAVE_CONFIG_H)
345 --#include "../config.h"
346 -+#include "config.h"
347 - #endif
348 -
349 - #if defined(HAVE_FTGL_NEW) || defined(HAVE_FTGL_OLD)
350 -diff --git a/src/graphics/graphics.h b/src/graphics/graphics.h
351 -index 6e702c1..5d6d81b 100755
352 ---- a/src/graphics/graphics.h
353 -+++ b/src/graphics/graphics.h
354 -@@ -67,7 +67,7 @@
355 - *
356 - ******************************************************************************/
357 -
358 --#include "../../config.h"
359 -+#include "config.h"
360 -
361 - #ifndef MINGW32
362 -
363 -diff --git a/src/second.c b/src/second.c
364 -index b719556..128e404 100755
365 ---- a/src/second.c
366 -+++ b/src/second.c
367 -@@ -45,7 +45,7 @@
368 - ******************************************************************************/
369 -
370 -
371 --#include "../config.h"
372 -+#include "config.h"
373 - #ifndef WIN32
374 -
375 - #include <sys/types.h>
376 -diff --git a/src/sico2elmer/sico2elmerc.c b/src/sico2elmer/sico2elmerc.c
377 -index 1522030..23f3abb 100755
378 ---- a/src/sico2elmer/sico2elmerc.c
379 -+++ b/src/sico2elmer/sico2elmerc.c
380 -@@ -1,6 +1,6 @@
381 - #include "sico2elmer.h"
382 -
383 --#include "../../config.h"
384 -+#include "config.h"
385 -
386 - /*
387 - jv: added fortran function name and char ptr macros to (hopefully) enhance portability
388
389 diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch
390 deleted file mode 100644
391 index 31596e6f4..000000000
392 --- a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-tcltk8.6.patch
393 +++ /dev/null
394 @@ -1,355 +0,0 @@
395 - src/ElmerPost.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
396 - src/modules/matctcl.c | 8 ++++++++
397 - src/modules/readfile.c | 4 ++++
398 - src/modules/transforms.c | 40 ++++++++++++++++++++++++++++++++++++++++
399 - src/screensave.c | 12 ++++++++++++
400 - 5 files changed, 112 insertions(+)
401 -
402 -diff --git a/src/ElmerPost.c b/src/ElmerPost.c
403 -index 2a238b0..b9e8df5 100644
404 ---- a/src/ElmerPost.c
405 -+++ b/src/ElmerPost.c
406 -@@ -183,7 +183,11 @@ static int SetParentObject( ClientData cl,Tcl_Interp *interp,int argc,char **arg
407 - obj = (object_t *)obj_find( &VisualObject,argv[1] );
408 - if ( !obj )
409 - {
410 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
411 - sprintf( interp->result, "parent: no such object [%s]", argv[1] );
412 -+#else
413 -+ sprintf( Tcl_GetStringResult(interp), "parent: no such object [%s]", argv[1] );
414 -+#endif
415 - return TCL_ERROR;
416 - }
417 -
418 -@@ -346,13 +350,21 @@ static int ClipPlane( ClientData cl,Tcl_Interp *interp,int argc,char **argv)
419 - int i,id;
420 -
421 - if ( argc != 6 ) {
422 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
423 - sprintf( interp->result, "clip: Wrong number of arguments.\n" );
424 -+#else
425 -+ sprintf( Tcl_GetStringResult(interp), "clip: Wrong number of arguments.\n" );
426 -+#endif
427 - return TCL_ERROR;
428 - }
429 -
430 - sscanf( argv[1], "%d", &id );
431 - if ( id < 0 || id > 5 ) {
432 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
433 - sprintf( interp->result, "clip: Plane argument should be from a int from 0..5.\n" );
434 -+#else
435 -+ sprintf( Tcl_GetStringResult(interp), "clip: Plane argument should be from a int from 0..5.\n" );
436 -+#endif
437 - return TCL_ERROR;
438 - }
439 - CurrentObject->ClipPlane[id] = id;
440 -@@ -779,7 +791,11 @@ static int TimeStep(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
441 -
442 - if ( argc != 2 )
443 - {
444 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
445 - sprintf( interp->result, "c_TimeStep: wrong number of parameters.\n" );
446 -+#else
447 -+ sprintf( Tcl_GetStringResult(interp), "c_TimeStep: wrong number of parameters.\n" );
448 -+#endif
449 - return TCL_ERROR;
450 - }
451 -
452 -@@ -790,7 +806,11 @@ static int TimeStep(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
453 -
454 - if ( n < 0 || n >= ElementModel->NofTimesteps )
455 - {
456 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
457 - sprintf( interp->result, "c_TimeStep: Invalid timestep.\n" );
458 -+#else
459 -+ sprintf( Tcl_GetStringResult(interp), "c_TimeStep: Invalid timestep.\n" );
460 -+#endif
461 - return TCL_ERROR;
462 - }
463 -
464 -@@ -1028,7 +1048,11 @@ static int CurrentCamera(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
465 -
466 - if ( argc != 2 )
467 - {
468 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
469 - sprintf( interp->result, "camera: wrong number of arguments\n" );
470 -+#else
471 -+ sprintf( Tcl_GetStringResult(interp), "camera: wrong number of arguments\n" );
472 -+#endif
473 - return TCL_ERROR;
474 - }
475 -
476 -@@ -1038,7 +1062,11 @@ static int CurrentCamera(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
477 - if ( strcmp( cam->Name, argv[1] ) == 0 )
478 - {
479 - cam_set_current( cam );
480 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
481 - sprintf( interp->result, "%d", i );
482 -+#else
483 -+ sprintf( Tcl_GetStringResult(interp), "%d", i );
484 -+#endif
485 - return TCL_OK;
486 - }
487 - }
488 -@@ -1548,7 +1576,11 @@ static int ShowString( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
489 -
490 - if ( argc < 5 )
491 - {
492 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
493 - sprintf( interp->result, "string: Wrong number of arguments.\n" );
494 -+#else
495 -+ sprintf( Tcl_GetStringResult(interp), "string: Wrong number of arguments.\n" );
496 -+#endif
497 - return TCL_ERROR;
498 - }
499 -
500 -@@ -1587,7 +1619,11 @@ static int SetFont( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
501 - int i;
502 - if ( argc < 1 )
503 - {
504 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
505 - sprintf( interp->result, "Set font: Wrong number of arguments.\n" );
506 -+#else
507 -+ sprintf( Tcl_GetStringResult(interp), "Set font: Wrong number of arguments.\n" );
508 -+#endif
509 - return TCL_ERROR;
510 - }
511 -
512 -@@ -2146,7 +2182,11 @@ static int WindowSize( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
513 -
514 -
515 - if ( argc < 3 ) {
516 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
517 - sprintf( interp->result, "Usage: winsize width height" );
518 -+#else
519 -+ sprintf( Tcl_GetStringResult(interp), "Usage: winsize width height" );
520 -+#endif
521 - return TCL_ERROR;
522 - }
523 -
524 -@@ -2184,7 +2224,11 @@ static int WindowSize( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
525 - static int WindowPosition( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
526 - {
527 - if ( argc < 3 ) {
528 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
529 - sprintf( interp->result, "Usage: winpos xpos ypos" );
530 -+#else
531 -+ sprintf( Tcl_GetStringResult(interp), "Usage: winpos xpos ypos" );
532 -+#endif
533 - return TCL_ERROR;
534 - }
535 -
536 -@@ -2210,7 +2254,11 @@ static int MPlayer( ClientData cl, Tcl_Interp *interp, int argc, char **argv )
537 - #else
538 -
539 - if( argc < 2 ) {
540 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
541 - sprintf( interp->result, "Usage: mplayer filename");
542 -+#else
543 -+ sprintf( Tcl_GetStringResult(interp), "Usage: mplayer filename");
544 -+#endif
545 - return TCL_ERROR;
546 - }
547 -
548 -diff --git a/src/modules/matctcl.c b/src/modules/matctcl.c
549 -index 4d6b64f..b69f9ba 100755
550 ---- a/src/modules/matctcl.c
551 -+++ b/src/modules/matctcl.c
552 -@@ -79,11 +79,19 @@ static VARIABLE *matc_tcl( VARIABLE *ptr )
553 -
554 - FREEMEM( command );
555 -
556 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
557 - if ( TCLInterp->result && (n=strlen(TCLInterp->result))>0 )
558 - {
559 - res = var_temp_new( TYPE_STRING,1,n );
560 - for( i=0; i<n; i++ ) M( res,0,i ) = TCLInterp->result[i];
561 - }
562 -+#else
563 -+ if ( Tcl_GetStringResult(TCLInterp) && (n=strlen(Tcl_GetStringResult(TCLInterp)))>0 )
564 -+ {
565 -+ res = var_temp_new( TYPE_STRING,1,n );
566 -+ for( i=0; i<n; i++ ) M( res,0,i ) = Tcl_GetStringResult(TCLInterp)[i];
567 -+ }
568 -+#endif
569 -
570 - return res;
571 - }
572 -diff --git a/src/modules/readfile.c b/src/modules/readfile.c
573 -index 254601c..0bcc8f7 100755
574 ---- a/src/modules/readfile.c
575 -+++ b/src/modules/readfile.c
576 -@@ -90,7 +90,11 @@ static int epReadFile( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
577 - fp = fopen( argv[1], "r" );
578 - if ( !fp )
579 - {
580 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
581 - sprintf( interp->result, "ReadModel: can't open file [%s]\n",argv[1] );
582 -+#else
583 -+ sprintf( Tcl_GetStringResult(interp), "ReadModel: can't open file [%s]\n",argv[1] );
584 -+#endif
585 - return TCL_ERROR;
586 - }
587 -
588 -diff --git a/src/modules/transforms.c b/src/modules/transforms.c
589 -index 19808ff..4038210 100755
590 ---- a/src/modules/transforms.c
591 -+++ b/src/modules/transforms.c
592 -@@ -72,7 +72,11 @@ static int TrnPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
593 -
594 - if ( argc != 2 )
595 - {
596 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
597 - sprintf( interp->result, "cTrnPriority: wrong number of parameters\n" );
598 -+#else
599 -+ sprintf( Tcl_GetStringResult(interp), "cTrnPriority: wrong number of parameters\n" );
600 -+#endif
601 - return TCL_ERROR;
602 - }
603 -
604 -@@ -80,7 +84,11 @@ static int TrnPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
605 -
606 - if ( n <= 0 )
607 - {
608 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
609 - sprintf( interp->result, "cTrnPriority: wrong number of parameters\n" );
610 -+#else
611 -+ sprintf( Tcl_GetStringResult(interp), "cTrnPriority: wrong number of parameters\n" );
612 -+#endif
613 - return TCL_ERROR;
614 - }
615 -
616 -@@ -96,7 +104,11 @@ static int RotPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
617 -
618 - if ( argc != 2 )
619 - {
620 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
621 - sprintf( interp->result, "cRotPrioryty: wrong number of parameters\n" );
622 -+#else
623 -+ sprintf( Tcl_GetStringResult(interp), "cRotPrioryty: wrong number of parameters\n" );
624 -+#endif
625 - return TCL_ERROR;
626 - }
627 -
628 -@@ -104,7 +116,11 @@ static int RotPriority(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
629 -
630 - if ( n <= 0 )
631 - {
632 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
633 - sprintf( interp->result, "cRotPriority: wrong number of parameters\n" );
634 -+#else
635 -+ sprintf( Tcl_GetStringResult(interp), "cRotPriority: wrong number of parameters\n" );
636 -+#endif
637 - return TCL_ERROR;
638 - }
639 -
640 -@@ -130,7 +146,11 @@ static int Rotate(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
641 -
642 - if ( argc != 4 )
643 - {
644 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
645 - sprintf( interp->result, "cRotate: wrong number of parameters\n" );
646 -+#else
647 -+ sprintf( Tcl_GetStringResult(interp), "cRotate: wrong number of parameters\n" );
648 -+#endif
649 - return TCL_ERROR;
650 - }
651 -
652 -@@ -138,7 +158,11 @@ static int Rotate(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
653 -
654 - if ( n <= 0 )
655 - {
656 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
657 - sprintf( interp->result, "cRotate: wrong number of parameters\n" );
658 -+#else
659 -+ sprintf( Tcl_GetStringResult(interp), "cRotate: wrong number of parameters\n" );
660 -+#endif
661 - return TCL_ERROR;
662 - }
663 -
664 -@@ -156,7 +180,11 @@ static int Scale(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
665 -
666 - if ( argc != 4 )
667 - {
668 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
669 - sprintf( interp->result, "cScale: wrong number of parameters\n" );
670 -+#else
671 -+ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" );
672 -+#endif
673 - return TCL_ERROR;
674 - }
675 -
676 -@@ -164,7 +192,11 @@ static int Scale(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
677 -
678 - if ( n <= 0 )
679 - {
680 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
681 - sprintf( interp->result, "cScale: wrong number of parameters\n" );
682 -+#else
683 -+ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" );
684 -+#endif
685 - return TCL_ERROR;
686 - }
687 -
688 -@@ -182,13 +214,21 @@ static int Translate(ClientData cl,Tcl_Interp *interp,int argc,char **argv)
689 -
690 - if ( argc != 4 )
691 - {
692 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
693 - sprintf( interp->result, "cScale: wrong number of parameters\n" );
694 -+#else
695 -+ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" );
696 -+#endif
697 - return TCL_ERROR;
698 - }
699 -
700 - if ( (n = sscanf( argv[3], "%lf %lf %lf", &x,&y,&z ) ) <= 0 )
701 - {
702 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
703 - sprintf( interp->result, "cScale: wrong number of parameters\n" );
704 -+#else
705 -+ sprintf( Tcl_GetStringResult(interp), "cScale: wrong number of parameters\n" );
706 -+#endif
707 - return TCL_ERROR;
708 - }
709 -
710 -diff --git a/src/screensave.c b/src/screensave.c
711 -index ae4f577..703fe24 100755
712 ---- a/src/screensave.c
713 -+++ b/src/screensave.c
714 -@@ -56,7 +56,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
715 - sprintf( interp->result,
716 - "screensave: can't open [%s] for writing!\n", argv[1] );
717 - #else
718 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
719 - sprintf( interp->result,
720 -+#else
721 -+ sprintf( Tcl_GetStringResult(interp),
722 -+#endif
723 - "screensave: can't open [%s] for writing:\n%s\n",
724 - argv[1], strerror(errno) );
725 - #endif
726 -@@ -76,7 +80,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
727 - sprintf( interp->result,
728 - "screensave: can't allocate enough memory!\n" );
729 - #else
730 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
731 - sprintf( interp->result,
732 -+#else
733 -+ sprintf( Tcl_GetStringResult(interp),
734 -+#endif
735 - "screensave: can't allocate enough memory:\n%s\n",
736 - strerror(errno) );
737 - #endif
738 -@@ -100,7 +108,11 @@ static int ScreenSave( ClientData cl,Tcl_Interp *interp,int argc,char **argv )
739 - sprintf( interp->result,
740 - "screensave: error writing to [%s]!\n", argv[1] );
741 - #else
742 -+#if TCL_MAJOR_VERSION <=8 && TCL_MINOR_VERSION < 6
743 - sprintf( interp->result,
744 -+#else
745 -+ sprintf( Tcl_GetStringResult(interp),
746 -+#endif
747 - "screensave: error writing to [%s]:\n%s\n",
748 - argv[1], strerror(errno) );
749 - #endif
750
751 diff --git a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch b/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch
752 deleted file mode 100644
753 index 45e0d3e71..000000000
754 --- a/sci-misc/elmer-post/files/elmer-post-6.0_p4651-underlinking.patch
755 +++ /dev/null
756 @@ -1,20 +0,0 @@
757 - src/Makefile.am | 4 +++-
758 - 1 file changed, 3 insertions(+), 1 deletion(-)
759 -
760 -diff --git a/src/Makefile.am b/src/Makefile.am
761 -index f4234a1..6d99d31 100755
762 ---- a/src/Makefile.am
763 -+++ b/src/Makefile.am
764 -@@ -23,9 +23,11 @@ ElmerPost_LDADD=\
765 - ./visuals/libvisuals.a \
766 - ./graphics/libgraphics.a \
767 - ./glaux/libglaux.a \
768 -- ./tk/libtk.a
769 -+ ./tk/libtk.a \
770 -+ -lX11
771 -
772 - QueryGLXExt_SOURCES=QueryGLXExt.c
773 -+QueryGLXExt_LDADD=-lX11
774 -
775 - all-local: screensave.so
776 - clean-local:
777
778 diff --git a/sci-misc/elmer-post/metadata.xml b/sci-misc/elmer-post/metadata.xml
779 deleted file mode 100644
780 index 070aa2029..000000000
781 --- a/sci-misc/elmer-post/metadata.xml
782 +++ /dev/null
783 @@ -1,11 +0,0 @@
784 -<?xml version="1.0" encoding="UTF-8"?>
785 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
786 -<pkgmetadata>
787 - <maintainer type="project">
788 - <email>sci@g.o</email>
789 - <name>Gentoo Science Project</name>
790 - </maintainer>
791 - <upstream>
792 - <remote-id type="sourceforge">svn</remote-id>
793 - </upstream>
794 -</pkgmetadata>