1 |
markusle 08/06/01 20:14:34 |
2 |
|
3 |
Added: hippodraw-1.21.3-numarray.patch |
4 |
hippodraw-1.21.3-gcc4.3.patch |
5 |
Log: |
6 |
Version bump, masked for a bit more testing. |
7 |
(Portage version: 2.1.5.2) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-visualization/hippodraw/files/hippodraw-1.21.3-numarray.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-numarray.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-numarray.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: hippodraw-1.21.3-numarray.patch |
16 |
=================================================================== |
17 |
diff -Naur HippoDraw-1.21.3/python/PyDataSource.cxx HippoDraw-1.21.3.new/python/PyDataSource.cxx |
18 |
--- HippoDraw-1.21.3/python/PyDataSource.cxx 2007-08-24 18:19:16.000000000 -0400 |
19 |
+++ HippoDraw-1.21.3.new/python/PyDataSource.cxx 2008-06-01 14:22:46.000000000 -0400 |
20 |
@@ -444,9 +444,14 @@ |
21 |
copy_direct ( boost::python::numeric::array array, |
22 |
std::vector<double > & col ) |
23 |
{ |
24 |
+#ifdef HAVE_NUMARRAY |
25 |
T * data = reinterpret_cast < T * > ( num_util::data ( array ) ); |
26 |
int size = num_util::size ( array ); |
27 |
std::copy ( data, data+ size, back_inserter( col ) ); |
28 |
+#else |
29 |
+ throw std::runtime_error ("HippoDraw was not built with " |
30 |
+ "numeric Python support" ); |
31 |
+#endif |
32 |
} |
33 |
|
34 |
void |
35 |
@@ -454,6 +459,7 @@ |
36 |
extractVector ( boost::python::numeric::array array, |
37 |
std::vector<double> & col ) |
38 |
{ |
39 |
+#ifdef HAVE_NUMARRAY |
40 |
PyArray_TYPES type = num_util::type ( array ); |
41 |
|
42 |
if ( num_util::iscontiguous ( array ) && |
43 |
@@ -515,7 +521,11 @@ |
44 |
col.push_back ( boost::python::extract < double > ( result ) ); |
45 |
} |
46 |
} |
47 |
- } |
48 |
+ } |
49 |
+#else |
50 |
+ throw std::runtime_error ("HippoDraw was not built with " |
51 |
+ "numeric Python support" ); |
52 |
+#endif |
53 |
} |
54 |
|
55 |
PyDataSource * |
56 |
|
57 |
|
58 |
|
59 |
1.1 sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc4.3.patch |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc4.3.patch?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc4.3.patch?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: hippodraw-1.21.3-gcc4.3.patch |
65 |
=================================================================== |
66 |
diff -Naur HippoDraw-1.21.3/axes/Range.cxx HippoDraw-1.21.3.new/axes/Range.cxx |
67 |
--- HippoDraw-1.21.3/axes/Range.cxx 2007-05-08 14:47:27.000000000 -0400 |
68 |
+++ HippoDraw-1.21.3.new/axes/Range.cxx 2008-06-01 15:28:20.000000000 -0400 |
69 |
@@ -16,6 +16,7 @@ |
70 |
|
71 |
#include "Range.h" |
72 |
|
73 |
+#include <ostream> |
74 |
#include <algorithm> |
75 |
|
76 |
#include <cassert> |
77 |
diff -Naur HippoDraw-1.21.3/fits/FitsFile.cxx HippoDraw-1.21.3.new/fits/FitsFile.cxx |
78 |
--- HippoDraw-1.21.3/fits/FitsFile.cxx 2007-05-17 13:57:10.000000000 -0400 |
79 |
+++ HippoDraw-1.21.3.new/fits/FitsFile.cxx 2008-06-01 15:28:54.000000000 -0400 |
80 |
@@ -15,7 +15,7 @@ |
81 |
|
82 |
#include <algorithm> |
83 |
#include <stdexcept> |
84 |
- |
85 |
+#include <cstring> |
86 |
#include <cassert> |
87 |
|
88 |
using std::string; |
89 |
diff -Naur HippoDraw-1.21.3/minimizers/Fitter.cxx HippoDraw-1.21.3.new/minimizers/Fitter.cxx |
90 |
--- HippoDraw-1.21.3/minimizers/Fitter.cxx 2006-01-28 17:54:45.000000000 -0500 |
91 |
+++ HippoDraw-1.21.3.new/minimizers/Fitter.cxx 2008-06-01 15:28:20.000000000 -0400 |
92 |
@@ -13,6 +13,8 @@ |
93 |
|
94 |
#include "StatedFCN.h" |
95 |
|
96 |
+#include <cstdlib> |
97 |
+#include <climits> |
98 |
#include <stdexcept> |
99 |
|
100 |
using std::string; |
101 |
diff -Naur HippoDraw-1.21.3/minimizers/LMFitter.cxx HippoDraw-1.21.3.new/minimizers/LMFitter.cxx |
102 |
--- HippoDraw-1.21.3/minimizers/LMFitter.cxx 2007-04-23 17:57:21.000000000 -0400 |
103 |
+++ HippoDraw-1.21.3.new/minimizers/LMFitter.cxx 2008-06-01 15:28:20.000000000 -0400 |
104 |
@@ -18,6 +18,7 @@ |
105 |
#include "NumLinAlg.h" |
106 |
#include "StatedFCN.h" |
107 |
|
108 |
+#include <climits> |
109 |
#include <algorithm> |
110 |
|
111 |
#include <cmath> |
112 |
diff -Naur HippoDraw-1.21.3/minimizers/NumLinAlg.cxx HippoDraw-1.21.3.new/minimizers/NumLinAlg.cxx |
113 |
--- HippoDraw-1.21.3/minimizers/NumLinAlg.cxx 2005-05-16 14:39:20.000000000 -0400 |
114 |
+++ HippoDraw-1.21.3.new/minimizers/NumLinAlg.cxx 2008-06-01 15:28:20.000000000 -0400 |
115 |
@@ -19,6 +19,7 @@ |
116 |
#include <cmath> |
117 |
#include <cfloat> |
118 |
#include <cassert> |
119 |
+#include <cstdlib> |
120 |
|
121 |
using std::ofstream; |
122 |
using std::ifstream; |
123 |
diff -Naur HippoDraw-1.21.3/projectors/DyHist1DProjector.cxx HippoDraw-1.21.3.new/projectors/DyHist1DProjector.cxx |
124 |
--- HippoDraw-1.21.3/projectors/DyHist1DProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
125 |
+++ HippoDraw-1.21.3.new/projectors/DyHist1DProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
126 |
@@ -21,6 +21,7 @@ |
127 |
#include "datasrcs/DataPointTuple.h" |
128 |
#include "datasrcs/NTuple.h" |
129 |
|
130 |
+#include <climits> |
131 |
#include <cassert> |
132 |
|
133 |
using namespace hippodraw; |
134 |
diff -Naur HippoDraw-1.21.3/projectors/DyHist2DProjector.cxx HippoDraw-1.21.3.new/projectors/DyHist2DProjector.cxx |
135 |
--- HippoDraw-1.21.3/projectors/DyHist2DProjector.cxx 2005-09-12 12:55:10.000000000 -0400 |
136 |
+++ HippoDraw-1.21.3.new/projectors/DyHist2DProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
137 |
@@ -24,7 +24,7 @@ |
138 |
#include "binners/BinnerAxisFactory.h" |
139 |
|
140 |
#include "datasrcs/NTuple.h" |
141 |
- |
142 |
+#include <climits> |
143 |
#include <cassert> |
144 |
|
145 |
using namespace hippodraw; |
146 |
diff -Naur HippoDraw-1.21.3/projectors/EqualEntriesHist1DProjector.cxx HippoDraw-1.21.3.new/projectors/EqualEntriesHist1DProjector.cxx |
147 |
--- HippoDraw-1.21.3/projectors/EqualEntriesHist1DProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
148 |
+++ HippoDraw-1.21.3.new/projectors/EqualEntriesHist1DProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
149 |
@@ -26,6 +26,7 @@ |
150 |
#include <numeric> |
151 |
|
152 |
#include <cfloat> |
153 |
+#include <climits> |
154 |
|
155 |
#include <cassert> |
156 |
|
157 |
diff -Naur HippoDraw-1.21.3/projectors/Map1Projector.cxx HippoDraw-1.21.3.new/projectors/Map1Projector.cxx |
158 |
--- HippoDraw-1.21.3/projectors/Map1Projector.cxx 2007-04-27 14:14:52.000000000 -0400 |
159 |
+++ HippoDraw-1.21.3.new/projectors/Map1Projector.cxx 2008-06-01 15:28:20.000000000 -0400 |
160 |
@@ -25,7 +25,7 @@ |
161 |
#include <numeric> |
162 |
|
163 |
#include <cfloat> |
164 |
- |
165 |
+#include <climits> |
166 |
#include <cassert> |
167 |
|
168 |
using namespace hippodraw; |
169 |
diff -Naur HippoDraw-1.21.3/projectors/Map2Projector.cxx HippoDraw-1.21.3.new/projectors/Map2Projector.cxx |
170 |
--- HippoDraw-1.21.3/projectors/Map2Projector.cxx 2007-04-23 17:57:21.000000000 -0400 |
171 |
+++ HippoDraw-1.21.3.new/projectors/Map2Projector.cxx 2008-06-01 15:28:20.000000000 -0400 |
172 |
@@ -24,7 +24,7 @@ |
173 |
#include <algorithm> |
174 |
|
175 |
#include <cfloat> |
176 |
- |
177 |
+#include <climits> |
178 |
#include <cassert> |
179 |
|
180 |
using namespace hippodraw; |
181 |
diff -Naur HippoDraw-1.21.3/projectors/MapMatrixProjector.cxx HippoDraw-1.21.3.new/projectors/MapMatrixProjector.cxx |
182 |
--- HippoDraw-1.21.3/projectors/MapMatrixProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
183 |
+++ HippoDraw-1.21.3.new/projectors/MapMatrixProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
184 |
@@ -23,10 +23,10 @@ |
185 |
|
186 |
#include <algorithm> |
187 |
#include <numeric> |
188 |
- |
189 |
+#include <climits> |
190 |
#include <cfloat> |
191 |
#include <cmath> |
192 |
- |
193 |
+#include <climits> |
194 |
#include <cassert> |
195 |
|
196 |
using namespace hippodraw; |
197 |
diff -Naur HippoDraw-1.21.3/projectors/MeshProjector.cxx HippoDraw-1.21.3.new/projectors/MeshProjector.cxx |
198 |
--- HippoDraw-1.21.3/projectors/MeshProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
199 |
+++ HippoDraw-1.21.3.new/projectors/MeshProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
200 |
@@ -24,7 +24,7 @@ |
201 |
|
202 |
#include <algorithm> |
203 |
#include <cfloat> |
204 |
- |
205 |
+#include <climits> |
206 |
#include <cassert> |
207 |
|
208 |
using namespace hippodraw; |
209 |
diff -Naur HippoDraw-1.21.3/projectors/NTupleProjector.cxx HippoDraw-1.21.3.new/projectors/NTupleProjector.cxx |
210 |
--- HippoDraw-1.21.3/projectors/NTupleProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
211 |
+++ HippoDraw-1.21.3.new/projectors/NTupleProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
212 |
@@ -23,7 +23,7 @@ |
213 |
#include <algorithm> |
214 |
#include <functional> |
215 |
#include <stdexcept> |
216 |
- |
217 |
+#include <climits> |
218 |
#include <cassert> |
219 |
|
220 |
#ifdef ITERATOR_MEMBER_DEFECT |
221 |
diff -Naur HippoDraw-1.21.3/projectors/ProfileProjector.cxx HippoDraw-1.21.3.new/projectors/ProfileProjector.cxx |
222 |
--- HippoDraw-1.21.3/projectors/ProfileProjector.cxx 2007-04-23 17:57:21.000000000 -0400 |
223 |
+++ HippoDraw-1.21.3.new/projectors/ProfileProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
224 |
@@ -27,7 +27,7 @@ |
225 |
#include "datasrcs/NTuple.h" |
226 |
|
227 |
#include <algorithm> |
228 |
- |
229 |
+#include <climits> |
230 |
#include <cassert> |
231 |
|
232 |
using namespace hippodraw; |
233 |
diff -Naur HippoDraw-1.21.3/projectors/StripChartProjector.cxx HippoDraw-1.21.3.new/projectors/StripChartProjector.cxx |
234 |
--- HippoDraw-1.21.3/projectors/StripChartProjector.cxx 2005-10-29 20:10:14.000000000 -0400 |
235 |
+++ HippoDraw-1.21.3.new/projectors/StripChartProjector.cxx 2008-06-01 15:28:20.000000000 -0400 |
236 |
@@ -20,7 +20,7 @@ |
237 |
#include "datasrcs/DataSource.h" |
238 |
|
239 |
#include <algorithm> |
240 |
- |
241 |
+#include <climits> |
242 |
#include <cassert> |
243 |
|
244 |
using std::distance; |
245 |
diff -Naur HippoDraw-1.21.3/qt/QtApp.cxx HippoDraw-1.21.3.new/qt/QtApp.cxx |
246 |
--- HippoDraw-1.21.3/qt/QtApp.cxx 2007-03-14 19:28:28.000000000 -0400 |
247 |
+++ HippoDraw-1.21.3.new/qt/QtApp.cxx 2008-06-01 15:28:20.000000000 -0400 |
248 |
@@ -26,6 +26,7 @@ |
249 |
|
250 |
#include "qdir.h" |
251 |
#include <cassert> |
252 |
+#include <cstdlib> |
253 |
|
254 |
using std::string; |
255 |
|
256 |
diff -Naur HippoDraw-1.21.3/qt/QtViewImp.cxx HippoDraw-1.21.3.new/qt/QtViewImp.cxx |
257 |
--- HippoDraw-1.21.3/qt/QtViewImp.cxx 2007-06-28 16:03:02.000000000 -0400 |
258 |
+++ HippoDraw-1.21.3.new/qt/QtViewImp.cxx 2008-06-01 15:28:20.000000000 -0400 |
259 |
@@ -42,6 +42,7 @@ |
260 |
#endif |
261 |
|
262 |
#include <cassert> |
263 |
+#include <cstdlib> |
264 |
|
265 |
using namespace hippodraw; |
266 |
|
267 |
|
268 |
|
269 |
|
270 |
-- |
271 |
gentoo-commits@l.g.o mailing list |