Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/gdl/files: 0.9.4-reorder.patch 0.9.3-plwidth.patch 0.9.4-gsl.patch 0.9.4-python.patch
Date: Wed, 20 Nov 2013 22:35:17
Message-Id: 20131120223513.8F5A72004E@flycatcher.gentoo.org
1 bicatali 13/11/20 22:35:13
2
3 Added: 0.9.4-reorder.patch 0.9.3-plwidth.patch
4 0.9.4-gsl.patch 0.9.4-python.patch
5 Log:
6 Version bump, and backport fix to newer plplot (bug #491024) for older version
7
8 (Portage version: 2.2.7-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.1 dev-lang/gdl/files/0.9.4-reorder.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-reorder.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-reorder.patch?rev=1.1&content-type=text/plain
15
16 Index: 0.9.4-reorder.patch
17 ===================================================================
18 diff -up gdl-0.9.4/src/allix.hpp.reorder gdl-0.9.4/src/allix.hpp
19 --- gdl-0.9.4/src/allix.hpp.reorder 2012-12-11 10:39:35.000000000 -0700
20 +++ gdl-0.9.4/src/allix.hpp 2013-10-04 10:59:22.666594845 -0600
21 @@ -344,9 +344,9 @@ private:
22 public:
23 AllIxAllIndexedT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_)
24 : ixList( ixList_)
25 + , varStride( varStride_)
26 , acRank( acRank_)
27 , nIx( nIx_)
28 - , varStride( varStride_)
29 {}
30 ~AllIxAllIndexedT() {}
31
32 @@ -384,11 +384,11 @@ private:
33 public:
34 AllIxNewMultiT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
35 : ixList( ixList_)
36 - , acRank( acRank_)
37 - , nIx( nIx_)
38 , varStride( varStride_)
39 , nIterLimit( nIterLimit_)
40 , stride( stride_)
41 + , acRank( acRank_)
42 + , nIx( nIx_)
43 {
44 add = 0;
45 assert( varStride[0] == 1);
46 @@ -440,10 +440,10 @@ private:
47 public:
48 AllIxNewMulti2DT( ArrayIndexVectorT* ixList_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
49 : ixList( ixList_)
50 - , nIx( nIx_)
51 , varStride( varStride_)
52 , nIterLimit( nIterLimit_)
53 , stride( stride_)
54 + , nIx( nIx_)
55 {
56 add = 0;
57 if( !(*ixList)[0]->Indexed())
58 @@ -499,11 +499,11 @@ private:
59 public:
60 AllIxNewMultiNoneIndexedT( ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
61 : ixList( ixList_)
62 - , acRank( acRank_)
63 - , nIx( nIx_)
64 , varStride( varStride_)
65 , nIterLimit( nIterLimit_)
66 , stride( stride_)
67 + , acRank( acRank_)
68 + , nIx( nIx_)
69 {
70 assert( varStride[0] == 1);
71 add = 0;
72 @@ -548,10 +548,10 @@ private:
73 public:
74 AllIxNewMultiNoneIndexed2DT( ArrayIndexVectorT* ixList_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
75 : ixList( ixList_)
76 - , nIx( nIx_)
77 , varStride( varStride_)
78 , nIterLimit( nIterLimit_)
79 , stride( stride_)
80 + , nIx( nIx_)
81 {
82 assert( varStride[0] == 1);
83 ixListStride[0] = (*ixList)[0]->GetStride();
84 @@ -593,11 +593,11 @@ public:
85 AllIxNewMultiOneVariableIndexNoIndexT( RankT gt1Rank, SizeT add_,
86 ArrayIndexVectorT* ixList_, SizeT acRank_, SizeT nIx_, const SizeT* varStride_, SizeT* nIterLimit_, SizeT* stride_)
87 : ixList( ixList_)
88 - , acRank( acRank_)
89 - , nIx( nIx_)
90 , varStride( varStride_)
91 , nIterLimit( nIterLimit_)
92 , stride( stride_)
93 + , acRank( acRank_)
94 + , nIx( nIx_)
95 , add( add_)
96 , variableIndex( gt1Rank)
97 {
98 @@ -642,11 +642,11 @@ public:
99 SizeT acRank_, SizeT nIx_, const SizeT* varStride_,
100 SizeT* nIterLimit_, SizeT* stride_)
101 : ixList( ixList_)
102 - , acRank( acRank_)
103 - , nIx( nIx_)
104 , varStride( varStride_)
105 , nIterLimit( nIterLimit_)
106 , stride( stride_)
107 + , acRank( acRank_)
108 + , nIx( nIx_)
109 , add( add_)
110 , variableIndex( gt1Rank)
111 {
112 diff -up gdl-0.9.4/src/arrayindex.hpp.reorder gdl-0.9.4/src/arrayindex.hpp
113 --- gdl-0.9.4/src/arrayindex.hpp.reorder 2013-09-17 10:46:19.000000000 -0600
114 +++ gdl-0.9.4/src/arrayindex.hpp 2013-10-04 11:00:58.849879562 -0600
115 @@ -303,7 +303,7 @@ private:
116 RangeT s;
117 BaseGDL* rawData; // for overloaded object indexing
118
119 - CArrayIndexScalar( const CArrayIndexScalar& c): s( c.s), sInit( c.sInit)
120 + CArrayIndexScalar( const CArrayIndexScalar& c): sInit( c.sInit), s( c.s)
121 {
122 assert( c.rawData != NULL);
123 rawData = c.rawData->Dup();
124 diff -up gdl-0.9.4/src/arrayindexlistnoassoct.hpp.reorder gdl-0.9.4/src/arrayindexlistnoassoct.hpp
125 --- gdl-0.9.4/src/arrayindexlistnoassoct.hpp.reorder 2013-07-04 17:24:44.000000000 -0600
126 +++ gdl-0.9.4/src/arrayindexlistnoassoct.hpp 2013-10-04 11:24:02.893867004 -0600
127 @@ -59,8 +59,8 @@ public:
128 { nParam = 0;}
129
130 ArrayIndexListOneNoAssocT( const ArrayIndexListOneNoAssocT& cp):
131 - cleanupIx(),
132 ArrayIndexListT( cp),
133 + cleanupIx(),
134 ix( cp.ix->Dup()),
135 allIx( NULL)
136 {
137 diff -up gdl-0.9.4/src/arrayindexlistt.hpp.reorder gdl-0.9.4/src/arrayindexlistt.hpp
138 --- gdl-0.9.4/src/arrayindexlistt.hpp.reorder 2013-09-17 10:46:19.000000000 -0600
139 +++ gdl-0.9.4/src/arrayindexlistt.hpp 2013-10-04 11:23:35.607069888 -0600
140 @@ -130,8 +130,8 @@ public:
141 { nParam = 0;}
142
143 ArrayIndexListOneT( const ArrayIndexListOneT& cp):
144 - cleanupIx(),
145 ArrayIndexListT( cp),
146 + cleanupIx(),
147 ix( cp.ix->Dup()),
148 allIx( NULL)
149 {
150 diff -up gdl-0.9.4/src/deviceps.hpp.reorder gdl-0.9.4/src/deviceps.hpp
151 --- gdl-0.9.4/src/deviceps.hpp.reorder 2013-07-03 15:48:06.000000000 -0600
152 +++ gdl-0.9.4/src/deviceps.hpp 2013-10-04 13:14:48.283746779 -0600
153 @@ -441,9 +441,9 @@ private:
154 }
155
156 public:
157 - DevicePS(): Graphics(), fileName( "gdl.ps"), actStream( NULL), color(0),
158 - decomposed( 0), encapsulated(false), scale(1.), XPageSize(17.78), YPageSize(12.7),
159 - XOffset(0.0),YOffset(0.0)
160 + DevicePS(): Graphics(), fileName( "gdl.ps"), actStream( NULL),
161 + XPageSize(17.78), YPageSize(12.7), XOffset(0.0),YOffset(0.0),
162 + color(0), decomposed( 0), encapsulated(false), scale(1.)
163 {
164 name = "PS";
165
166 diff -up gdl-0.9.4/src/dnode.cpp.reorder gdl-0.9.4/src/dnode.cpp
167 --- gdl-0.9.4/src/dnode.cpp.reorder 2012-09-18 08:19:18.000000000 -0600
168 +++ gdl-0.9.4/src/dnode.cpp 2013-10-04 12:02:48.601416601 -0600
169 @@ -55,9 +55,10 @@ DNode::DNode( const DNode& cp):
170 // keepRight( false),
171 CommonAST( cp), //down(), right(),
172 lineNumber( cp.getLine()), cData(NULL),
173 - var(cp.var), arrIxList(NULL),arrIxListNoAssoc(NULL),
174 + var(cp.var),
175 libFun( cp.libFun),
176 libPro( cp.libPro),
177 + arrIxList(NULL),arrIxListNoAssoc(NULL),
178 labelStart( cp.labelStart), labelEnd( cp.labelEnd)
179 {
180 if( cp.cData != NULL) cData = cp.cData->Dup();
181 diff -up gdl-0.9.4/src/dnode.hpp.reorder gdl-0.9.4/src/dnode.hpp
182 diff -up gdl-0.9.4/src/dpro.cpp.reorder gdl-0.9.4/src/dpro.cpp
183 --- gdl-0.9.4/src/dpro.cpp.reorder 2013-09-17 03:03:25.000000000 -0600
184 +++ gdl-0.9.4/src/dpro.cpp 2013-10-04 13:05:23.169223727 -0600
185 @@ -200,8 +200,8 @@ DSubUD::~DSubUD()
186 DSubUD::DSubUD(const string& n,const string& o,const string& f) :
187 DSub(n,o), file(f),
188 tree( NULL),
189 - labelList(),
190 compileOpt(GDLParser::NONE),
191 + labelList(),
192 nForLoops( 0)
193 {
194 if( o != "")
195 diff -up gdl-0.9.4/src/envt.cpp.reorder gdl-0.9.4/src/envt.cpp
196 --- gdl-0.9.4/src/envt.cpp.reorder 2013-09-25 05:55:21.000000000 -0600
197 +++ gdl-0.9.4/src/envt.cpp 2013-10-04 13:08:17.081114086 -0600
198 @@ -107,15 +107,15 @@ void EnvUDT::operator delete( void *ptr)
199
200
201 EnvBaseT::EnvBaseT( ProgNodeP cN, DSub* pro_):
202 - env(),
203 toDestroy(),
204 + env(),
205 pro(pro_),
206 - extra(NULL),
207 - newEnv(NULL),
208 callingNode( cN),
209 lineNumber( 0),
210 - obj(false)
211 - ,ptrToReturnValue(NULL)
212 + obj(false),
213 + extra(NULL),
214 + newEnv(NULL),
215 + ptrToReturnValue(NULL)
216 //, toDestroyInitialIndex( toDestroy.size())
217 {}
218
219 diff -up gdl-0.9.4/src/envt.hpp.reorder gdl-0.9.4/src/envt.hpp
220 --- gdl-0.9.4/src/envt.hpp.reorder 2013-09-26 04:47:48.000000000 -0600
221 +++ gdl-0.9.4/src/envt.hpp 2013-10-04 10:55:21.892428311 -0600
222 @@ -863,7 +863,7 @@ public:
223 typedef SizeT size_type;
224 typedef EnvUDT* pointer_type;
225
226 - EnvStackT(): sz(defaultStackDepth), top(0)
227 + EnvStackT(): top(0), sz(defaultStackDepth)
228 {
229 envStackFrame = new EnvUDT* [ sz+1];
230 envStack = envStackFrame + 1;
231 diff -up gdl-0.9.4/src/gdlexception.cpp.reorder gdl-0.9.4/src/gdlexception.cpp
232 --- gdl-0.9.4/src/gdlexception.cpp.reorder 2013-06-23 17:07:32.000000000 -0600
233 +++ gdl-0.9.4/src/gdlexception.cpp 2013-10-04 14:00:32.102348401 -0600
234 @@ -43,9 +43,9 @@ GDLException::GDLException(DLong eC, con
235 errorNodeP( NULL),
236 errorCode(eC),
237 line( 0), col( 0), prefix( pre),
238 + arrayexprIndexeeFailed(false),
239 ioException( false),
240 - targetEnv( NULL),
241 - arrayexprIndexeeFailed(false)
242 + targetEnv( NULL)
243 {
244 if(decorate && interpreter!=NULL && interpreter->CallStack().size()>0)
245 {
246 @@ -97,9 +97,9 @@ GDLException::GDLException(const RefDNod
247 errorNodeP( NULL),
248 errorCode(-1),
249 line( 0), col( 0), prefix( true),
250 + arrayexprIndexeeFailed(false),
251 ioException( false),
252 - targetEnv( NULL),
253 - arrayexprIndexeeFailed(false)
254 + targetEnv( NULL)
255 {
256 if(interpreter!=NULL && interpreter->CallStack().size()>0)
257 {
258 @@ -122,9 +122,9 @@ GDLException::GDLException(DLong eC, con
259 errorNodeP( NULL),
260 errorCode(eC),
261 line( 0), col( 0), prefix( true),
262 + arrayexprIndexeeFailed(false),
263 ioException( false),
264 - targetEnv( NULL),
265 - arrayexprIndexeeFailed(false)
266 + targetEnv( NULL)
267 {
268 if(interpreter!=NULL && interpreter->CallStack().size()>0)
269 {
270 @@ -148,9 +148,9 @@ GDLException::GDLException(const ProgNod
271 errorNodeP( eN),
272 errorCode(-1),
273 line( 0), col( 0), prefix( true),
274 + arrayexprIndexeeFailed(false),
275 ioException( false),
276 - targetEnv( NULL),
277 - arrayexprIndexeeFailed(false)
278 + targetEnv( NULL)
279 {
280 if( overWriteNode && interpreter!=NULL && interpreter->CallStack().size()>0)
281 {
282 @@ -177,9 +177,9 @@ GDLException::GDLException(DLong eC, con
283 errorNodeP( eN),
284 errorCode(eC),
285 line( 0), col( 0), prefix( true),
286 + arrayexprIndexeeFailed(false),
287 ioException( false),
288 - targetEnv( NULL),
289 - arrayexprIndexeeFailed(false)
290 + targetEnv( NULL)
291 {
292 if( overWriteNode && interpreter!=NULL && interpreter->CallStack().size()>0)
293 {
294 @@ -207,9 +207,9 @@ GDLException::GDLException(SizeT l, Size
295 errorNodeP( NULL),
296 errorCode(-1),
297 line( l), col( c), prefix( true),
298 + arrayexprIndexeeFailed(false),
299 ioException( false),
300 - targetEnv( NULL),
301 - arrayexprIndexeeFailed(false)
302 + targetEnv( NULL)
303 {
304 if(interpreter!=NULL && interpreter->CallStack().size()>0)
305 {
306 @@ -232,8 +232,8 @@ GDLException::GDLException(DLong eC, Siz
307 errorNodeP( NULL),
308 errorCode(eC),
309 line( l), col( c), prefix( true),
310 - targetEnv( NULL),
311 - arrayexprIndexeeFailed(false)
312 + arrayexprIndexeeFailed(false),
313 + targetEnv( NULL)
314 {
315 if(interpreter!=NULL && interpreter->CallStack().size()>0)
316 {
317 diff -up gdl-0.9.4/src/gdlexception.hpp.reorder gdl-0.9.4/src/gdlexception.hpp
318 --- gdl-0.9.4/src/gdlexception.hpp.reorder 2013-06-23 17:07:32.000000000 -0600
319 +++ gdl-0.9.4/src/gdlexception.hpp 2013-10-04 11:12:58.332125288 -0600
320 @@ -66,18 +66,18 @@ public:
321 errorNodeP( NULL),
322 errorCode(-1),
323 line( 0), col( 0), prefix( true),
324 + arrayexprIndexeeFailed(false),
325 ioException( false),
326 - targetEnv( NULL),
327 - arrayexprIndexeeFailed(false)
328 + targetEnv( NULL)
329 {}
330 GDLException( DLong eC): ANTLRException(),
331 errorNode(static_cast<RefDNode>(antlr::nullAST)),
332 errorNodeP( NULL),
333 errorCode(eC),
334 line( 0), col( 0), prefix( true),
335 + arrayexprIndexeeFailed(false),
336 ioException( false),
337 - targetEnv( NULL),
338 - arrayexprIndexeeFailed(false)
339 + targetEnv( NULL)
340 {}
341 GDLException(const std::string& s, bool pre = true, bool decorate=true);
342 GDLException(const RefDNode eN, const std::string& s);
343 diff -up gdl-0.9.4/src/prognode.cpp.reorder gdl-0.9.4/src/prognode.cpp
344 --- gdl-0.9.4/src/prognode.cpp.reorder 2013-09-27 18:47:49.000000000 -0600
345 +++ gdl-0.9.4/src/prognode.cpp 2013-10-04 14:01:11.490342867 -0600
346 @@ -54,19 +54,19 @@ return nonCopyNodeLookupArray;
347
348 // tanslation RefDNode -> ProgNode
349 ProgNode::ProgNode( const RefDNode& refNode):
350 + ttype( refNode->getType()),
351 + text( refNode->getText()),
352 keepRight( false),
353 keepDown( false),
354 breakTarget( NULL),
355 - ttype( refNode->getType()),
356 - text( refNode->getText()),
357 down( NULL),
358 right( NULL),
359 - lineNumber( refNode->getLine()),
360 cData( refNode->StealCData()), // stealing is crucial here because references might exist
361 + var( refNode->var),
362 // as arrayindices
363 - libPro( refNode->libPro),
364 libFun( refNode->libFun),
365 - var( refNode->var),
366 + libPro( refNode->libPro),
367 + lineNumber( refNode->getLine()),
368 arrIxList( refNode->StealArrIxList()),
369 arrIxListNoAssoc( refNode->StealArrIxNoAssocList()),
370 // arrIxList( refNode->CloneArrIxList()),
371 diff -up gdl-0.9.4/src/prognodeexpr.cpp.reorder gdl-0.9.4/src/prognodeexpr.cpp
372 --- gdl-0.9.4/src/prognodeexpr.cpp.reorder 2013-09-26 05:08:39.000000000 -0600
373 +++ gdl-0.9.4/src/prognodeexpr.cpp 2013-10-04 13:20:36.660155916 -0600
374 @@ -49,18 +49,18 @@ BinaryExprNC::BinaryExprNC( const RefDNo
375 }
376
377 ProgNode::ProgNode(): // for NULLProgNode
378 + ttype( antlr::Token::NULL_TREE_LOOKAHEAD),
379 + text( "NULLProgNode"),
380 keepRight( false),
381 keepDown( false),
382 breakTarget( NULL),
383 - ttype( antlr::Token::NULL_TREE_LOOKAHEAD),
384 - text( "NULLProgNode"),
385 down( NULL),
386 right( NULL),
387 - lineNumber( 0),
388 cData( NULL),
389 - libPro( NULL),
390 - libFun( NULL),
391 var( NULL),
392 + libFun( NULL),
393 + libPro( NULL),
394 + lineNumber( 0),
395 labelStart( 0),
396 labelEnd( 0)
397 {}
398
399
400
401 1.1 dev-lang/gdl/files/0.9.3-plwidth.patch
402
403 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.3-plwidth.patch?rev=1.1&view=markup
404 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.3-plwidth.patch?rev=1.1&content-type=text/plain
405
406 Index: 0.9.3-plwidth.patch
407 ===================================================================
408 diff -up gdl-0.9.3/CMakeLists.txt.plwidth gdl-0.9.3/CMakeLists.txt
409 --- gdl-0.9.3/CMakeLists.txt.plwidth 2013-08-27 16:55:33.806600443 -0600
410 +++ gdl-0.9.3/CMakeLists.txt 2013-08-27 16:55:36.589590528 -0600
411 @@ -23,6 +23,7 @@ include(CheckLibraryExists)
412 include(CheckFunctionExists)
413 include(CheckSymbolExists)
414 include(CheckCSourceRuns)
415 +include(CheckCXXSourceCompiles)
416 include(FindPkgConfig)
417 include(FindPackageHandleStandardArgs)
418
419 @@ -302,6 +303,18 @@ if(PLPLOT_FOUND)
420 message(STATUS "warning, due to old plplot library, [XYZ]TICKFORMAT option for plot axis will not be supported.\n"
421 "you should upgrade to plplot version > 5.9.6")
422 endif(HAVE_PLPLOT_SLABELFUNC)
423 + set(CMAKE_REQUIRED_INCLUDES "${PLPLOT_INCLUDE_DIR}")
424 + set(CMAKE_REQUIRED_LIBRARIES "${PLPLOT_LIBRARIES}")
425 + check_cxx_source_compiles("
426 +#include <plplot/plstream.h>
427 +int main(int argc, char **argv) {
428 + plstream *p = new plstream();
429 + PLFLT w = 0.5;
430 + p->width(w);
431 +}" HAVE_PLPLOT_WIDTH)
432 + if(HAVE_PLPLOT_WIDTH)
433 + set(HAVE_PLPLOT_WIDTH 1)
434 + endif(HAVE_PLPLOT_WIDTH)
435 check_library_exists("${PLPLOT_LIBRARIES}" plstrl "" PLPLOT_PRIVATE_NOT_HIDDEN)
436 if(PLPLOT_PRIVATE_NOT_HIDDEN)
437 set(PLPLOT_PRIVATE_NOT_HIDDEN 1)
438 diff -up gdl-0.9.3/config.h.cmake.plwidth gdl-0.9.3/config.h.cmake
439 --- gdl-0.9.3/config.h.cmake.plwidth 2013-08-27 16:55:33.808600436 -0600
440 +++ gdl-0.9.3/config.h.cmake 2013-08-27 16:55:36.589590528 -0600
441 @@ -28,6 +28,7 @@
442 #cmakedefine HAVE_NEXTTOWARD 1
443 #cmakedefine HAVE_OLDPLPLOT 1
444 #cmakedefine HAVE_PLPLOT_SLABELFUNC 1
445 +#cmakedefine HAVE_PLPLOT_WIDTH 1
446 #cmakedefine PLPLOT_PRIVATE_NOT_HIDDEN 1
447 #cmakedefine PLPLOT_HAS_LEGEND
448 #ifndef HAVE_STDINT_H
449 diff -up gdl-0.9.3/src/plotting_contour.cpp.plwidth gdl-0.9.3/src/plotting_contour.cpp
450 --- gdl-0.9.3/src/plotting_contour.cpp.plwidth 2013-08-27 16:55:33.883600169 -0600
451 +++ gdl-0.9.3/src/plotting_contour.cpp 2013-08-27 16:55:36.590590524 -0600
452 @@ -705,7 +705,11 @@ namespace lib
453 actStream->pat(1,&ori,&spa);
454
455 if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, (PLINT)colorindex_table_0_color );
456 +#if (HAVE_PLPLOT_WIDTH)
457 + if (dothick) actStream->width ( static_cast<PLFLT>(( *thick )[i%thick->N_Elements ( )]));
458 +#else
459 if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
460 +#endif
461 if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
462 actStream->shade( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd,
463 clevel[i], clevel[i+1],
464 @@ -788,7 +792,11 @@ namespace lib
465 actStream->stransform(gdl3dTo2dTransformContour, &Data3d);
466 }
467 if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, 2);
468 +#if (HAVE_PLPLOT_WIDTH)
469 + if (dothick) actStream->width ( static_cast<PLFLT>(( *thick )[i%thick->N_Elements ( )]));
470 +#else
471 if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
472 +#endif
473 if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
474 if (dolabels) actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING,
475 (PLINT)(*labels)[i%labels->N_Elements()] );
476 diff -up gdl-0.9.3/src/plotting.cpp.plwidth gdl-0.9.3/src/plotting.cpp
477 --- gdl-0.9.3/src/plotting.cpp.plwidth 2013-08-27 16:55:33.886600158 -0600
478 +++ gdl-0.9.3/src/plotting.cpp 2013-08-27 16:58:33.707952697 -0600
479 @@ -1891,7 +1891,11 @@ namespace lib
480 DFloatGDL* charthickVect=e->GetKWAs<DFloatGDL>( charthickIx );
481 charthick=(*charthickVect)[0];
482 }
483 +#if (HAVE_PLPLOT_WIDTH)
484 + a->width(static_cast<PLFLT>(charthick));
485 +#else
486 a->wid(charthick);
487 +#endif
488 }
489
490 void gdlSetAxisCharsize(EnvT *e, GDLGStream *a, string axis)
491 @@ -1919,7 +1923,11 @@ namespace lib
492
493 e->AssureFloatScalarKWIfPresent("THICK", thick);
494 if ( thick<=0.0 ) thick=1.0;
495 +#if (HAVE_PLPLOT_WIDTH)
496 + a->width(static_cast<PLFLT>(thick));
497 +#else
498 a->wid(static_cast<PLINT>(floor(thick-0.5)));
499 +#endif
500 }
501
502 //LINESTYLE
503 @@ -2932,7 +2940,11 @@ namespace lib
504 a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
505 a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
506 //thick for box and ticks.
507 +#if (HAVE_PLPLOT_WIDTH)
508 + a->width(static_cast<PLFLT>(Thick));
509 +#else
510 a->wid(Thick);
511 +#endif
512 //ticks or grid eventually with style and length:
513 if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
514 if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
515 @@ -2977,7 +2989,11 @@ namespace lib
516 else if (axis=="Y") a->box("", 0.0, 0 , Opt.c_str(), 0.0, 0);
517 }
518 //reset charsize & thick
519 +#if (HAVE_PLPLOT_WIDTH)
520 + a->width(1.0);
521 +#else
522 a->wid(1);
523 +#endif
524 a->sizeChar(1.0);
525 }
526 return 0;
527 @@ -3120,7 +3136,11 @@ namespace lib
528 a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
529 a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
530 //thick for box and ticks.
531 +#if (HAVE_PLPLOT_WIDTH)
532 + a->width(static_cast<PLFLT>(Thick));
533 +#else
534 a->wid(Thick);
535 +#endif
536 //ticks or grid eventually with style and length:
537 if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
538 if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
539 @@ -3145,7 +3165,11 @@ namespace lib
540 else if (axis=="Z") a->box3("","",0,0,"","",0,0, Opt.c_str(), "", TickInterval, Minor);
541 }
542 //reset charsize & thick
543 +#if (HAVE_PLPLOT_WIDTH)
544 + a->width(1.0);
545 +#else
546 a->wid(1);
547 +#endif
548 a->sizeChar(1.0);
549 }
550 return 0;
551 diff -up gdl-0.9.3/src/plotting_xyouts.cpp.plwidth gdl-0.9.3/src/plotting_xyouts.cpp
552 --- gdl-0.9.3/src/plotting_xyouts.cpp.plwidth 2013-08-27 16:55:33.892600137 -0600
553 +++ gdl-0.9.3/src/plotting_xyouts.cpp 2013-08-27 16:55:36.591590521 -0600
554 @@ -339,7 +339,11 @@ namespace lib
555 //plot!
556 if (docharsize) actStream->sizeChar(( *size )[i%size->N_Elements ( )]);
557 if (docolor) actStream->Color ( ( *color )[i%color->N_Elements ( )], decomposed, 2);
558 +#if (HAVE_PLPLOT_WIDTH)
559 + if (docharthick) actStream->width ( static_cast<PLFLT>(( *charthick )[i%charthick->N_Elements ( )]));
560 +#else
561 if (docharthick) actStream->wid ( ( *charthick )[i%charthick->N_Elements ( )]);
562 +#endif
563 //orientation word is not orientation page depending on axes increment direction [0..1] vs. [1..0]
564 PLFLT oriD=(( *orientation )[i%orientation->N_Elements ( )]); //ori DEVICE
565 PLFLT oriW=oriD; //ori WORLD
566
567
568
569 1.1 dev-lang/gdl/files/0.9.4-gsl.patch
570
571 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-gsl.patch?rev=1.1&view=markup
572 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-gsl.patch?rev=1.1&content-type=text/plain
573
574 Index: 0.9.4-gsl.patch
575 ===================================================================
576 diff -up gdl-0.9.4/src/gsl_matrix.cpp.gsl gdl-0.9.4/src/gsl_matrix.cpp
577 --- gdl-0.9.4/src/gsl_matrix.cpp.gsl 2013-09-20 10:10:02.000000000 -0600
578 +++ gdl-0.9.4/src/gsl_matrix.cpp 2013-10-03 13:50:41.089660703 -0600
579 @@ -41,10 +41,11 @@ namespace lib {
580 const int szdbl=sizeof(DDouble);
581 const int szflt=sizeof(DFloat);
582 const int szlng=sizeof(DLong);
583 + const int szlng64=sizeof(DLong64);
584
585 void ludc_pro( EnvT* e)
586 {
587 - // cout << szdbl << " " <<szflt << " " << szlng << endl;
588 + // cout << szdbl << " " <<szflt << " " << szlng << " " szlng64 << endl;
589
590 SizeT nParam=e->NParam(1);
591 // if( nParam == 0)
592 @@ -120,9 +121,15 @@ namespace lib {
593 dimension dim1(&n, (SizeT) 1);
594 BaseGDL** p1D = &e->GetPar( 1);
595 GDLDelete((*p1D));
596 - *p1D = new DLongGDL(dim1, BaseGDL::NOZERO);
597 - memcpy(&(*(DLongGDL*) *p1D)[0], p->data,
598 - p0->Dim(0)*szlng);
599 + if (sizeof(size_t) == szlng) {
600 + *p1D = new DLongGDL(dim1, BaseGDL::NOZERO);
601 + memcpy(&(*(DLongGDL*) *p1D)[0], p->data,
602 + p0->Dim(0)*szlng);
603 + } else {
604 + *p1D = new DLong64GDL(dim1, BaseGDL::NOZERO);
605 + memcpy(&(*(DLong64GDL*) *p1D)[0], p->data,
606 + p0->Dim(0)*szlng64);
607 + }
608
609 // gsl_matrix_free(mat);
610 // gsl_permutation_free(p);
611 @@ -189,10 +196,15 @@ namespace lib {
612 GDLGuard<gsl_matrix> g1(mat,gsl_matrix_free);
613 memcpy(mat->data, &(*p0D)[0], nEl*szdbl);
614
615 - DLongGDL* p1L =e->GetParAs<DLongGDL>(1);
616 gsl_permutation *p = gsl_permutation_alloc (nEl1);
617 GDLGuard<gsl_permutation> g2(p,gsl_permutation_free);
618 - memcpy(p->data, &(*p1L)[0], nEl1*szlng);
619 + if (sizeof(size_t) == szlng) {
620 + DLongGDL* p1L =e->GetParAs<DLongGDL>(1);
621 + memcpy(p->data, &(*p1L)[0], nEl1*szlng);
622 + } else {
623 + DLong64GDL* p1L =e->GetParAs<DLong64GDL>(1);
624 + memcpy(p->data, &(*p1L)[0], nEl1*szlng64);
625 + }
626
627 DDoubleGDL *p2D = e->GetParAs<DDoubleGDL>(2);
628 gsl_vector *b = gsl_vector_alloc(nEl2);
629 @@ -222,7 +234,7 @@ namespace lib {
630 DDoubleGDL* res = new DDoubleGDL( p2->Dim(), BaseGDL::NOZERO);
631 memcpy(&(*res)[0], x->data, nEl1*szdbl);
632
633 -// gsl_matrix_free(mat);
634 +// gsl_matrix_free(mat);Parameter
635 // gsl_vector_free(x);
636 // gsl_permutation_free(p);
637 // b ???
638
639
640
641 1.1 dev-lang/gdl/files/0.9.4-python.patch
642
643 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-python.patch?rev=1.1&view=markup
644 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/gdl/files/0.9.4-python.patch?rev=1.1&content-type=text/plain
645
646 Index: 0.9.4-python.patch
647 ===================================================================
648 diff -up gdl-0.9.4/src/pythongdl.cpp.python gdl-0.9.4/src/pythongdl.cpp
649 --- gdl-0.9.4/src/pythongdl.cpp.python 2013-07-26 03:30:32.000000000 -0600
650 +++ gdl-0.9.4/src/pythongdl.cpp 2013-09-30 10:24:27.092666180 -0600
651 @@ -373,7 +373,7 @@ PyObject *GDLSub( PyObject *self, PyObje
652 if( libCall)
653 e = new EnvT( NULL, sub);
654 else
655 - e = new EnvUDT( NULL, sub);
656 + e = new EnvUDT( NULL, static_cast<DSubUD*>(sub));
657
658 Guard< EnvBaseT> e_guard( e);