1 |
commit: 8b3eb99d64f4c759f18d3ec114ae482d536e5571 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sat Jan 30 09:23:50 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat Jan 30 09:23:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8b3eb99d |
7 |
|
8 |
sci-libs/cgnstools: remove pack, replace by cgnslib[tools] |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
11 |
|
12 |
sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild | 63 ----------- |
13 |
sci-libs/cgnstools/files/cgnstools-2.5.4.patch | 121 --------------------- |
14 |
.../files/cgnstools-2.5.4_cgns_to_vtk2D.patch | 49 --------- |
15 |
.../cgnstools/files/cgnstools-2.5.4_gcc4.4.patch | 84 -------------- |
16 |
.../cgnstools/files/cgnstools-2.5.4_tcltk.patch | 114 ------------------- |
17 |
sci-libs/cgnstools/metadata.xml | 11 -- |
18 |
6 files changed, 442 deletions(-) |
19 |
|
20 |
diff --git a/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild b/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild |
21 |
deleted file mode 100644 |
22 |
index 250cb60ed..000000000 |
23 |
--- a/sci-libs/cgnstools/cgnstools-2.5.4-r1.ebuild |
24 |
+++ /dev/null |
25 |
@@ -1,63 +0,0 @@ |
26 |
-# Copyright 1999-2015 Gentoo Foundation |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
- |
29 |
-EAPI=5 |
30 |
- |
31 |
-inherit eutils multilib versionator |
32 |
- |
33 |
-MY_P="${PN}-$(replace_all_version_separators '-')" |
34 |
- |
35 |
-DESCRIPTION="The CFD General Notation System (CGNS) tools" |
36 |
-HOMEPAGE="http://www.cgns.org/" |
37 |
-SRC_URI="mirror://sourceforge/cgns/${MY_P}.tar.gz" |
38 |
- |
39 |
-LICENSE="ZLIB" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="~amd64 ~x86" |
42 |
-IUSE="hdf5 tcl tk X" |
43 |
- |
44 |
-DEPEND=" |
45 |
- hdf5? ( sci-libs/cgnslib[hdf5] ) |
46 |
- !hdf5? ( sci-libs/cgnslib[-hdf5] ) |
47 |
- tcl? ( dev-lang/tcl:0= ) |
48 |
- tk? ( dev-lang/tk:0= )" |
49 |
- |
50 |
-RDEPEND="${DEPEND}" |
51 |
- |
52 |
-S=${WORKDIR}/${PN} |
53 |
- |
54 |
-PATCHES=( |
55 |
- "${FILESDIR}"/${P}.patch |
56 |
- "${FILESDIR}"/${P}_cgns_to_vtk2D.patch |
57 |
- "${FILESDIR}"/${P}_gcc4.4.patch |
58 |
- "${FILESDIR}"/${P}_tcltk.patch |
59 |
-) |
60 |
- |
61 |
-src_prepare() { |
62 |
- epatch "${PATCHES[@]}" |
63 |
-} |
64 |
- |
65 |
-src_configure() { |
66 |
- local myconf |
67 |
- myconf="${myconf} --enable-gcc --enable-64bit --with-cgns=/usr/include --bindir=${D}/usr/bin --datadir=${D}/usr/share/${PN}" |
68 |
- use hdf5 && myconf="${myconf} --with-adfh=/usr/include/adfh" |
69 |
- |
70 |
- if use tcl ; then |
71 |
- TCLVER="$(echo 'puts [info tclversion]' | $(type -P tclsh))" |
72 |
- myconf="${myconf} $(use_with tcl tcl /usr/$(get_libdir)/tcl${TCLVER})" |
73 |
- sed -i -e "s|TKLIBS = |TKLIBS = -ltcl${TCLVER} |" make.defs.in || die |
74 |
- fi |
75 |
- |
76 |
- if use tk ; then |
77 |
- # no, there's no tkversion, and type -P wish requires running X |
78 |
- TKVER="$(echo 'puts [info tclversion]' | $(type -P tclsh))" |
79 |
- myconf="${myconf} $(use_with tk tk /usr/$(get_libdir)/tk${TKVER})" |
80 |
- sed -i -e "s|TKLIBS = |TKLIBS = -ltk${TKVER} |" make.defs.in || die |
81 |
- fi |
82 |
- |
83 |
- econf \ |
84 |
- $(use_with X x) \ |
85 |
- ${myconf} |
86 |
- |
87 |
- sed -i -e "s|${D}||" cgconfig || die |
88 |
-} |
89 |
|
90 |
diff --git a/sci-libs/cgnstools/files/cgnstools-2.5.4.patch b/sci-libs/cgnstools/files/cgnstools-2.5.4.patch |
91 |
deleted file mode 100644 |
92 |
index 2ca665966..000000000 |
93 |
--- a/sci-libs/cgnstools/files/cgnstools-2.5.4.patch |
94 |
+++ /dev/null |
95 |
@@ -1,121 +0,0 @@ |
96 |
---- cgnstools-2.5.2.orig/configure |
97 |
-+++ cgnstools-2.5.2/configure |
98 |
-@@ -1568,9 +1568,9 @@ |
99 |
- fi |
100 |
- cgnslib=`grep "^LIBCGNS *=" $CGNSDIR/make.$SYSTEM | sed "s/^LIBCGNS *= *//"` |
101 |
- if test -z `echo $cgnslib | grep "/"`; then |
102 |
-- CGNSLIB=\$\(CGNSDIR\)/lib/\$\(LIBCGNS\) |
103 |
-+ CGNSLIB=/usr/lib/libcgns.so |
104 |
- else |
105 |
-- CGNSLIB=\$\(CGNSDIR\)/\$\(LIBCGNS\) |
106 |
-+ CGNSLIB=/usr/lib/libcgns.so |
107 |
- fi |
108 |
- HDF5LIBS="\$(HDF5LIB) \$(SZIPLIB) \$(ZLIBLIB)" |
109 |
- else |
110 |
-@@ -1583,7 +1583,7 @@ |
111 |
- `ls -dr ../* 2>/dev/null` \ |
112 |
- `ls -dr ../../* 2>/dev/null` \ |
113 |
- `ls -dr ../../../* 2>/dev/null` ; do |
114 |
-- if test -f "$d/src/ADF.h" && test -f "$d/src/ADFH.h"; then |
115 |
-+ if test -f "$d/ADF.h" && test -f "$d/src/ADFH.h"; then |
116 |
- adfhdir=`(cd $d; pwd)` |
117 |
- echo "$ac_t""$adfhdir" 1>&6 |
118 |
- break |
119 |
-@@ -1591,12 +1591,12 @@ |
120 |
- done |
121 |
- else |
122 |
- echo "$ac_t""$adfhdir" 1>&6 |
123 |
-- if test ! -f "$adfhdir/src/ADF.h" || test ! -f "$adfhdir/src/ADFH.h"; then |
124 |
-+ if test ! -f "$adfhdir/ADF.h" || test ! -f "$adfhdir/ADFH.h"; then |
125 |
- { echo "configure: error: $adfhdir directory does not contain src/ADF.h and src/ADFH.h" 1>&2; exit 1; } |
126 |
- fi |
127 |
- fi |
128 |
-- ADFDIR=$adfhdir/src |
129 |
-- CGNSLIB=$adfhdir/\$\(SYSTEM\)/libcgns.\$\(A\) |
130 |
-+ ADFDIR=$adfhdir |
131 |
-+ CGNSLIB=/usr/lib/libcgns.so |
132 |
- if test -f "$adfhdir/make.$SYSTEM"; then |
133 |
- hdf5lib=`grep "^HDF5LIB *=" $adfhdir/make.$SYSTEM | sed "s/^HDF5LIB *= *//"` |
134 |
- sziplib=`grep "^SZIPLIB *=" $adfhdir/make.$SYSTEM | sed "s/^SZIPLIB *= *//"` |
135 |
-@@ -1997,7 +1997,7 @@ |
136 |
- `ls -dr ../tk8* 2>/dev/null` \ |
137 |
- `ls -dr ../../tk8* 2>/dev/null` \ |
138 |
- `ls -dr ../../../tk8* 2>/dev/null` ; do |
139 |
-- if test -f "$d/unix/tkConfig.sh"; then |
140 |
-+ if test -f "$d/../tkConfig.sh"; then |
141 |
- tkdir=`(cd $d; pwd)` |
142 |
- break |
143 |
- fi |
144 |
-@@ -2034,13 +2034,13 @@ |
145 |
- { echo "configure: error: Tcl directory $tcldir not found" 1>&2; exit 1; } |
146 |
- fi |
147 |
- tcldir=`(cd $tcldir; pwd)` |
148 |
-- if test ! -f "$tcldir/unix/tclConfig.sh"; then |
149 |
-+ if test ! -f "$tcldir/../tclConfig.sh"; then |
150 |
- { echo "configure: error: tclConfig.sh not found in $tcldir/unix" 1>&2; exit 1; } |
151 |
- fi |
152 |
- if test -z "$tkdir"; then |
153 |
- dir=`dirname $tcldir` |
154 |
- for d in `ls -dr $dir/tk* 2>/dev/null` ; do |
155 |
-- if test -f "$d/unix/tkConfig.sh"; then |
156 |
-+ if test -f "$d/../tkConfig.sh"; then |
157 |
- tkdir=$d |
158 |
- break |
159 |
- fi |
160 |
-@@ -2056,14 +2056,14 @@ |
161 |
- { echo "configure: error: Tk directory $tkdir not found" 1>&2; exit 1; } |
162 |
- fi |
163 |
- tkdir=`(cd $tkdir; pwd)` |
164 |
-- TKCONFIG="$tkdir/unix/tkConfig.sh" |
165 |
-+ TKCONFIG="$tkdir/../tkConfig.sh" |
166 |
- if test ! -f "$TKCONFIG"; then |
167 |
- { echo "configure: error: tkConfig.sh not found in $tkdir/unix" 1>&2; exit 1; } |
168 |
- fi |
169 |
- if test -z "$tcldir"; then |
170 |
- dir=`dirname $tkdir` |
171 |
- for d in `ls -dr $dir/tcl* 2>/dev/null` ; do |
172 |
-- if test -f "$d/unix/tclConfig.sh"; then |
173 |
-+ if test -f "$d/../tclConfig.sh"; then |
174 |
- tcldir=$d |
175 |
- break |
176 |
- fi |
177 |
-@@ -2073,8 +2073,8 @@ |
178 |
- fi |
179 |
- fi |
180 |
- . $TKCONFIG |
181 |
-- tcllib=`ls -d $tcldir/unix/libtcl8* 2>/dev/null` |
182 |
-- tklib=`ls -d $tkdir/unix/libtk8* 2>/dev/null` |
183 |
-+ tcllib=`ls -d $tcldir/libtcl8* 2>/dev/null` |
184 |
-+ tklib=`ls -d $tkdir/libtk8* 2>/dev/null` |
185 |
- X11LIBS="" |
186 |
- TKINCS="-I$tcldir/generic -I$tkdir/generic" |
187 |
- if test "$ac_cv_cygwin" = "yes"; then |
188 |
---- cgnstools-2.5.2.orig/make.defs.in |
189 |
-+++ cgnstools-2.5.2/make.defs.in |
190 |
-@@ -3,7 +3,7 @@ |
191 |
- SYSTEM = @SYSTEM@ |
192 |
- CGNSDIR = @CGNSDIR@ |
193 |
- |
194 |
--include $(CGNSDIR)/make.$(SYSTEM) |
195 |
-+# include $(CGNSDIR)/make.$(SYSTEM) |
196 |
- |
197 |
- ADFINC = @ADFDIR@ |
198 |
- |
199 |
-@@ -40,7 +40,7 @@ |
200 |
- # strip command for executables - set to true if not used |
201 |
- #------------------------------------------------------------------------ |
202 |
- |
203 |
--STRIP = @STRIP@ |
204 |
-+STRIP = true |
205 |
- |
206 |
- #------------------------------------------------------------------------ |
207 |
- # library archiver and ranlib |
208 |
-@@ -78,7 +78,7 @@ |
209 |
- |
210 |
- BIN_INSTALL_DIR = @BIN_INSTALL_DIR@ |
211 |
- EXE_INSTALL_DIR = @EXE_INSTALL_DIR@ |
212 |
--WSH_INSTALL_DIR = $(EXE_INSTALL_DIR)/cgnswish |
213 |
-+WSH_INSTALL_DIR = $(EXE_INSTALL_DIR) |
214 |
- LIB_INSTALL_DIR = @LIB_INSTALL_DIR@ |
215 |
- |
216 |
- #----------------------------------------------------------------------- |
217 |
|
218 |
diff --git a/sci-libs/cgnstools/files/cgnstools-2.5.4_cgns_to_vtk2D.patch b/sci-libs/cgnstools/files/cgnstools-2.5.4_cgns_to_vtk2D.patch |
219 |
deleted file mode 100644 |
220 |
index aa9972dd1..000000000 |
221 |
--- a/sci-libs/cgnstools/files/cgnstools-2.5.4_cgns_to_vtk2D.patch |
222 |
+++ /dev/null |
223 |
@@ -1,49 +0,0 @@ |
224 |
---- cgnstools-2.5.4.orig/utilities/cgns_to_vtk.c 2007-09-05 18:24:50.000000000 +0200 |
225 |
-+++ cgnstools-2.5.4/utilities/cgns_to_vtk.c 2009-10-30 19:44:58.000000000 +0100 |
226 |
-@@ -197,7 +197,7 @@ |
227 |
- |
228 |
- static int get_nodes (int nz, ZoneType_t zonetype, int *sizes) |
229 |
- { |
230 |
-- int i, j, n, ncoords; |
231 |
-+ int i, j, n, ncoords, ii, jj; |
232 |
- int rind[6], rng[2][3]; |
233 |
- DataType_t datatype; |
234 |
- float *xyz; |
235 |
-@@ -248,6 +248,14 @@ |
236 |
- strcpy (coordtype, " "); |
237 |
- xyz = (float *) malloc (nnodes * sizeof(float)); |
238 |
- nodes = (Node *) malloc (nnodes * sizeof(Node)); |
239 |
-+ |
240 |
-+ // make sure the array is initialized with 0.0 (important for 2D meshes) |
241 |
-+ for(jj= 0; jj < nnodes; jj++){ |
242 |
-+ for(ii= 0; ii < 3; ii++){ |
243 |
-+ nodes[jj][ii] = 0.0; |
244 |
-+ } |
245 |
-+ } |
246 |
-+ |
247 |
- if (xyz == NULL || nodes == NULL) |
248 |
- FATAL ("malloc failed for nodes"); |
249 |
- |
250 |
-@@ -980,7 +988,7 @@ |
251 |
- FATAL (NULL); |
252 |
- printf (" using base %d - %s\n", cgnsbase, name); |
253 |
- fflush (stdout); |
254 |
-- if (PhyDim != 3 /*|| (CellDim != 1 && CellDim != 3)*/) |
255 |
-+ if (PhyDim != 3 && CellDim != 2) |
256 |
- FATAL ("cell and/or physical dimension invalid"); |
257 |
- |
258 |
- if (cg_nzones (cgnsfn, cgnsbase, &nzones)) |
259 |
-@@ -1043,8 +1051,12 @@ |
260 |
- fprintf (fp, "%s\n", ascii ? "ASCII" : "BINARY"); |
261 |
- if (zonetype == Structured) { |
262 |
- fprintf (fp, "DATASET STRUCTURED_GRID\n"); |
263 |
-+ int dim3 = sizes[2]; |
264 |
-+ if ( CellDim == 2 ) { |
265 |
-+ dim3 = 1; |
266 |
-+ } |
267 |
- fprintf (fp, "DIMENSIONS %d %d %d\n", |
268 |
-- sizes[0], sizes[1], sizes[2]); |
269 |
-+ sizes[0], sizes[1], dim3); |
270 |
- } |
271 |
- else |
272 |
- fprintf (fp, "DATASET UNSTRUCTURED_GRID\n"); |
273 |
|
274 |
diff --git a/sci-libs/cgnstools/files/cgnstools-2.5.4_gcc4.4.patch b/sci-libs/cgnstools/files/cgnstools-2.5.4_gcc4.4.patch |
275 |
deleted file mode 100644 |
276 |
index 1df1a9aea..000000000 |
277 |
--- a/sci-libs/cgnstools/files/cgnstools-2.5.4_gcc4.4.patch |
278 |
+++ /dev/null |
279 |
@@ -1,84 +0,0 @@ |
280 |
---- cgnstools-2.5.4.orig/utilities/tecplot_to_cgns.c |
281 |
-+++ cgnstools-2.5.4/utilities/tecplot_to_cgns.c |
282 |
-@@ -60,11 +60,11 @@ |
283 |
- } |
284 |
- } |
285 |
- |
286 |
--/*---------- getline ------------------------------------------------ |
287 |
-+/*---------- getlineCGNS ------------------------------------------------ |
288 |
- * get next non-blank line |
289 |
- *-------------------------------------------------------------------*/ |
290 |
- |
291 |
--static char *getline (FILE *fp) |
292 |
-+static char *getlineCGNS (FILE *fp) |
293 |
- { |
294 |
- char *p; |
295 |
- |
296 |
-@@ -285,7 +285,7 @@ |
297 |
- cgnsImportBase (basename); |
298 |
- |
299 |
- nz = 0; |
300 |
-- p = getline (fp); |
301 |
-+ p = getlineCGNS (fp); |
302 |
- |
303 |
- while (p != NULL) { |
304 |
- |
305 |
-@@ -295,14 +295,14 @@ |
306 |
- for (p += 9; *p && isspace(*p); p++) |
307 |
- ; |
308 |
- if (*p++ != '=') { |
309 |
-- p = getline (fp); |
310 |
-+ p = getlineCGNS (fp); |
311 |
- continue; |
312 |
- } |
313 |
- nvar = 0; |
314 |
- xloc = yloc = zloc = -1; |
315 |
- while (1) { |
316 |
- if ((s = getvar (&p)) == NULL) { |
317 |
-- p = getline (fp); |
318 |
-+ p = getlineCGNS (fp); |
319 |
- if (p == NULL || (s = getvar (&p)) == NULL) break; |
320 |
- } |
321 |
- if (0 == strcasecmp ("x", s)) |
322 |
-@@ -337,7 +337,7 @@ |
323 |
- cgnsImportFatal ("end of file while reading zone"); |
324 |
- ungetc (n, fp); |
325 |
- if (!isalpha (n)) break; |
326 |
-- p = getline (fp); |
327 |
-+ p = getlineCGNS (fp); |
328 |
- continue; |
329 |
- } |
330 |
- switch (n) { |
331 |
-@@ -389,7 +389,7 @@ |
332 |
- if (nn == -1) { |
333 |
- if (ni < 2 || nj < 2 || nk < 2) { |
334 |
- printf("missing I, J and K - skipping zone\n"); |
335 |
-- p = getline(fp); |
336 |
-+ p = getlineCGNS(fp); |
337 |
- continue; |
338 |
- } |
339 |
- nn = ni * nj * nk; |
340 |
-@@ -400,12 +400,12 @@ |
341 |
- if (nn < 3 || ne < 1 || et < 0) { |
342 |
- printf("%d nodes, %d %s elements - skipping zone\n", |
343 |
- nn, ne, elemname); |
344 |
-- p = getline(fp); |
345 |
-+ p = getlineCGNS(fp); |
346 |
- continue; |
347 |
- } |
348 |
- if (et < 2) { |
349 |
- printf ("%s elements - skipping zone\n", elemname); |
350 |
-- p = getline (fp); |
351 |
-+ p = getlineCGNS (fp); |
352 |
- continue; |
353 |
- } |
354 |
- } |
355 |
-@@ -478,7 +478,7 @@ |
356 |
- cgnsImportWrite (); |
357 |
- } |
358 |
- |
359 |
-- p = getline (fp); |
360 |
-+ p = getlineCGNS (fp); |
361 |
- } |
362 |
- |
363 |
- fclose (fp); |
364 |
|
365 |
diff --git a/sci-libs/cgnstools/files/cgnstools-2.5.4_tcltk.patch b/sci-libs/cgnstools/files/cgnstools-2.5.4_tcltk.patch |
366 |
deleted file mode 100644 |
367 |
index d9036d0bf..000000000 |
368 |
--- a/sci-libs/cgnstools/files/cgnstools-2.5.4_tcltk.patch |
369 |
+++ /dev/null |
370 |
@@ -1,114 +0,0 @@ |
371 |
-From c9606ed1914d88c40e9b076b645bc5f7a8046c86 Mon Sep 17 00:00:00 2001 |
372 |
-From: James Cloos <cloos@×××××××.com> |
373 |
-Date: Wed, 16 Jan 2013 20:40:23 -0500 |
374 |
-Subject: [PATCH] Update for current tcl/tk, based on cgns svn trunk. |
375 |
- |
376 |
-Signed-off-by: James Cloos <cloos@×××××××.com> |
377 |
---- |
378 |
- tkogl/nurbs.c | 4 +++- |
379 |
- tkogl/printstr.c | 4 +++- |
380 |
- tkogl/quadric.c | 4 +++- |
381 |
- tkogl/tess.c | 4 +++- |
382 |
- tkogl/tkogl.c | 12 +++++++++--- |
383 |
- 5 files changed, 21 insertions(+), 7 deletions(-) |
384 |
- |
385 |
-diff --git a/tkogl/nurbs.c b/tkogl/nurbs.c |
386 |
-index 6d89be7..34086a3 100644 |
387 |
---- a/tkogl/nurbs.c |
388 |
-+++ b/tkogl/nurbs.c |
389 |
-@@ -278,7 +278,9 @@ done: |
390 |
- DestroyFloatArray (cPoint); |
391 |
- |
392 |
- if (result == TCL_OK) { |
393 |
-- sprintf (interp->result, "%d", dlist); |
394 |
-+ char tmp[128]; |
395 |
-+ sprintf (tmp, "%d", dlist); |
396 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
397 |
- } |
398 |
- |
399 |
- return result; |
400 |
-diff --git a/tkogl/printstr.c b/tkogl/printstr.c |
401 |
-index 8807525..e3d04f6 100644 |
402 |
---- a/tkogl/printstr.c |
403 |
-+++ b/tkogl/printstr.c |
404 |
-@@ -131,7 +131,9 @@ int LoadBitmapFont(Tcl_Interp *interp, int argc, char* argv []) |
405 |
- return TCL_ERROR; |
406 |
- } |
407 |
- |
408 |
-- sprintf (interp->result, "%d", fontOffset); |
409 |
-+ char tmp[128]; |
410 |
-+ sprintf (tmp, "%d", fontOffset); |
411 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
412 |
- return TCL_OK; |
413 |
- } |
414 |
- |
415 |
-diff --git a/tkogl/quadric.c b/tkogl/quadric.c |
416 |
-index ea8e7b3..859e440 100644 |
417 |
---- a/tkogl/quadric.c |
418 |
-+++ b/tkogl/quadric.c |
419 |
-@@ -147,7 +147,9 @@ done: |
420 |
- if (dlist != 0) glEndList(); else return result; |
421 |
- |
422 |
- if (result == TCL_OK) { |
423 |
-- sprintf (interp->result, "%d", dlist); |
424 |
-+ char tmp[128]; |
425 |
-+ sprintf (tmp, "%d", dlist); |
426 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
427 |
- } |
428 |
- else { |
429 |
- glDeleteLists (dlist, 1); |
430 |
-diff --git a/tkogl/tess.c b/tkogl/tess.c |
431 |
-index fa9cf37..c054820 100644 |
432 |
---- a/tkogl/tess.c |
433 |
-+++ b/tkogl/tess.c |
434 |
-@@ -122,7 +122,9 @@ Tesselate (Tcl_Interp *interp, int argc, char* argv []) |
435 |
- } |
436 |
- |
437 |
- if (dlist != 0) { |
438 |
-- sprintf (interp->result, "%d", dlist); |
439 |
-+ char tmp[128]; |
440 |
-+ sprintf (tmp, "%d", dlist); |
441 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
442 |
- } |
443 |
- return TCL_OK; |
444 |
- } |
445 |
-diff --git a/tkogl/tkogl.c b/tkogl/tkogl.c |
446 |
-index 1e7323d..6c91dd1 100644 |
447 |
---- a/tkogl/tkogl.c |
448 |
-+++ b/tkogl/tkogl.c |
449 |
-@@ -641,7 +641,7 @@ OGLwinCmd(clientData, interp, argc, argv) |
450 |
- ARRANGE_REDRAW(glxwinPtr); |
451 |
- GetAbsXY (glxwinPtr); |
452 |
- |
453 |
-- interp->result = Tk_PathName(glxwinPtr->tkwin); |
454 |
-+ Tcl_SetResult(interp, Tk_PathName(glxwinPtr->tkwin), TCL_VOLATILE); |
455 |
- return TCL_OK; |
456 |
- } |
457 |
- |
458 |
-@@ -998,7 +998,11 @@ OGLwinWidgetCmd(clientData, interp, argc, argv) |
459 |
- argv += narg; |
460 |
- } |
461 |
- glEndList(); |
462 |
-- if (result == TCL_OK) sprintf (interp->result, "%d", newlist); |
463 |
-+ if (result == TCL_OK) { |
464 |
-+ char tmp[128]; |
465 |
-+ sprintf (tmp, "%d", newlist); |
466 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
467 |
-+ } |
468 |
- } |
469 |
- else if ((c == 'e') && (strncmp(argv[1], "eval", length) == 0)) { |
470 |
- /* sends the gl commands directly */ |
471 |
-@@ -1090,7 +1094,9 @@ OGLwinWidgetCmd(clientData, interp, argc, argv) |
472 |
- viewport, &x, &y, &z); |
473 |
- } |
474 |
- if (retval) { |
475 |
-- sprintf (interp->result, "%f %f %f", x, y, z); |
476 |
-+ char tmp[128]; |
477 |
-+ sprintf (tmp, "%f %f %f", x, y, z); |
478 |
-+ Tcl_SetResult(interp, tmp, TCL_VOLATILE); |
479 |
- } |
480 |
- } |
481 |
- else if ((c == 'r') && (strncmp(argv[1], "redraw", length) == 0)) { |
482 |
--- |
483 |
-1.8.1 |
484 |
- |
485 |
|
486 |
diff --git a/sci-libs/cgnstools/metadata.xml b/sci-libs/cgnstools/metadata.xml |
487 |
deleted file mode 100644 |
488 |
index 32379f114..000000000 |
489 |
--- a/sci-libs/cgnstools/metadata.xml |
490 |
+++ /dev/null |
491 |
@@ -1,11 +0,0 @@ |
492 |
-<?xml version="1.0" encoding="UTF-8"?> |
493 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
494 |
-<pkgmetadata> |
495 |
- <maintainer type="project"> |
496 |
- <email>sci@g.o</email> |
497 |
- <name>Gentoo Science Project</name> |
498 |
- </maintainer> |
499 |
- <upstream> |
500 |
- <remote-id type="sourceforge">cgns</remote-id> |
501 |
- </upstream> |
502 |
-</pkgmetadata> |