1 |
commit: 941b4a90ddb5b32021782dc2f4239abf2dd8da46 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 9 17:17:35 2016 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 9 18:57:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941b4a90 |
7 |
|
8 |
sci-visualization/paraview: remove old versions |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
sci-visualization/paraview/Manifest | 2 - |
13 |
.../paraview/files/paraview-4.0.1-Protobuf.patch | 72 --- |
14 |
.../files/paraview-4.0.1-removesqlite.patch | 517 -------------------- |
15 |
.../files/paraview-4.0.1-vtk-cg-path.patch | 36 -- |
16 |
.../files/paraview-4.1.0-glxext-legacy.patch | 9 - |
17 |
.../files/paraview-4.1.0-no-fatal-warnings.patch | 19 - |
18 |
.../files/paraview-4.1.0-vtk-freetype.patch | 22 - |
19 |
.../files/paraview-4.2.0-removesqlite.patch | 541 --------------------- |
20 |
.../files/paraview-4.2.0-vtk-freetype.patch | 22 - |
21 |
.../paraview/paraview-4.1.0-r2.ebuild | 302 ------------ |
22 |
sci-visualization/paraview/paraview-4.3.1.ebuild | 288 ----------- |
23 |
11 files changed, 1830 deletions(-) |
24 |
|
25 |
diff --git a/sci-visualization/paraview/Manifest b/sci-visualization/paraview/Manifest |
26 |
index f97d7ed..3b515b6 100644 |
27 |
--- a/sci-visualization/paraview/Manifest |
28 |
+++ b/sci-visualization/paraview/Manifest |
29 |
@@ -1,3 +1 @@ |
30 |
-DIST ParaView-v4.1.0-source.tar.gz 50460304 SHA256 80ef898c158d7fd9ceb0bcd83be1f679eef06ce4f20514a2435330cc97a3fdf3 SHA512 da91f7332a91746d60968a9d6cc1fe4878a3710f8e4a3d675dc65c337d6844f39df4c3e307d424ee0d2a832fd3c0f3d0c4da6a8b0a2aa6902920988fb53b9f7f WHIRLPOOL c3572d12f05b8443eb21a342c140d55e3c41e2af383aa850491aaeec412e62a45a4ee44e6d772dc9b6f141028911cb96b22a7818c6f15bc80bb8553d37008d96 |
31 |
-DIST ParaView-v4.3.1-source.tar.gz 50842525 SHA256 d534c475fc052215ecadf4ad19d9c7996c634b5d965951292b966710509a2542 SHA512 73c17f7ba757647869b26992c0ac3a6b9298bce9d2b8c2fca28286064f2b83a29753028a29c6f478654fffc96c9d9f5dd638c64df2b05ded425da122109d31e3 WHIRLPOOL 3db1d02db95acf16f29c4784714985e4f6f7a32fbdf7fa58ad85ecfaf6ab60d7959ea3d5a3ab5d36739e56f1ee5b025d9b6275749966b576324629f14e96bde0 |
32 |
DIST ParaView-v4.4.0-source.tar.gz 58397252 SHA256 c2dc334a89df24ce5233b81b74740fc9f10bc181cd604109fd13f6ad2381fc73 SHA512 092dee4ca75b9f4e3b4a53c85ebc89f406a91f6dd9ac9a3deb65de776189c2582d15c2b1f8f0393ff4d7a438333f8801de22d2cf916b314d8b85d93cc5f4671e WHIRLPOOL 722be36c45563066a2e91e7ea3e382d6928056a38c01920089f6e16a721259e1e8f99b26c982f136f9cfac8f1cb1d9f54ee0267cea79360ace4c00e81a47e61b |
33 |
|
34 |
diff --git a/sci-visualization/paraview/files/paraview-4.0.1-Protobuf.patch b/sci-visualization/paraview/files/paraview-4.0.1-Protobuf.patch |
35 |
deleted file mode 100644 |
36 |
index 6a09a1a..0000000 |
37 |
--- a/sci-visualization/paraview/files/paraview-4.0.1-Protobuf.patch |
38 |
+++ /dev/null |
39 |
@@ -1,72 +0,0 @@ |
40 |
-http://paraview.org/Bug/view.php?id=13656 |
41 |
- |
42 |
-diff -up ParaView/ParaViewCore/ServerImplementation/Core/CMakeLists.txt.Protobuf ParaView/ParaViewCore/ServerImplementation/Core/CMakeLists.txt |
43 |
---- ParaView/ParaViewCore/ServerImplementation/Core/CMakeLists.txt.Protobuf 2012-11-08 07:51:51.000000000 -0700 |
44 |
-+++ ParaView/ParaViewCore/ServerImplementation/Core/CMakeLists.txt 2012-11-13 15:17:53.980027098 -0700 |
45 |
-@@ -81,16 +81,24 @@ |
46 |
- #------------------------------------------------------------------------------ |
47 |
- # Generate the protbuf message file. |
48 |
- #------------------------------------------------------------------------------ |
49 |
--get_target_property(PROTOC_LOCATION protoc_compiler LOCATION) |
50 |
-+if (VTK_USE_SYSTEM_PROTOBUF) |
51 |
-+ set (_PROTOC_COMPILER protoc) |
52 |
-+ set (_PROTOC_DEPEND "") |
53 |
-+else() |
54 |
-+ set (_PROTOC_COMPILER protoc_compiler) |
55 |
-+ set (_PROTOC_DEPEND ${_PROTOC_COMPILER}) |
56 |
-+endif() |
57 |
-+ |
58 |
-+get_target_property(PROTOC_LOCATION ${_PROTOC_COMPILER} LOCATION) |
59 |
- add_custom_command( |
60 |
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/vtkPVMessage.pb.h |
61 |
- ${CMAKE_CURRENT_BINARY_DIR}/vtkPVMessage.pb.cc |
62 |
- |
63 |
-- COMMAND protoc_compiler |
64 |
-+ COMMAND ${_PROTOC_COMPILER} |
65 |
- "--cpp_out=dllexport_decl=VTKPVSERVERIMPLEMENTATIONCORE_EXPORT:${CMAKE_CURRENT_BINARY_DIR}" |
66 |
- --proto_path "@CMAKE_CURRENT_SOURCE_DIR@" |
67 |
- "${CMAKE_CURRENT_SOURCE_DIR}/vtkPVMessage.proto" |
68 |
-- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/vtkPVMessage.proto protoc_compiler |
69 |
-+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/vtkPVMessage.proto ${_PROTOC_DEPEND} |
70 |
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
71 |
- ) |
72 |
- |
73 |
-@@ -109,5 +117,9 @@ |
74 |
- vtk_module_library(vtkPVServerImplementationCore |
75 |
- ${Module_SRCS}) |
76 |
- |
77 |
-+if (VTK_USE_SYSTEM_PROTOBUF) |
78 |
-+ target_link_libraries(vtkPVServerImplementationCore ${CMAKE_THREAD_LIBS_INIT}) |
79 |
-+endif() |
80 |
-+ |
81 |
- add_dependencies(vtkPVServerImplementationCore |
82 |
- protobuf_code_generation) |
83 |
-diff -up ParaView/ThirdParty/protobuf/CMakeLists.txt.Protobuf ParaView/ThirdParty/protobuf/CMakeLists.txt |
84 |
---- ParaView/ThirdParty/protobuf/CMakeLists.txt.Protobuf 2012-11-08 07:51:51.000000000 -0700 |
85 |
-+++ ParaView/ThirdParty/protobuf/CMakeLists.txt 2012-11-13 15:09:31.526673020 -0700 |
86 |
-@@ -34,7 +34,7 @@ |
87 |
- set (PROTOBUF_INSTALL_LIB_DIR ${VTK_INSTALL_LIBRARY_DIR}) |
88 |
- set (PROTOBUF_INSTALL_EXPORT_NAME ${VTK_INSTALL_EXPORT_NAME}) |
89 |
- |
90 |
--vtk_module_third_party(protobuf |
91 |
-+vtk_module_third_party(Protobuf |
92 |
- INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/vtkprotobuf/src |
93 |
- LIBRARIES protobuf |
94 |
- ) |
95 |
-@@ -42,10 +42,12 @@ |
96 |
- # protobuf exports it's build-dir targets to a custom file |
97 |
- # (PROTOBUF_EXPORTS.cmake). We don't care much about that. We export |
98 |
- # build-dir targets ourselves. |
99 |
--vtk_target_export(protobuf) |
100 |
--vtk_target_export(protobuf-lite) |
101 |
--if (NOT CMAKE_CROSSCOMPILING) |
102 |
-- vtk_compile_tools_target_export(protoc_compiler) |
103 |
-+if (NOT VTK_USE_SYSTEM_PROTOBUF) |
104 |
-+ vtk_target_export(protobuf) |
105 |
-+ vtk_target_export(protobuf-lite) |
106 |
-+ if (NOT CMAKE_CROSSCOMPILING) |
107 |
-+ vtk_compile_tools_target_export(protoc_compiler) |
108 |
-+ endif() |
109 |
- endif() |
110 |
- |
111 |
- # All these exports don't add any install rules. However we make protobuf itself |
112 |
|
113 |
diff --git a/sci-visualization/paraview/files/paraview-4.0.1-removesqlite.patch b/sci-visualization/paraview/files/paraview-4.0.1-removesqlite.patch |
114 |
deleted file mode 100644 |
115 |
index be495b4..0000000 |
116 |
--- a/sci-visualization/paraview/files/paraview-4.0.1-removesqlite.patch |
117 |
+++ /dev/null |
118 |
@@ -1,517 +0,0 @@ |
119 |
-Description: Import patch from VTK to remove sqlite |
120 |
-Author: Mathieu Malaterre <mathieu.malaterre@×××××.com> |
121 |
-Last-Update: Mon Feb 11 14:58:03 UTC 2013 |
122 |
- |
123 |
-remove the internal copy of sqlite (vtksqlite) |
124 |
-http://patch-tracker.debian.org/patch/series/view/paraview/3.14.1-7/removesqlite.patch |
125 |
- |
126 |
---- VTK/IO/SQL/vtkSQLiteDatabase.cxx |
127 |
-+++ VTK/IO/SQL/vtkSQLiteDatabase.cxx |
128 |
-@@ -29,7 +29,7 @@ |
129 |
- #include <vtksys/ios/fstream> |
130 |
- #include <vtksys/ios/sstream> |
131 |
- |
132 |
--#include <vtksqlite/vtk_sqlite3.h> |
133 |
-+#include <sqlite3.h> |
134 |
- |
135 |
- vtkStandardNewMacro(vtkSQLiteDatabase); |
136 |
- |
137 |
-@@ -307,15 +307,15 @@ |
138 |
- } |
139 |
- } |
140 |
- |
141 |
-- int result = vtk_sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance)); |
142 |
-+ int result = sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance)); |
143 |
- |
144 |
-- if (result != VTK_SQLITE_OK) |
145 |
-+ if (result != SQLITE_OK) |
146 |
- { |
147 |
- vtkDebugMacro(<<"SQLite open() failed. Error code is " |
148 |
- << result << " and message is " |
149 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
150 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
151 |
- |
152 |
-- vtk_sqlite3_close(this->SQLiteInstance); |
153 |
-+ sqlite3_close(this->SQLiteInstance); |
154 |
- return false; |
155 |
- } |
156 |
- else |
157 |
-@@ -334,8 +334,8 @@ |
158 |
- } |
159 |
- else |
160 |
- { |
161 |
-- int result = vtk_sqlite3_close(this->SQLiteInstance); |
162 |
-- if (result != VTK_SQLITE_OK) |
163 |
-+ int result = sqlite3_close(this->SQLiteInstance); |
164 |
-+ if (result != SQLITE_OK) |
165 |
- { |
166 |
- vtkWarningMacro(<< "Close(): SQLite returned result code " << result); |
167 |
- } |
168 |
-@@ -374,7 +374,7 @@ |
169 |
- if (!status) |
170 |
- { |
171 |
- vtkErrorMacro(<< "GetTables(): Database returned error: " |
172 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
173 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
174 |
- query->Delete(); |
175 |
- return this->Tables; |
176 |
- } |
177 |
-@@ -403,7 +403,7 @@ |
178 |
- if (!status) |
179 |
- { |
180 |
- vtkErrorMacro(<< "GetRecord(" << table << "): Database returned error: " |
181 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
182 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
183 |
- query->Delete(); |
184 |
- return NULL; |
185 |
- } |
186 |
-@@ -467,10 +467,10 @@ |
187 |
- // ---------------------------------------------------------------------- |
188 |
- bool vtkSQLiteDatabase::HasError() |
189 |
- { |
190 |
-- return (vtk_sqlite3_errcode(this->SQLiteInstance)!=VTK_SQLITE_OK); |
191 |
-+ return (sqlite3_errcode(this->SQLiteInstance)!=SQLITE_OK); |
192 |
- } |
193 |
- |
194 |
- const char* vtkSQLiteDatabase::GetLastErrorText() |
195 |
- { |
196 |
-- return vtk_sqlite3_errmsg(this->SQLiteInstance); |
197 |
-+ return sqlite3_errmsg(this->SQLiteInstance); |
198 |
- } |
199 |
---- VTK/IO/SQL/vtkSQLiteQuery.cxx |
200 |
-+++ VTK/IO/SQL/vtkSQLiteQuery.cxx |
201 |
-@@ -25,7 +25,7 @@ |
202 |
- #include "vtkVariant.h" |
203 |
- #include "vtkVariantArray.h" |
204 |
- |
205 |
--#include <vtksqlite/vtk_sqlite3.h> |
206 |
-+#include <sqlite3.h> |
207 |
- |
208 |
- #include <assert.h> |
209 |
- |
210 |
-@@ -43,7 +43,7 @@ |
211 |
- { |
212 |
- this->Statement = NULL; |
213 |
- this->InitialFetch = true; |
214 |
-- this->InitialFetchResult=VTK_SQLITE_DONE; |
215 |
-+ this->InitialFetchResult=SQLITE_DONE; |
216 |
- this->LastErrorText = NULL; |
217 |
- this->TransactionInProgress = false; |
218 |
- } |
219 |
-@@ -61,7 +61,7 @@ |
220 |
- { |
221 |
- if (this->Database != NULL) |
222 |
- { |
223 |
-- vtk_sqlite3_finalize(this->Statement); |
224 |
-+ sqlite3_finalize(this->Statement); |
225 |
- this->Statement = NULL; |
226 |
- } |
227 |
- } |
228 |
-@@ -131,8 +131,8 @@ |
229 |
- if (this->Statement) |
230 |
- { |
231 |
- vtkDebugMacro(<<"Finalizing old statement"); |
232 |
-- int finalizeStatus = vtk_sqlite3_finalize(this->Statement); |
233 |
-- if (finalizeStatus != VTK_SQLITE_OK) |
234 |
-+ int finalizeStatus = sqlite3_finalize(this->Statement); |
235 |
-+ if (finalizeStatus != SQLITE_OK) |
236 |
- { |
237 |
- vtkWarningMacro(<<"SetQuery(): Finalize returned unexpected code " |
238 |
- << finalizeStatus); |
239 |
-@@ -151,19 +151,19 @@ |
240 |
- return false; |
241 |
- } |
242 |
- |
243 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
244 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
245 |
- const char *unused_statement; |
246 |
- |
247 |
-- int prepareStatus = vtk_sqlite3_prepare_v2(db, |
248 |
-+ int prepareStatus = sqlite3_prepare_v2(db, |
249 |
- this->Query, |
250 |
- static_cast<int>(strlen(this->Query)), |
251 |
- &this->Statement, |
252 |
- &unused_statement); |
253 |
- |
254 |
-- if (prepareStatus != VTK_SQLITE_OK) |
255 |
-+ if (prepareStatus != SQLITE_OK) |
256 |
- { |
257 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
258 |
-- vtkWarningMacro(<<"SetQuery(): vtk_sqlite3_prepare_v2() failed with error message " |
259 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
260 |
-+ vtkWarningMacro(<<"SetQuery(): sqlite3_prepare_v2() failed with error message " |
261 |
- << this->GetLastErrorText() |
262 |
- << " on statement: '" |
263 |
- << this->Query << "'"); |
264 |
-@@ -194,31 +194,31 @@ |
265 |
- } |
266 |
- else |
267 |
- { |
268 |
-- vtk_sqlite3_reset(this->Statement); |
269 |
-+ sqlite3_reset(this->Statement); |
270 |
- } |
271 |
- |
272 |
- vtkDebugMacro(<<"Execute(): Query ready to execute."); |
273 |
- |
274 |
- this->InitialFetch = true; |
275 |
-- int result = vtk_sqlite3_step(this->Statement); |
276 |
-+ int result = sqlite3_step(this->Statement); |
277 |
- this->InitialFetchResult = result; |
278 |
- |
279 |
-- if (result == VTK_SQLITE_DONE) |
280 |
-+ if (result == SQLITE_DONE) |
281 |
- { |
282 |
- this->SetLastErrorText(NULL); |
283 |
- this->Active = true; |
284 |
- return true; |
285 |
- } |
286 |
-- else if (result != VTK_SQLITE_ROW) |
287 |
-+ else if (result != SQLITE_ROW) |
288 |
- { |
289 |
- vtkSQLiteDatabase *dbContainer = |
290 |
- vtkSQLiteDatabase::SafeDownCast(this->Database); |
291 |
- assert(dbContainer != NULL); |
292 |
- |
293 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
294 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
295 |
- |
296 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
297 |
-- vtkDebugMacro(<< "Execute(): vtk_sqlite3_step() returned error message " |
298 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
299 |
-+ vtkDebugMacro(<< "Execute(): sqlite3_step() returned error message " |
300 |
- << this->GetLastErrorText()); |
301 |
- this->Active = false; |
302 |
- return false; |
303 |
-@@ -239,7 +239,7 @@ |
304 |
- } |
305 |
- else |
306 |
- { |
307 |
-- return vtk_sqlite3_column_count(this->Statement); |
308 |
-+ return sqlite3_column_count(this->Statement); |
309 |
- } |
310 |
- } |
311 |
- |
312 |
-@@ -259,7 +259,7 @@ |
313 |
- } |
314 |
- else |
315 |
- { |
316 |
-- return vtk_sqlite3_column_name(this->Statement, column); |
317 |
-+ return sqlite3_column_name(this->Statement, column); |
318 |
- } |
319 |
- } |
320 |
- |
321 |
-@@ -279,22 +279,22 @@ |
322 |
- } |
323 |
- else |
324 |
- { |
325 |
-- switch (vtk_sqlite3_column_type(this->Statement, column)) |
326 |
-+ switch (sqlite3_column_type(this->Statement, column)) |
327 |
- { |
328 |
-- case VTK_SQLITE_INTEGER: |
329 |
-+ case SQLITE_INTEGER: |
330 |
- return VTK_INT; |
331 |
-- case VTK_SQLITE_FLOAT: |
332 |
-+ case SQLITE_FLOAT: |
333 |
- return VTK_FLOAT; |
334 |
-- case VTK_SQLITE_TEXT: |
335 |
-+ case SQLITE_TEXT: |
336 |
- return VTK_STRING; |
337 |
-- case VTK_SQLITE_BLOB: |
338 |
-+ case SQLITE_BLOB: |
339 |
- return VTK_STRING; // until we have a BLOB type of our own |
340 |
-- case VTK_SQLITE_NULL: |
341 |
-+ case SQLITE_NULL: |
342 |
- return VTK_VOID; // ??? what makes sense here? |
343 |
- default: |
344 |
- { |
345 |
- vtkErrorMacro(<<"GetFieldType(): Unknown data type " |
346 |
-- << vtk_sqlite3_column_type(this->Statement, column) |
347 |
-+ << sqlite3_column_type(this->Statement, column) |
348 |
- <<" from SQLite."); |
349 |
- return VTK_VOID; |
350 |
- } |
351 |
-@@ -315,7 +315,7 @@ |
352 |
- { |
353 |
- vtkDebugMacro(<<"NextRow(): Initial fetch being handled."); |
354 |
- this->InitialFetch = false; |
355 |
-- if (this->InitialFetchResult == VTK_SQLITE_DONE) |
356 |
-+ if (this->InitialFetchResult == SQLITE_DONE) |
357 |
- { |
358 |
- return false; |
359 |
- } |
360 |
-@@ -326,12 +326,12 @@ |
361 |
- } |
362 |
- else |
363 |
- { |
364 |
-- int result = vtk_sqlite3_step(this->Statement); |
365 |
-- if (result == VTK_SQLITE_DONE) |
366 |
-+ int result = sqlite3_step(this->Statement); |
367 |
-+ if (result == SQLITE_DONE) |
368 |
- { |
369 |
- return false; |
370 |
- } |
371 |
-- else if (result == VTK_SQLITE_ROW) |
372 |
-+ else if (result == SQLITE_ROW) |
373 |
- { |
374 |
- return true; |
375 |
- } |
376 |
-@@ -339,8 +339,8 @@ |
377 |
- { |
378 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
379 |
- assert(dbContainer != NULL); |
380 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
381 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
382 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
383 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
384 |
- vtkErrorMacro(<<"NextRow(): Database returned error code " |
385 |
- << result << " with the following message: " |
386 |
- << this->GetLastErrorText()); |
387 |
-@@ -366,33 +366,33 @@ |
388 |
- } |
389 |
- else |
390 |
- { |
391 |
-- switch (vtk_sqlite3_column_type(this->Statement, column)) |
392 |
-+ switch (sqlite3_column_type(this->Statement, column)) |
393 |
- { |
394 |
-- case VTK_SQLITE_INTEGER: |
395 |
-- return vtkVariant(vtk_sqlite3_column_int(this->Statement, column)); |
396 |
-+ case SQLITE_INTEGER: |
397 |
-+ return vtkVariant(sqlite3_column_int(this->Statement, column)); |
398 |
- |
399 |
-- case VTK_SQLITE_FLOAT: |
400 |
-- return vtkVariant(vtk_sqlite3_column_double(this->Statement, column)); |
401 |
-+ case SQLITE_FLOAT: |
402 |
-+ return vtkVariant(sqlite3_column_double(this->Statement, column)); |
403 |
- |
404 |
-- case VTK_SQLITE_TEXT: |
405 |
-+ case SQLITE_TEXT: |
406 |
- { |
407 |
- vtksys_ios::ostringstream str; |
408 |
-- str << vtk_sqlite3_column_text(this->Statement, column); |
409 |
-+ str << sqlite3_column_text(this->Statement, column); |
410 |
- return vtkVariant(vtkStdString(str.str())); |
411 |
- } |
412 |
- |
413 |
-- case VTK_SQLITE_BLOB: |
414 |
-+ case SQLITE_BLOB: |
415 |
- { |
416 |
- // This is a hack ... by passing the BLOB to vtkStdString with an explicit |
417 |
- // byte count, we ensure that the string will store all of the BLOB's bytes, |
418 |
- // even if there are NULL values. |
419 |
- |
420 |
- return vtkVariant(vtkStdString( |
421 |
-- static_cast<const char*>(vtk_sqlite3_column_blob(this->Statement, column)), |
422 |
-- vtk_sqlite3_column_bytes(this->Statement, column))); |
423 |
-+ static_cast<const char*>(sqlite3_column_blob(this->Statement, column)), |
424 |
-+ sqlite3_column_bytes(this->Statement, column))); |
425 |
- } |
426 |
- |
427 |
-- case VTK_SQLITE_NULL: |
428 |
-+ case SQLITE_NULL: |
429 |
- default: |
430 |
- return vtkVariant(); |
431 |
- } |
432 |
-@@ -423,11 +423,11 @@ |
433 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
434 |
- assert(dbContainer != NULL); |
435 |
- |
436 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
437 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
438 |
- char *errorMessage = NULL; |
439 |
-- int result = vtk_sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage); |
440 |
-+ int result = sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage); |
441 |
- |
442 |
-- if (result == VTK_SQLITE_OK) |
443 |
-+ if (result == SQLITE_OK) |
444 |
- { |
445 |
- this->TransactionInProgress = true; |
446 |
- this->SetLastErrorText(NULL); |
447 |
-@@ -451,7 +451,7 @@ |
448 |
- { |
449 |
- if (this->Statement) |
450 |
- { |
451 |
-- vtk_sqlite3_finalize(this->Statement); |
452 |
-+ sqlite3_finalize(this->Statement); |
453 |
- this->Statement = NULL; |
454 |
- } |
455 |
- |
456 |
-@@ -463,11 +463,11 @@ |
457 |
- |
458 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
459 |
- assert(dbContainer != NULL); |
460 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
461 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
462 |
- char *errorMessage = NULL; |
463 |
-- int result = vtk_sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage); |
464 |
-+ int result = sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage); |
465 |
- |
466 |
-- if (result == VTK_SQLITE_OK) |
467 |
-+ if (result == SQLITE_OK) |
468 |
- { |
469 |
- this->TransactionInProgress = false; |
470 |
- this->SetLastErrorText(NULL); |
471 |
-@@ -499,11 +499,11 @@ |
472 |
- |
473 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
474 |
- assert(dbContainer != NULL); |
475 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
476 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
477 |
- char *errorMessage = NULL; |
478 |
-- int result = vtk_sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage); |
479 |
-+ int result = sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage); |
480 |
- |
481 |
-- if (result == VTK_SQLITE_OK) |
482 |
-+ if (result == SQLITE_OK) |
483 |
- { |
484 |
- this->TransactionInProgress = false; |
485 |
- this->SetLastErrorText(NULL); |
486 |
-@@ -647,11 +647,11 @@ |
487 |
- if (this->Active) |
488 |
- { |
489 |
- this->Active = false; |
490 |
-- vtk_sqlite3_reset(this->Statement); |
491 |
-+ sqlite3_reset(this->Statement); |
492 |
- } |
493 |
-- int status = vtk_sqlite3_bind_int(this->Statement, index+1, value); |
494 |
-+ int status = sqlite3_bind_int(this->Statement, index+1, value); |
495 |
- |
496 |
-- if (status != VTK_SQLITE_OK) |
497 |
-+ if (status != SQLITE_OK) |
498 |
- { |
499 |
- vtksys_ios::ostringstream errormessage; |
500 |
- errormessage << "sqlite_bind_int returned error: " << status; |
501 |
-@@ -676,11 +676,11 @@ |
502 |
- if (this->Active) |
503 |
- { |
504 |
- this->Active = false; |
505 |
-- vtk_sqlite3_reset(this->Statement); |
506 |
-+ sqlite3_reset(this->Statement); |
507 |
- } |
508 |
-- int status = vtk_sqlite3_bind_int(this->Statement, index+1, static_cast<vtk_sqlite_int64>(value)); |
509 |
-+ int status = sqlite3_bind_int(this->Statement, index+1, static_cast<sqlite_int64>(value)); |
510 |
- |
511 |
-- if (status != VTK_SQLITE_OK) |
512 |
-+ if (status != SQLITE_OK) |
513 |
- { |
514 |
- vtksys_ios::ostringstream errormessage; |
515 |
- errormessage << "sqlite_bind_int64 returned error: " << status; |
516 |
-@@ -705,12 +705,12 @@ |
517 |
- if (this->Active) |
518 |
- { |
519 |
- this->Active = false; |
520 |
-- vtk_sqlite3_reset(this->Statement); |
521 |
-+ sqlite3_reset(this->Statement); |
522 |
- } |
523 |
- |
524 |
-- int status = vtk_sqlite3_bind_double(this->Statement, index+1, value); |
525 |
-+ int status = sqlite3_bind_double(this->Statement, index+1, value); |
526 |
- |
527 |
-- if (status != VTK_SQLITE_OK) |
528 |
-+ if (status != SQLITE_OK) |
529 |
- { |
530 |
- vtksys_ios::ostringstream errormessage; |
531 |
- errormessage << "sqlite_bind_double returned error: " << status; |
532 |
-@@ -734,12 +734,12 @@ |
533 |
- if (this->Active) |
534 |
- { |
535 |
- this->Active = false; |
536 |
-- vtk_sqlite3_reset(this->Statement); |
537 |
-+ sqlite3_reset(this->Statement); |
538 |
- } |
539 |
- |
540 |
-- int status = vtk_sqlite3_bind_text(this->Statement, index+1, value, length, VTK_SQLITE_TRANSIENT); |
541 |
-+ int status = sqlite3_bind_text(this->Statement, index+1, value, length, SQLITE_TRANSIENT); |
542 |
- |
543 |
-- if (status != VTK_SQLITE_OK) |
544 |
-+ if (status != SQLITE_OK) |
545 |
- { |
546 |
- vtksys_ios::ostringstream errormessage; |
547 |
- errormessage << "sqlite_bind_text returned error: " << status; |
548 |
-@@ -763,17 +763,17 @@ |
549 |
- if (this->Active) |
550 |
- { |
551 |
- this->Active = false; |
552 |
-- vtk_sqlite3_reset(this->Statement); |
553 |
-+ sqlite3_reset(this->Statement); |
554 |
- } |
555 |
- |
556 |
- int status = |
557 |
-- vtk_sqlite3_bind_blob(this->Statement, |
558 |
-+ sqlite3_bind_blob(this->Statement, |
559 |
- index+1, |
560 |
- data, |
561 |
- length, |
562 |
-- VTK_SQLITE_TRANSIENT); |
563 |
-+ SQLITE_TRANSIENT); |
564 |
- |
565 |
-- if (status != VTK_SQLITE_OK) |
566 |
-+ if (status != SQLITE_OK) |
567 |
- { |
568 |
- vtksys_ios::ostringstream errormessage; |
569 |
- errormessage << "sqlite_bind_blob returned error: " << status; |
570 |
-@@ -797,12 +797,12 @@ |
571 |
- if (this->Active) |
572 |
- { |
573 |
- this->Active = false; |
574 |
-- vtk_sqlite3_reset(this->Statement); |
575 |
-+ sqlite3_reset(this->Statement); |
576 |
- } |
577 |
- |
578 |
-- int status = vtk_sqlite3_clear_bindings(this->Statement); |
579 |
-+ int status = sqlite3_clear_bindings(this->Statement); |
580 |
- |
581 |
-- if (status != VTK_SQLITE_OK) |
582 |
-+ if (status != SQLITE_OK) |
583 |
- { |
584 |
- vtksys_ios::ostringstream errormessage; |
585 |
- errormessage << "sqlite_clear_bindings returned error: " << status; |
586 |
---- VTK/IO/SQL/vtkSQLiteDatabase.h |
587 |
-+++ VTK/IO/SQL/vtkSQLiteDatabase.h |
588 |
-@@ -49,7 +49,7 @@ |
589 |
- class vtkSQLQuery; |
590 |
- class vtkSQLiteQuery; |
591 |
- class vtkStringArray; |
592 |
--struct vtk_sqlite3; |
593 |
-+struct sqlite3; |
594 |
- |
595 |
- class VTKIOSQL_EXPORT vtkSQLiteDatabase : public vtkSQLDatabase |
596 |
- { |
597 |
-@@ -147,7 +147,7 @@ |
598 |
- virtual bool ParseURL(const char* url); |
599 |
- |
600 |
- private: |
601 |
-- vtk_sqlite3 *SQLiteInstance; |
602 |
-+ sqlite3 *SQLiteInstance; |
603 |
- |
604 |
- // We want this to be private, a user of this class |
605 |
- // should not be setting this for any reason |
606 |
---- VTK/IO/SQL/vtkSQLiteQuery.h |
607 |
-+++ VTK/IO/SQL/vtkSQLiteQuery.h |
608 |
-@@ -47,7 +47,7 @@ |
609 |
- class vtkSQLiteDatabase; |
610 |
- class vtkVariant; |
611 |
- class vtkVariantArray; |
612 |
--struct vtk_sqlite3_stmt; |
613 |
-+struct sqlite3_stmt; |
614 |
- |
615 |
- class VTKIOSQL_EXPORT vtkSQLiteQuery : public vtkSQLQuery |
616 |
- { |
617 |
-@@ -155,7 +155,7 @@ |
618 |
- vtkSQLiteQuery(const vtkSQLiteQuery &); // Not implemented. |
619 |
- void operator=(const vtkSQLiteQuery &); // Not implemented. |
620 |
- |
621 |
-- vtk_sqlite3_stmt *Statement; |
622 |
-+ sqlite3_stmt *Statement; |
623 |
- bool InitialFetch; |
624 |
- int InitialFetchResult; |
625 |
- char *LastErrorText; |
626 |
---- VTK/ThirdParty/sqlite/CMakeLists.txt |
627 |
-+++ VTK/ThirdParty/sqlite/CMakeLists.txt |
628 |
-@@ -1,4 +1,4 @@ |
629 |
--set(vtksqlite_THIRD_PARTY 1) |
630 |
--set(vtksqlite_LIBRARIES vtksqlite) |
631 |
-+#set(vtksqlite_THIRD_PARTY 1) |
632 |
-+set(vtksqlite_LIBRARIES sqlite3) |
633 |
- vtk_module_export_info() |
634 |
--add_subdirectory(vtksqlite) |
635 |
-+#add_subdirectory(vtksqlite) |
636 |
|
637 |
diff --git a/sci-visualization/paraview/files/paraview-4.0.1-vtk-cg-path.patch b/sci-visualization/paraview/files/paraview-4.0.1-vtk-cg-path.patch |
638 |
deleted file mode 100644 |
639 |
index 58ddde9..0000000 |
640 |
--- a/sci-visualization/paraview/files/paraview-4.0.1-vtk-cg-path.patch |
641 |
+++ /dev/null |
642 |
@@ -1,36 +0,0 @@ |
643 |
---- ParaView-3.98.0-src/VTK/CMake/FindCg.cmake |
644 |
-+++ ParaView-3.98.0-src/VTK/CMake/FindCg.cmake |
645 |
-@@ -82,6 +82,7 @@ |
646 |
- FIND_PROGRAM( CG_COMPILER cgc |
647 |
- /usr/bin |
648 |
- /usr/local/bin |
649 |
-+ /opt/nvidia-cg-toolkit/bin |
650 |
- DOC "The Cg Compiler" |
651 |
- ) |
652 |
- GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH) |
653 |
-@@ -89,6 +90,7 @@ |
654 |
- FIND_PATH( CG_INCLUDE_PATH Cg/cg.h |
655 |
- /usr/include |
656 |
- /usr/local/include |
657 |
-+ /opt/nvidia-cg-toolkit/include |
658 |
- ${CG_COMPILER_SUPER_DIR}/include |
659 |
- DOC "The directory where Cg/cg.h resides" |
660 |
- ) |
661 |
-@@ -98,6 +100,8 @@ |
662 |
- /usr/lib |
663 |
- /usr/local/lib64 |
664 |
- /usr/local/lib |
665 |
-+ /opt/nvidia-cg-toolkit/lib64 |
666 |
-+ /opt/nvidia-cg-toolkit/lib |
667 |
- ${CG_COMPILER_SUPER_DIR}/lib64 |
668 |
- ${CG_COMPILER_SUPER_DIR}/lib |
669 |
- DOC "The Cg runtime library" |
670 |
-@@ -108,6 +112,8 @@ |
671 |
- /usr/lib |
672 |
- /usr/local/lib64 |
673 |
- /usr/local/lib |
674 |
-+ /opt/nvidia-cg-toolkit/lib64 |
675 |
-+ /opt/nvidia-cg-toolkit/lib |
676 |
- ${CG_COMPILER_SUPER_DIR}/lib64 |
677 |
- ${CG_COMPILER_SUPER_DIR}/lib |
678 |
- DOC "The Cg runtime library" |
679 |
|
680 |
diff --git a/sci-visualization/paraview/files/paraview-4.1.0-glxext-legacy.patch b/sci-visualization/paraview/files/paraview-4.1.0-glxext-legacy.patch |
681 |
deleted file mode 100644 |
682 |
index 65a5b20..0000000 |
683 |
--- a/sci-visualization/paraview/files/paraview-4.1.0-glxext-legacy.patch |
684 |
+++ /dev/null |
685 |
@@ -1,9 +0,0 @@ |
686 |
---- a/ParaView-v4.1.0/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx_orig 2014-01-11 15:02:10.000000000 +0100 |
687 |
-+++ b/ParaView-v4.1.0/VTK/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx 2014-11-11 13:12:25.000000000 +0100 |
688 |
-@@ -28,5 +28,5 @@ |
689 |
- // define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by |
690 |
- // the system |
691 |
--//#define GLX_GLXEXT_LEGACY |
692 |
-+#define GLX_GLXEXT_LEGACY |
693 |
- #include "GL/glx.h" |
694 |
- |
695 |
|
696 |
diff --git a/sci-visualization/paraview/files/paraview-4.1.0-no-fatal-warnings.patch b/sci-visualization/paraview/files/paraview-4.1.0-no-fatal-warnings.patch |
697 |
deleted file mode 100644 |
698 |
index 531be2f..0000000 |
699 |
--- a/sci-visualization/paraview/files/paraview-4.1.0-no-fatal-warnings.patch |
700 |
+++ /dev/null |
701 |
@@ -1,19 +0,0 @@ |
702 |
-diff --git a/VTK/CMake/vtkCompilerExtras.cmake b/VTK/CMake/vtkCompilerExtras.cmake |
703 |
-index 05b2db9..48d9395 100644 |
704 |
---- a/VTK/CMake/vtkCompilerExtras.cmake |
705 |
-+++ b/VTK/CMake/vtkCompilerExtras.cmake |
706 |
-@@ -15,11 +15,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) |
707 |
- # If we are compiling on Linux then set some extra linker flags too |
708 |
- if(CMAKE_SYSTEM_NAME MATCHES Linux) |
709 |
- set(CMAKE_SHARED_LINKER_FLAGS |
710 |
-- "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
711 |
-+ "-Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
712 |
- set(CMAKE_MODULE_LINKER_FLAGS |
713 |
-- "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
714 |
-+ "-Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
715 |
- set (CMAKE_EXE_LINKER_FLAGS |
716 |
-- "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
717 |
-+ "-Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}") |
718 |
- endif() |
719 |
- |
720 |
- # Now check if we can use visibility to selectively export symbols |
721 |
|
722 |
diff --git a/sci-visualization/paraview/files/paraview-4.1.0-vtk-freetype.patch b/sci-visualization/paraview/files/paraview-4.1.0-vtk-freetype.patch |
723 |
deleted file mode 100644 |
724 |
index b7d3e40..0000000 |
725 |
--- a/sci-visualization/paraview/files/paraview-4.1.0-vtk-freetype.patch |
726 |
+++ /dev/null |
727 |
@@ -1,22 +0,0 @@ |
728 |
---- a/ParaView-v4.2.0-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx_orig 2014-12-23 09:25:35.000000000 +0100 |
729 |
-+++ b/ParaView-v4.2.0-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx 2014-12-24 09:40:31.886953389 +0100 |
730 |
-@@ -1185,7 +1185,7 @@ |
731 |
- if (bitmap) |
732 |
- { |
733 |
- metaData.ascent = std::max(bitmapGlyph->top - 1, metaData.ascent); |
734 |
-- metaData.descent = std::min(-(bitmap->rows - (bitmapGlyph->top - 1)), |
735 |
-+ metaData.descent = std::min(-(static_cast<int>(bitmap->rows) - (bitmapGlyph->top - 1)), |
736 |
- metaData.descent); |
737 |
- } |
738 |
- ++heightString; |
739 |
-@@ -1952,8 +1952,8 @@ |
740 |
- if (bitmap) |
741 |
- { |
742 |
- bbox[0] = std::min(bbox[0], pen[0] + bitmapGlyph->left); |
743 |
-- bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width); |
744 |
-- bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows); |
745 |
-+ bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + static_cast<int>(bitmap->width)); |
746 |
-+ bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - static_cast<int>(bitmap->rows)); |
747 |
- bbox[3] = std::max(bbox[3], pen[1] + bitmapGlyph->top - 1); |
748 |
- } |
749 |
- else |
750 |
|
751 |
diff --git a/sci-visualization/paraview/files/paraview-4.2.0-removesqlite.patch b/sci-visualization/paraview/files/paraview-4.2.0-removesqlite.patch |
752 |
deleted file mode 100644 |
753 |
index 9861962..0000000 |
754 |
--- a/sci-visualization/paraview/files/paraview-4.2.0-removesqlite.patch |
755 |
+++ /dev/null |
756 |
@@ -1,541 +0,0 @@ |
757 |
-Description: Import patch from VTK to remove sqlite |
758 |
-Author: Mathieu Malaterre <mathieu.malaterre@×××××.com> |
759 |
-Last-Update: Mon Feb 11 14:58:03 UTC 2013 |
760 |
- |
761 |
-remove the internal copy of sqlite (vtksqlite) |
762 |
-http://patch-tracker.debian.org/patch/series/view/paraview/3.14.1-7/removesqlite.patch |
763 |
- |
764 |
---- VTK/IO/SQL/vtkSQLiteDatabase.cxx |
765 |
-+++ VTK/IO/SQL/vtkSQLiteDatabase.cxx |
766 |
-@@ -29,7 +29,7 @@ |
767 |
- #include <vtksys/ios/fstream> |
768 |
- #include <vtksys/ios/sstream> |
769 |
- |
770 |
--#include <vtksqlite/vtk_sqlite3.h> |
771 |
-+#include <sqlite3.h> |
772 |
- |
773 |
- vtkStandardNewMacro(vtkSQLiteDatabase); |
774 |
- |
775 |
-@@ -307,15 +307,15 @@ |
776 |
- } |
777 |
- } |
778 |
- |
779 |
-- int result = vtk_sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance)); |
780 |
-+ int result = sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance)); |
781 |
- |
782 |
-- if (result != VTK_SQLITE_OK) |
783 |
-+ if (result != SQLITE_OK) |
784 |
- { |
785 |
- vtkDebugMacro(<<"SQLite open() failed. Error code is " |
786 |
- << result << " and message is " |
787 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
788 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
789 |
- |
790 |
-- vtk_sqlite3_close(this->SQLiteInstance); |
791 |
-+ sqlite3_close(this->SQLiteInstance); |
792 |
- return false; |
793 |
- } |
794 |
- else |
795 |
-@@ -334,8 +334,8 @@ |
796 |
- } |
797 |
- else |
798 |
- { |
799 |
-- int result = vtk_sqlite3_close(this->SQLiteInstance); |
800 |
-- if (result != VTK_SQLITE_OK) |
801 |
-+ int result = sqlite3_close(this->SQLiteInstance); |
802 |
-+ if (result != SQLITE_OK) |
803 |
- { |
804 |
- vtkWarningMacro(<< "Close(): SQLite returned result code " << result); |
805 |
- } |
806 |
-@@ -374,7 +374,7 @@ |
807 |
- if (!status) |
808 |
- { |
809 |
- vtkErrorMacro(<< "GetTables(): Database returned error: " |
810 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
811 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
812 |
- query->Delete(); |
813 |
- return this->Tables; |
814 |
- } |
815 |
-@@ -403,7 +403,7 @@ |
816 |
- if (!status) |
817 |
- { |
818 |
- vtkErrorMacro(<< "GetRecord(" << table << "): Database returned error: " |
819 |
-- << vtk_sqlite3_errmsg(this->SQLiteInstance) ); |
820 |
-+ << sqlite3_errmsg(this->SQLiteInstance) ); |
821 |
- query->Delete(); |
822 |
- return NULL; |
823 |
- } |
824 |
-@@ -467,10 +467,10 @@ |
825 |
- // ---------------------------------------------------------------------- |
826 |
- bool vtkSQLiteDatabase::HasError() |
827 |
- { |
828 |
-- return (vtk_sqlite3_errcode(this->SQLiteInstance)!=VTK_SQLITE_OK); |
829 |
-+ return (sqlite3_errcode(this->SQLiteInstance)!=SQLITE_OK); |
830 |
- } |
831 |
- |
832 |
- const char* vtkSQLiteDatabase::GetLastErrorText() |
833 |
- { |
834 |
-- return vtk_sqlite3_errmsg(this->SQLiteInstance); |
835 |
-+ return sqlite3_errmsg(this->SQLiteInstance); |
836 |
- } |
837 |
---- VTK/IO/SQL/vtkSQLiteQuery.cxx |
838 |
-+++ VTK/IO/SQL/vtkSQLiteQuery.cxx |
839 |
-@@ -25,7 +25,7 @@ |
840 |
- #include "vtkVariant.h" |
841 |
- #include "vtkVariantArray.h" |
842 |
- |
843 |
--#include <vtksqlite/vtk_sqlite3.h> |
844 |
-+#include <sqlite3.h> |
845 |
- |
846 |
- #include <assert.h> |
847 |
- |
848 |
-@@ -43,7 +43,7 @@ |
849 |
- { |
850 |
- this->Statement = NULL; |
851 |
- this->InitialFetch = true; |
852 |
-- this->InitialFetchResult=VTK_SQLITE_DONE; |
853 |
-+ this->InitialFetchResult=SQLITE_DONE; |
854 |
- this->LastErrorText = NULL; |
855 |
- this->TransactionInProgress = false; |
856 |
- } |
857 |
-@@ -61,7 +61,7 @@ |
858 |
- { |
859 |
- if (this->Database != NULL) |
860 |
- { |
861 |
-- vtk_sqlite3_finalize(this->Statement); |
862 |
-+ sqlite3_finalize(this->Statement); |
863 |
- this->Statement = NULL; |
864 |
- } |
865 |
- } |
866 |
-@@ -131,8 +131,8 @@ |
867 |
- if (this->Statement) |
868 |
- { |
869 |
- vtkDebugMacro(<<"Finalizing old statement"); |
870 |
-- int finalizeStatus = vtk_sqlite3_finalize(this->Statement); |
871 |
-- if (finalizeStatus != VTK_SQLITE_OK) |
872 |
-+ int finalizeStatus = sqlite3_finalize(this->Statement); |
873 |
-+ if (finalizeStatus != SQLITE_OK) |
874 |
- { |
875 |
- vtkWarningMacro(<<"SetQuery(): Finalize returned unexpected code " |
876 |
- << finalizeStatus); |
877 |
-@@ -151,19 +151,19 @@ |
878 |
- return false; |
879 |
- } |
880 |
- |
881 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
882 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
883 |
- const char *unused_statement; |
884 |
- |
885 |
-- int prepareStatus = vtk_sqlite3_prepare_v2(db, |
886 |
-+ int prepareStatus = sqlite3_prepare_v2(db, |
887 |
- this->Query, |
888 |
- static_cast<int>(strlen(this->Query)), |
889 |
- &this->Statement, |
890 |
- &unused_statement); |
891 |
- |
892 |
-- if (prepareStatus != VTK_SQLITE_OK) |
893 |
-+ if (prepareStatus != SQLITE_OK) |
894 |
- { |
895 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
896 |
-- vtkWarningMacro(<<"SetQuery(): vtk_sqlite3_prepare_v2() failed with error message " |
897 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
898 |
-+ vtkWarningMacro(<<"SetQuery(): sqlite3_prepare_v2() failed with error message " |
899 |
- << this->GetLastErrorText() |
900 |
- << " on statement: '" |
901 |
- << this->Query << "'"); |
902 |
-@@ -194,31 +194,31 @@ |
903 |
- } |
904 |
- else |
905 |
- { |
906 |
-- vtk_sqlite3_reset(this->Statement); |
907 |
-+ sqlite3_reset(this->Statement); |
908 |
- } |
909 |
- |
910 |
- vtkDebugMacro(<<"Execute(): Query ready to execute."); |
911 |
- |
912 |
- this->InitialFetch = true; |
913 |
-- int result = vtk_sqlite3_step(this->Statement); |
914 |
-+ int result = sqlite3_step(this->Statement); |
915 |
- this->InitialFetchResult = result; |
916 |
- |
917 |
-- if (result == VTK_SQLITE_DONE) |
918 |
-+ if (result == SQLITE_DONE) |
919 |
- { |
920 |
- this->SetLastErrorText(NULL); |
921 |
- this->Active = true; |
922 |
- return true; |
923 |
- } |
924 |
-- else if (result != VTK_SQLITE_ROW) |
925 |
-+ else if (result != SQLITE_ROW) |
926 |
- { |
927 |
- vtkSQLiteDatabase *dbContainer = |
928 |
- vtkSQLiteDatabase::SafeDownCast(this->Database); |
929 |
- assert(dbContainer != NULL); |
930 |
- |
931 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
932 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
933 |
- |
934 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
935 |
-- vtkDebugMacro(<< "Execute(): vtk_sqlite3_step() returned error message " |
936 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
937 |
-+ vtkDebugMacro(<< "Execute(): sqlite3_step() returned error message " |
938 |
- << this->GetLastErrorText()); |
939 |
- this->Active = false; |
940 |
- return false; |
941 |
-@@ -239,7 +239,7 @@ |
942 |
- } |
943 |
- else |
944 |
- { |
945 |
-- return vtk_sqlite3_column_count(this->Statement); |
946 |
-+ return sqlite3_column_count(this->Statement); |
947 |
- } |
948 |
- } |
949 |
- |
950 |
-@@ -259,7 +259,7 @@ |
951 |
- } |
952 |
- else |
953 |
- { |
954 |
-- return vtk_sqlite3_column_name(this->Statement, column); |
955 |
-+ return sqlite3_column_name(this->Statement, column); |
956 |
- } |
957 |
- } |
958 |
- |
959 |
-@@ -279,22 +279,22 @@ |
960 |
- } |
961 |
- else |
962 |
- { |
963 |
-- switch (vtk_sqlite3_column_type(this->Statement, column)) |
964 |
-+ switch (sqlite3_column_type(this->Statement, column)) |
965 |
- { |
966 |
-- case VTK_SQLITE_INTEGER: |
967 |
-+ case SQLITE_INTEGER: |
968 |
- return VTK_INT; |
969 |
-- case VTK_SQLITE_FLOAT: |
970 |
-+ case SQLITE_FLOAT: |
971 |
- return VTK_FLOAT; |
972 |
-- case VTK_SQLITE_TEXT: |
973 |
-+ case SQLITE_TEXT: |
974 |
- return VTK_STRING; |
975 |
-- case VTK_SQLITE_BLOB: |
976 |
-+ case SQLITE_BLOB: |
977 |
- return VTK_STRING; // until we have a BLOB type of our own |
978 |
-- case VTK_SQLITE_NULL: |
979 |
-+ case SQLITE_NULL: |
980 |
- return VTK_VOID; // ??? what makes sense here? |
981 |
- default: |
982 |
- { |
983 |
- vtkErrorMacro(<<"GetFieldType(): Unknown data type " |
984 |
-- << vtk_sqlite3_column_type(this->Statement, column) |
985 |
-+ << sqlite3_column_type(this->Statement, column) |
986 |
- <<" from SQLite."); |
987 |
- return VTK_VOID; |
988 |
- } |
989 |
-@@ -315,7 +315,7 @@ |
990 |
- { |
991 |
- vtkDebugMacro(<<"NextRow(): Initial fetch being handled."); |
992 |
- this->InitialFetch = false; |
993 |
-- if (this->InitialFetchResult == VTK_SQLITE_DONE) |
994 |
-+ if (this->InitialFetchResult == SQLITE_DONE) |
995 |
- { |
996 |
- return false; |
997 |
- } |
998 |
-@@ -326,12 +326,12 @@ |
999 |
- } |
1000 |
- else |
1001 |
- { |
1002 |
-- int result = vtk_sqlite3_step(this->Statement); |
1003 |
-- if (result == VTK_SQLITE_DONE) |
1004 |
-+ int result = sqlite3_step(this->Statement); |
1005 |
-+ if (result == SQLITE_DONE) |
1006 |
- { |
1007 |
- return false; |
1008 |
- } |
1009 |
-- else if (result == VTK_SQLITE_ROW) |
1010 |
-+ else if (result == SQLITE_ROW) |
1011 |
- { |
1012 |
- return true; |
1013 |
- } |
1014 |
-@@ -339,8 +339,8 @@ |
1015 |
- { |
1016 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
1017 |
- assert(dbContainer != NULL); |
1018 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
1019 |
-- this->SetLastErrorText(vtk_sqlite3_errmsg(db)); |
1020 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
1021 |
-+ this->SetLastErrorText(sqlite3_errmsg(db)); |
1022 |
- vtkErrorMacro(<<"NextRow(): Database returned error code " |
1023 |
- << result << " with the following message: " |
1024 |
- << this->GetLastErrorText()); |
1025 |
-@@ -366,33 +366,33 @@ |
1026 |
- } |
1027 |
- else |
1028 |
- { |
1029 |
-- switch (vtk_sqlite3_column_type(this->Statement, column)) |
1030 |
-+ switch (sqlite3_column_type(this->Statement, column)) |
1031 |
- { |
1032 |
-- case VTK_SQLITE_INTEGER: |
1033 |
-- return vtkVariant(vtk_sqlite3_column_int(this->Statement, column)); |
1034 |
-+ case SQLITE_INTEGER: |
1035 |
-+ return vtkVariant(sqlite3_column_int(this->Statement, column)); |
1036 |
- |
1037 |
-- case VTK_SQLITE_FLOAT: |
1038 |
-- return vtkVariant(vtk_sqlite3_column_double(this->Statement, column)); |
1039 |
-+ case SQLITE_FLOAT: |
1040 |
-+ return vtkVariant(sqlite3_column_double(this->Statement, column)); |
1041 |
- |
1042 |
-- case VTK_SQLITE_TEXT: |
1043 |
-+ case SQLITE_TEXT: |
1044 |
- { |
1045 |
- vtksys_ios::ostringstream str; |
1046 |
-- str << vtk_sqlite3_column_text(this->Statement, column); |
1047 |
-+ str << sqlite3_column_text(this->Statement, column); |
1048 |
- return vtkVariant(vtkStdString(str.str())); |
1049 |
- } |
1050 |
- |
1051 |
-- case VTK_SQLITE_BLOB: |
1052 |
-+ case SQLITE_BLOB: |
1053 |
- { |
1054 |
- // This is a hack ... by passing the BLOB to vtkStdString with an explicit |
1055 |
- // byte count, we ensure that the string will store all of the BLOB's bytes, |
1056 |
- // even if there are NULL values. |
1057 |
- |
1058 |
- return vtkVariant(vtkStdString( |
1059 |
-- static_cast<const char*>(vtk_sqlite3_column_blob(this->Statement, column)), |
1060 |
-- vtk_sqlite3_column_bytes(this->Statement, column))); |
1061 |
-+ static_cast<const char*>(sqlite3_column_blob(this->Statement, column)), |
1062 |
-+ sqlite3_column_bytes(this->Statement, column))); |
1063 |
- } |
1064 |
- |
1065 |
-- case VTK_SQLITE_NULL: |
1066 |
-+ case SQLITE_NULL: |
1067 |
- default: |
1068 |
- return vtkVariant(); |
1069 |
- } |
1070 |
-@@ -423,11 +423,11 @@ |
1071 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
1072 |
- assert(dbContainer != NULL); |
1073 |
- |
1074 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
1075 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
1076 |
- char *errorMessage = NULL; |
1077 |
-- int result = vtk_sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage); |
1078 |
-+ int result = sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage); |
1079 |
- |
1080 |
-- if (result == VTK_SQLITE_OK) |
1081 |
-+ if (result == SQLITE_OK) |
1082 |
- { |
1083 |
- this->TransactionInProgress = true; |
1084 |
- this->SetLastErrorText(NULL); |
1085 |
-@@ -451,7 +451,7 @@ |
1086 |
- { |
1087 |
- if (this->Statement) |
1088 |
- { |
1089 |
-- vtk_sqlite3_finalize(this->Statement); |
1090 |
-+ sqlite3_finalize(this->Statement); |
1091 |
- this->Statement = NULL; |
1092 |
- } |
1093 |
- |
1094 |
-@@ -463,11 +463,11 @@ |
1095 |
- |
1096 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
1097 |
- assert(dbContainer != NULL); |
1098 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
1099 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
1100 |
- char *errorMessage = NULL; |
1101 |
-- int result = vtk_sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage); |
1102 |
-+ int result = sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage); |
1103 |
- |
1104 |
-- if (result == VTK_SQLITE_OK) |
1105 |
-+ if (result == SQLITE_OK) |
1106 |
- { |
1107 |
- this->TransactionInProgress = false; |
1108 |
- this->SetLastErrorText(NULL); |
1109 |
-@@ -499,11 +499,11 @@ |
1110 |
- |
1111 |
- vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database ); |
1112 |
- assert(dbContainer != NULL); |
1113 |
-- vtk_sqlite3 *db = dbContainer->SQLiteInstance; |
1114 |
-+ sqlite3 *db = dbContainer->SQLiteInstance; |
1115 |
- char *errorMessage = NULL; |
1116 |
-- int result = vtk_sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage); |
1117 |
-+ int result = sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage); |
1118 |
- |
1119 |
-- if (result == VTK_SQLITE_OK) |
1120 |
-+ if (result == SQLITE_OK) |
1121 |
- { |
1122 |
- this->TransactionInProgress = false; |
1123 |
- this->SetLastErrorText(NULL); |
1124 |
-@@ -647,11 +647,11 @@ |
1125 |
- if (this->Active) |
1126 |
- { |
1127 |
- this->Active = false; |
1128 |
-- vtk_sqlite3_reset(this->Statement); |
1129 |
-+ sqlite3_reset(this->Statement); |
1130 |
- } |
1131 |
-- int status = vtk_sqlite3_bind_int(this->Statement, index+1, value); |
1132 |
-+ int status = sqlite3_bind_int(this->Statement, index+1, value); |
1133 |
- |
1134 |
-- if (status != VTK_SQLITE_OK) |
1135 |
-+ if (status != SQLITE_OK) |
1136 |
- { |
1137 |
- vtksys_ios::ostringstream errormessage; |
1138 |
- errormessage << "sqlite_bind_int returned error: " << status; |
1139 |
-@@ -676,11 +676,11 @@ |
1140 |
- if (this->Active) |
1141 |
- { |
1142 |
- this->Active = false; |
1143 |
-- vtk_sqlite3_reset(this->Statement); |
1144 |
-+ sqlite3_reset(this->Statement); |
1145 |
- } |
1146 |
-- int status = vtk_sqlite3_bind_int(this->Statement, index+1, static_cast<vtk_sqlite_int64>(value)); |
1147 |
-+ int status = sqlite3_bind_int(this->Statement, index+1, static_cast<sqlite_int64>(value)); |
1148 |
- |
1149 |
-- if (status != VTK_SQLITE_OK) |
1150 |
-+ if (status != SQLITE_OK) |
1151 |
- { |
1152 |
- vtksys_ios::ostringstream errormessage; |
1153 |
- errormessage << "sqlite_bind_int64 returned error: " << status; |
1154 |
-@@ -705,12 +705,12 @@ |
1155 |
- if (this->Active) |
1156 |
- { |
1157 |
- this->Active = false; |
1158 |
-- vtk_sqlite3_reset(this->Statement); |
1159 |
-+ sqlite3_reset(this->Statement); |
1160 |
- } |
1161 |
- |
1162 |
-- int status = vtk_sqlite3_bind_double(this->Statement, index+1, value); |
1163 |
-+ int status = sqlite3_bind_double(this->Statement, index+1, value); |
1164 |
- |
1165 |
-- if (status != VTK_SQLITE_OK) |
1166 |
-+ if (status != SQLITE_OK) |
1167 |
- { |
1168 |
- vtksys_ios::ostringstream errormessage; |
1169 |
- errormessage << "sqlite_bind_double returned error: " << status; |
1170 |
-@@ -734,12 +734,12 @@ |
1171 |
- if (this->Active) |
1172 |
- { |
1173 |
- this->Active = false; |
1174 |
-- vtk_sqlite3_reset(this->Statement); |
1175 |
-+ sqlite3_reset(this->Statement); |
1176 |
- } |
1177 |
- |
1178 |
-- int status = vtk_sqlite3_bind_text(this->Statement, index+1, value, length, VTK_SQLITE_TRANSIENT); |
1179 |
-+ int status = sqlite3_bind_text(this->Statement, index+1, value, length, SQLITE_TRANSIENT); |
1180 |
- |
1181 |
-- if (status != VTK_SQLITE_OK) |
1182 |
-+ if (status != SQLITE_OK) |
1183 |
- { |
1184 |
- vtksys_ios::ostringstream errormessage; |
1185 |
- errormessage << "sqlite_bind_text returned error: " << status; |
1186 |
-@@ -763,17 +763,17 @@ |
1187 |
- if (this->Active) |
1188 |
- { |
1189 |
- this->Active = false; |
1190 |
-- vtk_sqlite3_reset(this->Statement); |
1191 |
-+ sqlite3_reset(this->Statement); |
1192 |
- } |
1193 |
- |
1194 |
- int status = |
1195 |
-- vtk_sqlite3_bind_blob(this->Statement, |
1196 |
-+ sqlite3_bind_blob(this->Statement, |
1197 |
- index+1, |
1198 |
- data, |
1199 |
- length, |
1200 |
-- VTK_SQLITE_TRANSIENT); |
1201 |
-+ SQLITE_TRANSIENT); |
1202 |
- |
1203 |
-- if (status != VTK_SQLITE_OK) |
1204 |
-+ if (status != SQLITE_OK) |
1205 |
- { |
1206 |
- vtksys_ios::ostringstream errormessage; |
1207 |
- errormessage << "sqlite_bind_blob returned error: " << status; |
1208 |
-@@ -797,12 +797,12 @@ |
1209 |
- if (this->Active) |
1210 |
- { |
1211 |
- this->Active = false; |
1212 |
-- vtk_sqlite3_reset(this->Statement); |
1213 |
-+ sqlite3_reset(this->Statement); |
1214 |
- } |
1215 |
- |
1216 |
-- int status = vtk_sqlite3_clear_bindings(this->Statement); |
1217 |
-+ int status = sqlite3_clear_bindings(this->Statement); |
1218 |
- |
1219 |
-- if (status != VTK_SQLITE_OK) |
1220 |
-+ if (status != SQLITE_OK) |
1221 |
- { |
1222 |
- vtksys_ios::ostringstream errormessage; |
1223 |
- errormessage << "sqlite_clear_bindings returned error: " << status; |
1224 |
---- VTK/IO/SQL/vtkSQLiteDatabase.h |
1225 |
-+++ VTK/IO/SQL/vtkSQLiteDatabase.h |
1226 |
-@@ -49,7 +49,7 @@ |
1227 |
- class vtkSQLQuery; |
1228 |
- class vtkSQLiteQuery; |
1229 |
- class vtkStringArray; |
1230 |
--struct vtk_sqlite3; |
1231 |
-+struct sqlite3; |
1232 |
- |
1233 |
- class VTKIOSQL_EXPORT vtkSQLiteDatabase : public vtkSQLDatabase |
1234 |
- { |
1235 |
-@@ -147,7 +147,7 @@ |
1236 |
- virtual bool ParseURL(const char* url); |
1237 |
- |
1238 |
- private: |
1239 |
-- vtk_sqlite3 *SQLiteInstance; |
1240 |
-+ sqlite3 *SQLiteInstance; |
1241 |
- |
1242 |
- // We want this to be private, a user of this class |
1243 |
- // should not be setting this for any reason |
1244 |
---- VTK/IO/SQL/vtkSQLiteQuery.h |
1245 |
-+++ VTK/IO/SQL/vtkSQLiteQuery.h |
1246 |
-@@ -47,7 +47,7 @@ |
1247 |
- class vtkSQLiteDatabase; |
1248 |
- class vtkVariant; |
1249 |
- class vtkVariantArray; |
1250 |
--struct vtk_sqlite3_stmt; |
1251 |
-+struct sqlite3_stmt; |
1252 |
- |
1253 |
- class VTKIOSQL_EXPORT vtkSQLiteQuery : public vtkSQLQuery |
1254 |
- { |
1255 |
-@@ -155,7 +155,7 @@ |
1256 |
- vtkSQLiteQuery(const vtkSQLiteQuery &); // Not implemented. |
1257 |
- void operator=(const vtkSQLiteQuery &); // Not implemented. |
1258 |
- |
1259 |
-- vtk_sqlite3_stmt *Statement; |
1260 |
-+ sqlite3_stmt *Statement; |
1261 |
- bool InitialFetch; |
1262 |
- int InitialFetchResult; |
1263 |
- char *LastErrorText; |
1264 |
---- VTK/ThirdParty/sqlite/CMakeLists.txt |
1265 |
-+++ VTK/ThirdParty/sqlite/CMakeLists.txt |
1266 |
-@@ -1,4 +1,4 @@ |
1267 |
--set(vtksqlite_THIRD_PARTY 1) |
1268 |
--set(vtksqlite_LIBRARIES vtksqlite) |
1269 |
--vtk_module_export_info() |
1270 |
--add_subdirectory(vtksqlite) |
1271 |
-+#set(vtksqlite_THIRD_PARTY 1) |
1272 |
-+#set(vtksqlite_LIBRARIES sqlite3) |
1273 |
-+#vtk_module_export_info() |
1274 |
-+#add_subdirectory(vtksqlite) |
1275 |
---- VTK/ThirdParty/sqlite/module.cmake |
1276 |
-+++ VTK/ThirdParty/sqlite/module.cmake |
1277 |
-@@ -1 +1 @@ |
1278 |
--vtk_module(vtksqlite EXCLUDE_FROM_WRAPPING) |
1279 |
-+#vtk_module(vtksqlite EXCLUDE_FROM_WRAPPING) |
1280 |
---- VTK/IO/SQL/module.cmake |
1281 |
-+++ VTK/IO/SQL/module.cmake |
1282 |
-@@ -5,7 +5,7 @@ |
1283 |
- vtkIOCore |
1284 |
- PRIVATE_DEPENDS |
1285 |
- vtksys |
1286 |
-- vtksqlite # We should consider splitting this into a module. |
1287 |
-+# vtksqlite # We should consider splitting this into a module. |
1288 |
- TEST_DEPENDS |
1289 |
- vtkIOLegacy |
1290 |
- vtkTestingIOSQL |
1291 |
---- VTK/IO/SQL/CMakeLists.txt |
1292 |
-+++ VTK/IO/SQL/CMakeLists.txt |
1293 |
-@@ -28,3 +28,4 @@ |
1294 |
- ) |
1295 |
- |
1296 |
- vtk_module_library(vtkIOSQL ${Module_SRCS} ${SQLite_SRCS}) |
1297 |
-+target_link_libraries(vtkIOSQL -lsqlite3) |
1298 |
|
1299 |
diff --git a/sci-visualization/paraview/files/paraview-4.2.0-vtk-freetype.patch b/sci-visualization/paraview/files/paraview-4.2.0-vtk-freetype.patch |
1300 |
deleted file mode 100644 |
1301 |
index b7d3e40..0000000 |
1302 |
--- a/sci-visualization/paraview/files/paraview-4.2.0-vtk-freetype.patch |
1303 |
+++ /dev/null |
1304 |
@@ -1,22 +0,0 @@ |
1305 |
---- a/ParaView-v4.2.0-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx_orig 2014-12-23 09:25:35.000000000 +0100 |
1306 |
-+++ b/ParaView-v4.2.0-source/VTK/Rendering/FreeType/vtkFreeTypeTools.cxx 2014-12-24 09:40:31.886953389 +0100 |
1307 |
-@@ -1185,7 +1185,7 @@ |
1308 |
- if (bitmap) |
1309 |
- { |
1310 |
- metaData.ascent = std::max(bitmapGlyph->top - 1, metaData.ascent); |
1311 |
-- metaData.descent = std::min(-(bitmap->rows - (bitmapGlyph->top - 1)), |
1312 |
-+ metaData.descent = std::min(-(static_cast<int>(bitmap->rows) - (bitmapGlyph->top - 1)), |
1313 |
- metaData.descent); |
1314 |
- } |
1315 |
- ++heightString; |
1316 |
-@@ -1952,8 +1952,8 @@ |
1317 |
- if (bitmap) |
1318 |
- { |
1319 |
- bbox[0] = std::min(bbox[0], pen[0] + bitmapGlyph->left); |
1320 |
-- bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width); |
1321 |
-- bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows); |
1322 |
-+ bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + static_cast<int>(bitmap->width)); |
1323 |
-+ bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - static_cast<int>(bitmap->rows)); |
1324 |
- bbox[3] = std::max(bbox[3], pen[1] + bitmapGlyph->top - 1); |
1325 |
- } |
1326 |
- else |
1327 |
|
1328 |
diff --git a/sci-visualization/paraview/paraview-4.1.0-r2.ebuild b/sci-visualization/paraview/paraview-4.1.0-r2.ebuild |
1329 |
deleted file mode 100644 |
1330 |
index 20bed18..0000000 |
1331 |
--- a/sci-visualization/paraview/paraview-4.1.0-r2.ebuild |
1332 |
+++ /dev/null |
1333 |
@@ -1,302 +0,0 @@ |
1334 |
-# Copyright 1999-2015 Gentoo Foundation |
1335 |
-# Distributed under the terms of the GNU General Public License v2 |
1336 |
-# $Id$ |
1337 |
- |
1338 |
-EAPI=5 |
1339 |
- |
1340 |
-PYTHON_COMPAT=( python2_7 ) |
1341 |
-inherit eutils multilib versionator python-single-r1 cmake-utils |
1342 |
- |
1343 |
-MAIN_PV=$(get_major_version) |
1344 |
-MAJOR_PV=$(get_version_component_range 1-2) |
1345 |
-MY_P="ParaView-v${PV}-source" |
1346 |
- |
1347 |
-DESCRIPTION="ParaView is a powerful scientific data visualization application" |
1348 |
-HOMEPAGE="http://www.paraview.org" |
1349 |
-SRC_URI="http://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.gz" |
1350 |
-RESTRICT="mirror" |
1351 |
- |
1352 |
-LICENSE="paraview GPL-2" |
1353 |
-KEYWORDS="~amd64 ~x86" |
1354 |
-SLOT="0" |
1355 |
-IUSE="boost cg coprocessing development doc examples ffmpeg mpi mysql nvcontrol plugins python qt4 sqlite tcl test tk" |
1356 |
-RESTRICT="test" |
1357 |
- |
1358 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
1359 |
- mysql? ( sqlite )" # "vtksqlite, needed by vtkIOSQL" and "vtkIOSQL, needed by vtkIOMySQL" |
1360 |
- |
1361 |
-RDEPEND=" |
1362 |
- dev-libs/expat |
1363 |
- dev-libs/jsoncpp |
1364 |
- dev-libs/libxml2:2 |
1365 |
- <dev-libs/protobuf-2.6 |
1366 |
- media-libs/freetype |
1367 |
- media-libs/libpng:0 |
1368 |
- media-libs/libtheora |
1369 |
- media-libs/tiff:0= |
1370 |
- sci-libs/hdf5[mpi=] |
1371 |
- >=sci-libs/netcdf-4.2[hdf5] |
1372 |
- >=sci-libs/netcdf-cxx-4.2:3 |
1373 |
- sys-libs/zlib |
1374 |
- virtual/jpeg:0 |
1375 |
- virtual/opengl |
1376 |
- >=x11-libs/gl2ps-1.3.8 |
1377 |
- x11-libs/libX11 |
1378 |
- x11-libs/libXext |
1379 |
- x11-libs/libXmu |
1380 |
- x11-libs/libXt |
1381 |
- boost? ( >=dev-libs/boost-1.40.0[mpi?,${PYTHON_USEDEP}] ) |
1382 |
- coprocessing? ( |
1383 |
- plugins? ( |
1384 |
- dev-python/PyQt4 |
1385 |
- dev-qt/qtgui:4 |
1386 |
- ) |
1387 |
- ) |
1388 |
- ffmpeg? ( virtual/ffmpeg ) |
1389 |
- mpi? ( virtual/mpi[cxx,romio] ) |
1390 |
- mysql? ( virtual/mysql ) |
1391 |
- python? ( |
1392 |
- ${PYTHON_DEPS} |
1393 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
1394 |
- dev-python/numpy[${PYTHON_USEDEP}] |
1395 |
- dev-python/sip[${PYTHON_USEDEP}] |
1396 |
- dev-python/twisted-core[${PYTHON_USEDEP}] |
1397 |
- dev-python/zope-interface[${PYTHON_USEDEP}] |
1398 |
- mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] ) |
1399 |
- qt4? ( dev-python/PyQt4[opengl,webkit,${PYTHON_USEDEP}] ) |
1400 |
- ) |
1401 |
- qt4? ( |
1402 |
- dev-qt/designer:4 |
1403 |
- dev-qt/qtgui:4 |
1404 |
- dev-qt/qtopengl:4 |
1405 |
- dev-qt/qthelp:4[compat] |
1406 |
- dev-qt/qtsql:4 |
1407 |
- dev-qt/qtwebkit:4 |
1408 |
- ) |
1409 |
- sqlite? ( dev-db/sqlite:3 ) |
1410 |
- tcl? ( dev-lang/tcl:0= ) |
1411 |
- tk? ( dev-lang/tk:0= )" |
1412 |
-DEPEND="${RDEPEND} |
1413 |
- doc? ( app-doc/doxygen )" |
1414 |
- |
1415 |
-S=${WORKDIR}/${MY_P%-source} |
1416 |
- |
1417 |
-pkg_setup() { |
1418 |
- python-single-r1_pkg_setup |
1419 |
- PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} |
1420 |
-} |
1421 |
- |
1422 |
-src_prepare() { |
1423 |
- # see patch headers for description |
1424 |
- epatch "${FILESDIR}"/${PN}-4.0.1-xdmf-cstring.patch \ |
1425 |
- "${FILESDIR}"/${PN}-4.0.1-removesqlite.patch \ |
1426 |
- "${FILESDIR}"/${PN}-4.0.1-gcc-4.7.patch \ |
1427 |
- "${FILESDIR}"/${PN}-4.0.1-vtk-cg-path.patch \ |
1428 |
- "${FILESDIR}"/${PN}-4.0.1-Protobuf.patch \ |
1429 |
- "${FILESDIR}"/${P}-glxext-legacy.patch \ |
1430 |
- "${FILESDIR}"/${P}-no-fatal-warnings.patch \ |
1431 |
- "${FILESDIR}"/${P}-vtk-freetype.patch |
1432 |
- |
1433 |
- # lib64 fixes |
1434 |
- sed -i \ |
1435 |
- -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \ |
1436 |
- VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeLists.txt || die |
1437 |
- sed -i \ |
1438 |
- -e "s:\/lib\/python:\/$(get_libdir)\/python:g" \ |
1439 |
- VTK/ThirdParty/xdmf2/vtkxdmf2/CMake/setup_install_paths.py || die |
1440 |
- sed -i \ |
1441 |
- -e "s:lib/paraview-:$(get_libdir)/paraview-:g" \ |
1442 |
- CMakeLists.txt \ |
1443 |
- Plugins/SciberQuestToolKit/CMakeLists.txt \ |
1444 |
- ParaViewConfig.cmake.in \ |
1445 |
- CoProcessing/PythonCatalyst/vtkCPPythonScriptPipeline.cxx \ |
1446 |
- ParaViewCore/ClientServerCore/Core/vtkProcessModuleInitializePython.h \ |
1447 |
- ParaViewCore/ClientServerCore/Core/vtkPVPluginTracker.cxx \ |
1448 |
- Plugins/SciberQuestToolKit/ParaViewPlugin/CMakeLists.txt \ |
1449 |
- Plugins/SciberQuestToolKit/SciberQuest/CMakeLists.txt || die |
1450 |
- |
1451 |
- # no proper switch |
1452 |
- use nvcontrol || { |
1453 |
- sed -i \ |
1454 |
- -e '/VTK_USE_NVCONTROL/s#1#0#' \ |
1455 |
- VTK/Rendering/OpenGL/CMakeLists.txt || die |
1456 |
- } |
1457 |
-} |
1458 |
- |
1459 |
-src_configure() { |
1460 |
- local mysql_lib mysql_includedir |
1461 |
- |
1462 |
- if use mysql ; then |
1463 |
- if [[ $(mysql_config --version | sed 's/\.//g') -lt 5529 ]] ; then |
1464 |
- mysql_lib="/usr/$(get_libdir)/mysql/libmysqlclient.so" |
1465 |
- mysql_includedir="/usr/include/mysql" |
1466 |
- else |
1467 |
- mysql_lib="$(mysql_config --variable=pkglibdir)/libmysqlclient.so" |
1468 |
- mysql_includedir="$(mysql_config --variable=pkgincludedir)" |
1469 |
- fi |
1470 |
- fi |
1471 |
- |
1472 |
- # TODO: use system jsoncpp |
1473 |
- # VTK_USE_SYSTEM_QTTESTING |
1474 |
- # PARAVIEW_USE_SYSTEM_AUTOBAHN |
1475 |
- local mycmakeargs=( |
1476 |
- -DPV_INSTALL_LIB_DIR="${PVLIBDIR}" |
1477 |
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr |
1478 |
- -DEXPAT_INCLUDE_DIR="${EPREFIX}"/usr/include |
1479 |
- -DEXPAT_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libexpat.so |
1480 |
- -DOPENGL_gl_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGL.so |
1481 |
- -DOPENGL_glu_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGLU.so |
1482 |
- -DBUILD_SHARED_LIBS=ON |
1483 |
- -DVTK_USE_SYSTEM_EXPAT=ON |
1484 |
- -DVTK_USE_SYSTEM_FREETYPE=ON |
1485 |
- -DVTK_USE_SYSTEM_GL2PS=ON |
1486 |
- -DVTK_USE_SYSTEM_HDF5=ON |
1487 |
- -DVTK_USE_SYSTEM_JPEG=ON |
1488 |
- -DVTK_USE_SYSTEM_JSONCPP=ON |
1489 |
- -DVTK_USE_SYSTEM_LIBXML2=ON |
1490 |
- -DVTK_USE_SYSTEM_NETCDF=ON |
1491 |
- -DVTK_USE_SYSTEM_OGGTHEORA=ON |
1492 |
- -DVTK_USE_SYSTEM_PNG=ON |
1493 |
- -DVTK_USE_SYSTEM_PROTOBUF=ON |
1494 |
- -DVTK_USE_SYSTEM_TIFF=ON |
1495 |
- -DVTK_USE_SYSTEM_XDMF2=OFF |
1496 |
- -DVTK_USE_SYSTEM_ZLIB=ON |
1497 |
- -DPARAVIEW_USE_SYSTEM_MPI4PY=ON |
1498 |
- -DVTK_USE_SYSTEM_ZOPE=ON |
1499 |
- -DVTK_USE_SYSTEM_TWISTED=ON |
1500 |
- -DCMAKE_VERBOSE_MAKEFILE=ON |
1501 |
- -DCMAKE_COLOR_MAKEFILE=TRUE |
1502 |
- -DVTK_USE_OFFSCREEN=TRUE |
1503 |
- -DCMAKE_USE_PTHREADS=ON |
1504 |
- -DVTK_USE_FFMPEG_ENCODER=OFF |
1505 |
- -DPROTOC_LOCATION=$(type -P protoc) |
1506 |
- -DVTK_Group_StandAlone=ON |
1507 |
- -DMYSQL_INCLUDE_DIRECTORIES="$(usex mysql "${mysql_includedir}" "")" |
1508 |
- -DMYSQL_LIBRARY="$(usex mysql "${mysql_lib}" "")" |
1509 |
- # force this module due to incorrect build system deps |
1510 |
- # wrt bug 460528 |
1511 |
- -DModule_vtkUtilitiesProcessXML=ON |
1512 |
- ) |
1513 |
- |
1514 |
- # TODO: XDMF_USE_MYSQL? |
1515 |
- # VTK_WRAP_JAVA |
1516 |
- mycmakeargs+=( |
1517 |
- $(cmake-utils_use development PARAVIEW_INSTALL_DEVELOPMENT_FILES) |
1518 |
- $(cmake-utils_use qt4 PARAVIEW_BUILD_QT_GUI) |
1519 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtOpenGL) |
1520 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtSQL) |
1521 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtWebkit) |
1522 |
- $(cmake-utils_use qt4 Module_vtkRenderingQt) |
1523 |
- $(cmake-utils_use qt4 Module_vtkViewsQt) |
1524 |
- $(cmake-utils_use qt4 VTK_Group_ParaViewQt) |
1525 |
- $(cmake-utils_use qt4 VTK_Group_Qt) |
1526 |
- $(cmake-utils_use !qt4 PQWIDGETS_DISABLE_QTWEBKIT) |
1527 |
- $(cmake-utils_use boost Module_vtkInfovisBoost) |
1528 |
- $(cmake-utils_use boost Module_vtkInfovisBoostGraphAlg) |
1529 |
- $(cmake-utils_use mpi PARAVIEW_USE_MPI) |
1530 |
- $(cmake-utils_use mpi PARAVIEW_USE_MPI_SSEND) |
1531 |
- $(cmake-utils_use mpi PARAVIEW_USE_ICE_T) |
1532 |
- $(cmake-utils_use mpi VTK_Group_MPI) |
1533 |
- $(cmake-utils_use mpi VTK_XDMF_USE_MPI) |
1534 |
- $(cmake-utils_use mpi XDMF_BUILD_MPI) |
1535 |
- $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) |
1536 |
- $(cmake-utils_use python VTK_Group_ParaViewPython) |
1537 |
- $(cmake-utils_use python XDMF_WRAP_PYTHON) |
1538 |
- $(cmake-utils_use python Module_vtkPython) |
1539 |
- $(cmake-utils_use python Module_pqPython) |
1540 |
- $(cmake-utils_use python Module_vtkWrappingPythonCore) |
1541 |
- $(cmake-utils_use python Module_vtkPVPythonSupport) |
1542 |
- $(cmake-utils_use python Module_AutobahnPython) |
1543 |
- $(cmake-utils_use python Module_Twisted) |
1544 |
- $(cmake-utils_use python Module_ZopeInterface) |
1545 |
- $(cmake-utils_use python Module_vtkmpi4py) |
1546 |
- $(usex qt4 "$(cmake-utils_use python Module_pqPython)" "-DModule_pqPython=OFF") |
1547 |
- $(cmake-utils_use doc BUILD_DOCUMENTATION) |
1548 |
- $(cmake-utils_use doc PARAVIEW_BUILD_WEB_DOCUMENTATION) |
1549 |
- $(cmake-utils_use examples BUILD_EXAMPLES) |
1550 |
- $(cmake-utils_use cg VTK_USE_CG_SHADERS) |
1551 |
- $(cmake-utils_use mysql Module_vtkIOMySQL) |
1552 |
- $(cmake-utils_use sqlite Module_vtksqlite) |
1553 |
- $(cmake-utils_use coprocessing PARAVIEW_ENABLE_CATALYST) |
1554 |
- $(cmake-utils_use ffmpeg PARAVIEW_ENABLE_FFMPEG) |
1555 |
- $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER) |
1556 |
- $(cmake-utils_use ffmpeg Module_vtkIOFFMPEG) |
1557 |
- $(cmake-utils_use tk VTK_Group_Tk) |
1558 |
- $(cmake-utils_use tk VTK_USE_TK) |
1559 |
- $(cmake-utils_use tk Module_vtkRenderingTk) |
1560 |
- $(cmake-utils_use tcl Module_vtkTclTk) |
1561 |
- $(cmake-utils_use tcl Module_vtkWrappingTcl) |
1562 |
- $(cmake-utils_use test BUILD_TESTING) |
1563 |
- ) |
1564 |
- |
1565 |
- if use qt4 ; then |
1566 |
- mycmakeargs+=( -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer ) |
1567 |
- if use python ; then |
1568 |
- # paraview cannot guess sip directory properly |
1569 |
- mycmakeargs+=( -DSIP_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)" ) |
1570 |
- fi |
1571 |
- fi |
1572 |
- |
1573 |
- # TODO: MantaView VaporPlugin VRPlugin |
1574 |
- mycmakeargs+=( |
1575 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AdiosReader) |
1576 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO) |
1577 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ArrowGlyph) |
1578 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_EyeDomeLighting) |
1579 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ForceTime) |
1580 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_GMVReader) |
1581 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_H5PartReader) |
1582 |
- $(cmake-utils_use plugins RAVIEW_BUILD_PLUGIN_MobileRemoteControl) |
1583 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Moments) |
1584 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_NonOrthogonalSource) |
1585 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PacMan) |
1586 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PointSprite) |
1587 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PrismPlugin) |
1588 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_QuadView) |
1589 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SLACTools) |
1590 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SciberQuestToolKit) |
1591 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SierraPlotTools) |
1592 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_StreamingParticles) |
1593 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SurfaceLIC) |
1594 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_UncertaintyRendering) |
1595 |
- # these are always needed for plugins |
1596 |
- $(cmake-utils_use plugins Module_vtkFiltersFlowPaths) |
1597 |
- $(cmake-utils_use plugins Module_vtkPVServerManagerApplication) |
1598 |
- ) |
1599 |
- |
1600 |
- cmake-utils_src_configure |
1601 |
-} |
1602 |
- |
1603 |
-src_compile() { |
1604 |
- cmake-utils_src_compile |
1605 |
-} |
1606 |
- |
1607 |
-src_install() { |
1608 |
- cmake-utils_src_install |
1609 |
- |
1610 |
- # set up the environment |
1611 |
- echo "LDPATH=${EPREFIX}/usr/${PVLIBDIR}" > "${T}"/40${PN} |
1612 |
- |
1613 |
- newicon "${S}"/Applications/ParaView/pvIcon.png paraview.png |
1614 |
- make_desktop_entry paraview "Paraview" paraview |
1615 |
- |
1616 |
- use python && python_optimize "${D}"/usr/$(get_libdir)/${PN}-${MAJOR_PV} |
1617 |
-} |
1618 |
- |
1619 |
-pkg_postinst() { |
1620 |
- # with Qt4.5 there seem to be issues reading data files |
1621 |
- # under certain locales. Setting LC_ALL=C should fix these. |
1622 |
- elog "" |
1623 |
- elog "If you experience data corruption during parsing of" |
1624 |
- elog "data files with paraview please try setting your" |
1625 |
- elog "locale to LC_ALL=C." |
1626 |
- elog "If you plan to use paraview component from an existing shell" |
1627 |
- elog "you should run env-update and . /etc/profile first" |
1628 |
- elog "" |
1629 |
- elog "paraview no longer exports bundled python modules in PYTHONPATH" |
1630 |
- elog "globally due to clashes of bundled packages with system-wide" |
1631 |
- elog "site-packages. If you want to use paraview's python modules" |
1632 |
- elog "export" |
1633 |
- elog " PYTHONPATH=${EPREFIX}/usr/${PVLIBDIR}:${EPREFIX}/usr/${PVLIBDIR}/site-packages" |
1634 |
- elog "as needed." |
1635 |
-} |
1636 |
|
1637 |
diff --git a/sci-visualization/paraview/paraview-4.3.1.ebuild b/sci-visualization/paraview/paraview-4.3.1.ebuild |
1638 |
deleted file mode 100644 |
1639 |
index c9a1b26..0000000 |
1640 |
--- a/sci-visualization/paraview/paraview-4.3.1.ebuild |
1641 |
+++ /dev/null |
1642 |
@@ -1,288 +0,0 @@ |
1643 |
-# Copyright 1999-2015 Gentoo Foundation |
1644 |
-# Distributed under the terms of the GNU General Public License v2 |
1645 |
-# $Id$ |
1646 |
- |
1647 |
-EAPI=5 |
1648 |
- |
1649 |
-PYTHON_COMPAT=( python2_7 ) |
1650 |
-inherit eutils multilib versionator python-single-r1 cmake-utils |
1651 |
- |
1652 |
-MAIN_PV=$(get_major_version) |
1653 |
-MAJOR_PV=$(get_version_component_range 1-2) |
1654 |
-MY_P="ParaView-v${PV}-source" |
1655 |
- |
1656 |
-DESCRIPTION="ParaView is a powerful scientific data visualization application" |
1657 |
-HOMEPAGE="http://www.paraview.org" |
1658 |
-SRC_URI="http://www.paraview.org/files/v${MAJOR_PV}/${MY_P}.tar.gz" |
1659 |
-RESTRICT="mirror" |
1660 |
- |
1661 |
-LICENSE="paraview GPL-2" |
1662 |
-KEYWORDS="~amd64 ~x86" |
1663 |
-SLOT="0" |
1664 |
-IUSE="boost cg coprocessing development doc examples ffmpeg mpi mysql nvcontrol plugins python qt4 sqlite tcl test tk" |
1665 |
-RESTRICT="test" |
1666 |
- |
1667 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) |
1668 |
- mysql? ( sqlite )" # "vtksqlite, needed by vtkIOSQL" and "vtkIOSQL, needed by vtkIOMySQL" |
1669 |
- |
1670 |
-RDEPEND=" |
1671 |
- dev-libs/expat |
1672 |
- >=dev-libs/jsoncpp-0.10.1 |
1673 |
- dev-libs/libxml2:2 |
1674 |
- dev-libs/protobuf |
1675 |
- media-libs/freetype |
1676 |
- media-libs/libpng:0 |
1677 |
- media-libs/libtheora |
1678 |
- media-libs/tiff:0= |
1679 |
- sci-libs/hdf5[mpi=] |
1680 |
- >=sci-libs/netcdf-4.2[hdf5] |
1681 |
- >=sci-libs/netcdf-cxx-4.2:3 |
1682 |
- sys-libs/zlib |
1683 |
- virtual/jpeg:0 |
1684 |
- virtual/opengl |
1685 |
- >=x11-libs/gl2ps-1.3.8 |
1686 |
- x11-libs/libX11 |
1687 |
- x11-libs/libXext |
1688 |
- x11-libs/libXmu |
1689 |
- x11-libs/libXt |
1690 |
- coprocessing? ( |
1691 |
- plugins? ( |
1692 |
- dev-python/PyQt4 |
1693 |
- dev-qt/qtgui:4 |
1694 |
- ) |
1695 |
- ) |
1696 |
- ffmpeg? ( virtual/ffmpeg ) |
1697 |
- mpi? ( virtual/mpi[cxx,romio] ) |
1698 |
- mysql? ( virtual/mysql ) |
1699 |
- python? ( |
1700 |
- ${PYTHON_DEPS} |
1701 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
1702 |
- dev-python/numpy[${PYTHON_USEDEP}] |
1703 |
- dev-python/sip[${PYTHON_USEDEP}] |
1704 |
- dev-python/twisted-core |
1705 |
- dev-python/zope-interface[${PYTHON_USEDEP}] |
1706 |
- mpi? ( dev-python/mpi4py ) |
1707 |
- qt4? ( dev-python/PyQt4[opengl,webkit,${PYTHON_USEDEP}] ) |
1708 |
- ) |
1709 |
- qt4? ( |
1710 |
- dev-qt/designer:4 |
1711 |
- dev-qt/qtgui:4 |
1712 |
- dev-qt/qtopengl:4 |
1713 |
- dev-qt/qthelp:4[compat] |
1714 |
- dev-qt/qtsql:4 |
1715 |
- dev-qt/qtwebkit:4 |
1716 |
- ) |
1717 |
- sqlite? ( dev-db/sqlite:3 ) |
1718 |
- tcl? ( dev-lang/tcl:0= ) |
1719 |
- tk? ( dev-lang/tk:0= )" |
1720 |
-DEPEND="${RDEPEND} |
1721 |
- ${PYTHON_DEPS} |
1722 |
- boost? ( >=dev-libs/boost-1.40.0[mpi?,${PYTHON_USEDEP}] ) |
1723 |
- doc? ( app-doc/doxygen )" |
1724 |
- |
1725 |
-S="${WORKDIR}/${MY_P}" |
1726 |
- |
1727 |
-pkg_setup() { |
1728 |
- python-single-r1_pkg_setup |
1729 |
- PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV} |
1730 |
-} |
1731 |
- |
1732 |
-src_prepare() { |
1733 |
- # see patch headers for description |
1734 |
- epatch "${FILESDIR}"/${PN}-4.0.1-xdmf-cstring.patch \ |
1735 |
- "${FILESDIR}"/${PN}-4.0.1-gcc-4.7.patch \ |
1736 |
- "${FILESDIR}"/${PN}-4.1.0-no-fatal-warnings.patch \ |
1737 |
- "${FILESDIR}"/${PN}-4.2.0-protobuf.patch \ |
1738 |
- "${FILESDIR}"/${PN}-4.2.0-removesqlite.patch \ |
1739 |
- "${FILESDIR}"/${PN}-4.2.0-vtk-freetype.patch \ |
1740 |
- "${FILESDIR}"/${P}-protobuf-2.6.patch \ |
1741 |
- "${FILESDIR}"/${P}-fix-development-install.patch |
1742 |
- |
1743 |
- # lib64 fixes |
1744 |
- sed -i \ |
1745 |
- -e "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \ |
1746 |
- VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/CMakeLists.txt || die |
1747 |
- sed -i \ |
1748 |
- -e "s:\/lib\/python:\/$(get_libdir)\/python:g" \ |
1749 |
- VTK/ThirdParty/xdmf2/vtkxdmf2/CMake/setup_install_paths.py || die |
1750 |
- sed -i \ |
1751 |
- -e "s:lib/paraview-:$(get_libdir)/paraview-:g" \ |
1752 |
- CMakeLists.txt \ |
1753 |
- Plugins/SciberQuestToolKit/CMakeLists.txt \ |
1754 |
- ParaViewConfig.cmake.in \ |
1755 |
- CoProcessing/PythonCatalyst/vtkCPPythonScriptPipeline.cxx \ |
1756 |
- ParaViewCore/ClientServerCore/Core/vtkProcessModuleInitializePython.h \ |
1757 |
- ParaViewCore/ClientServerCore/Core/vtkPVPluginTracker.cxx \ |
1758 |
- Plugins/SciberQuestToolKit/ParaViewPlugin/CMakeLists.txt \ |
1759 |
- Plugins/SciberQuestToolKit/SciberQuest/CMakeLists.txt || die |
1760 |
- |
1761 |
- # no proper switch |
1762 |
- use nvcontrol || { |
1763 |
- sed -i \ |
1764 |
- -e '/VTK_USE_NVCONTROL/s#1#0#' \ |
1765 |
- VTK/Rendering/OpenGL/CMakeLists.txt || die |
1766 |
- } |
1767 |
-} |
1768 |
- |
1769 |
-src_configure() { |
1770 |
- # VTK_USE_SYSTEM_QTTESTING |
1771 |
- # PARAVIEW_USE_SYSTEM_AUTOBAHN |
1772 |
- local mycmakeargs=( |
1773 |
- -DPV_INSTALL_LIB_DIR="${PVLIBDIR}" |
1774 |
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr |
1775 |
- -DEXPAT_INCLUDE_DIR="${EPREFIX}"/usr/include |
1776 |
- -DEXPAT_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libexpat.so |
1777 |
- -DOPENGL_gl_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGL.so |
1778 |
- -DOPENGL_glu_LIBRARY="${EPREFIX}"/usr/$(get_libdir)/libGLU.so |
1779 |
- -DBUILD_SHARED_LIBS=ON |
1780 |
- -DVTK_USE_SYSTEM_EXPAT=ON |
1781 |
- -DVTK_USE_SYSTEM_FREETYPE=ON |
1782 |
- -DVTK_USE_SYSTEM_GL2PS=ON |
1783 |
- -DVTK_USE_SYSTEM_HDF5=ON |
1784 |
- -DVTK_USE_SYSTEM_JPEG=ON |
1785 |
- -DVTK_USE_SYSTEM_JSONCPP=ON |
1786 |
- -DVTK_USE_SYSTEM_LIBXML2=ON |
1787 |
- -DVTK_USE_SYSTEM_NETCDF=ON |
1788 |
- -DVTK_USE_SYSTEM_OGGTHEORA=ON |
1789 |
- -DVTK_USE_SYSTEM_PNG=ON |
1790 |
- -DVTK_USE_SYSTEM_PROTOBUF=ON |
1791 |
- -DVTK_USE_SYSTEM_TIFF=ON |
1792 |
- -DVTK_USE_SYSTEM_XDMF2=OFF |
1793 |
- -DVTK_USE_SYSTEM_ZLIB=ON |
1794 |
- -DPARAVIEW_USE_SYSTEM_MPI4PY=ON |
1795 |
- -DVTK_USE_SYSTEM_ZOPE=ON |
1796 |
- -DVTK_USE_SYSTEM_TWISTED=ON |
1797 |
- -DCMAKE_VERBOSE_MAKEFILE=ON |
1798 |
- -DCMAKE_COLOR_MAKEFILE=TRUE |
1799 |
- -DVTK_USE_OFFSCREEN=TRUE |
1800 |
- -DCMAKE_USE_PTHREADS=ON |
1801 |
- -DVTK_USE_FFMPEG_ENCODER=OFF |
1802 |
- -DPROTOC_LOCATION=$(type -P protoc) |
1803 |
- -DVTK_Group_StandAlone=ON |
1804 |
- # force this module due to incorrect build system deps |
1805 |
- # wrt bug 460528 |
1806 |
- -DModule_vtkUtilitiesProcessXML=ON |
1807 |
- ) |
1808 |
- |
1809 |
- # TODO: XDMF_USE_MYSQL? |
1810 |
- # VTK_WRAP_JAVA |
1811 |
- mycmakeargs+=( |
1812 |
- $(cmake-utils_use development PARAVIEW_INSTALL_DEVELOPMENT_FILES) |
1813 |
- $(cmake-utils_use qt4 PARAVIEW_BUILD_QT_GUI) |
1814 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtOpenGL) |
1815 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtSQL) |
1816 |
- $(cmake-utils_use qt4 Module_vtkGUISupportQtWebkit) |
1817 |
- $(cmake-utils_use qt4 Module_vtkRenderingQt) |
1818 |
- $(cmake-utils_use qt4 Module_vtkViewsQt) |
1819 |
- $(cmake-utils_use qt4 VTK_Group_ParaViewQt) |
1820 |
- $(cmake-utils_use qt4 VTK_Group_Qt) |
1821 |
- $(cmake-utils_use !qt4 PQWIDGETS_DISABLE_QTWEBKIT) |
1822 |
- $(cmake-utils_use boost Module_vtkInfovisBoost) |
1823 |
- $(cmake-utils_use boost Module_vtkInfovisBoostGraphAlg) |
1824 |
- $(cmake-utils_use mpi PARAVIEW_USE_MPI) |
1825 |
- $(cmake-utils_use mpi PARAVIEW_USE_MPI_SSEND) |
1826 |
- $(cmake-utils_use mpi PARAVIEW_USE_ICE_T) |
1827 |
- $(cmake-utils_use mpi VTK_Group_MPI) |
1828 |
- $(cmake-utils_use mpi VTK_XDMF_USE_MPI) |
1829 |
- $(cmake-utils_use mpi XDMF_BUILD_MPI) |
1830 |
- $(cmake-utils_use python PARAVIEW_ENABLE_PYTHON) |
1831 |
- $(cmake-utils_use python VTK_Group_ParaViewPython) |
1832 |
- $(cmake-utils_use python XDMF_WRAP_PYTHON) |
1833 |
- $(cmake-utils_use python Module_vtkPython) |
1834 |
- $(cmake-utils_use python Module_pqPython) |
1835 |
- $(cmake-utils_use python Module_vtkWrappingPythonCore) |
1836 |
- $(cmake-utils_use python Module_vtkPVPythonSupport) |
1837 |
- $(cmake-utils_use python Module_AutobahnPython) |
1838 |
- $(cmake-utils_use python Module_Twisted) |
1839 |
- $(cmake-utils_use python Module_ZopeInterface) |
1840 |
- $(cmake-utils_use python Module_vtkmpi4py) |
1841 |
- $(usex qt4 "$(cmake-utils_use python Module_pqPython)" "-DModule_pqPython=OFF") |
1842 |
- $(cmake-utils_use doc BUILD_DOCUMENTATION) |
1843 |
- $(cmake-utils_use doc PARAVIEW_BUILD_WEB_DOCUMENTATION) |
1844 |
- $(cmake-utils_use examples BUILD_EXAMPLES) |
1845 |
- $(cmake-utils_use cg VTK_USE_CG_SHADERS) |
1846 |
- $(cmake-utils_use mysql Module_vtkIOMySQL) |
1847 |
- $(cmake-utils_use sqlite Module_vtksqlite) |
1848 |
- $(cmake-utils_use coprocessing PARAVIEW_ENABLE_CATALYST) |
1849 |
- $(cmake-utils_use ffmpeg PARAVIEW_ENABLE_FFMPEG) |
1850 |
- $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER) |
1851 |
- $(cmake-utils_use ffmpeg Module_vtkIOFFMPEG) |
1852 |
- $(cmake-utils_use tk VTK_Group_Tk) |
1853 |
- $(cmake-utils_use tk VTK_USE_TK) |
1854 |
- $(cmake-utils_use tk Module_vtkRenderingTk) |
1855 |
- $(cmake-utils_use tcl Module_vtkTclTk) |
1856 |
- $(cmake-utils_use tcl Module_vtkWrappingTcl) |
1857 |
- $(cmake-utils_use test BUILD_TESTING) |
1858 |
- ) |
1859 |
- |
1860 |
- if use qt4 ; then |
1861 |
- mycmakeargs+=( -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer ) |
1862 |
- if use python ; then |
1863 |
- # paraview cannot guess sip directory properly |
1864 |
- mycmakeargs+=( -DSIP_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)" ) |
1865 |
- fi |
1866 |
- fi |
1867 |
- |
1868 |
- # TODO: MantaView VaporPlugin VRPlugin |
1869 |
- mycmakeargs+=( |
1870 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AdiosReader) |
1871 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_AnalyzeNIfTIIO) |
1872 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ArrowGlyph) |
1873 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_EyeDomeLighting) |
1874 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_ForceTime) |
1875 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_GMVReader) |
1876 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_H5PartReader) |
1877 |
- $(cmake-utils_use plugins RAVIEW_BUILD_PLUGIN_MobileRemoteControl) |
1878 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_Moments) |
1879 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_NonOrthogonalSource) |
1880 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PacMan) |
1881 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PointSprite) |
1882 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_PrismPlugin) |
1883 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_QuadView) |
1884 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SLACTools) |
1885 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SciberQuestToolKit) |
1886 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SierraPlotTools) |
1887 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_StreamingParticles) |
1888 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_SurfaceLIC) |
1889 |
- $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_UncertaintyRendering) |
1890 |
- # these are always needed for plugins |
1891 |
- $(cmake-utils_use plugins Module_vtkFiltersFlowPaths) |
1892 |
- $(cmake-utils_use plugins Module_vtkPVServerManagerApplication) |
1893 |
- ) |
1894 |
- |
1895 |
- cmake-utils_src_configure |
1896 |
-} |
1897 |
- |
1898 |
-src_compile() { |
1899 |
- cmake-utils_src_compile |
1900 |
-} |
1901 |
- |
1902 |
-src_install() { |
1903 |
- cmake-utils_src_install |
1904 |
- |
1905 |
- # set up the environment |
1906 |
- echo "LDPATH=${EPREFIX}/usr/${PVLIBDIR}" > "${T}"/40${PN} |
1907 |
- |
1908 |
- newicon "${S}"/Applications/ParaView/pvIcon-32x32.png paraview.png |
1909 |
- make_desktop_entry paraview "Paraview" paraview |
1910 |
- |
1911 |
- use python && python_optimize "${D}"/usr/$(get_libdir)/${PN}-${MAJOR_PV} |
1912 |
-} |
1913 |
- |
1914 |
-pkg_postinst() { |
1915 |
- # with Qt4.5 there seem to be issues reading data files |
1916 |
- # under certain locales. Setting LC_ALL=C should fix these. |
1917 |
- elog "" |
1918 |
- elog "If you experience data corruption during parsing of" |
1919 |
- elog "data files with paraview please try setting your" |
1920 |
- elog "locale to LC_ALL=C." |
1921 |
- elog "If you plan to use paraview component from an existing shell" |
1922 |
- elog "you should run env-update and . /etc/profile first" |
1923 |
- elog "" |
1924 |
- elog "paraview no longer exports bundled python modules in PYTHONPATH" |
1925 |
- elog "globally due to clashes of bundled packages with system-wide" |
1926 |
- elog "site-packages. If you want to use paraview's python modules" |
1927 |
- elog "export" |
1928 |
- elog " PYTHONPATH=${EPREFIX}/usr/${PVLIBDIR}:${EPREFIX}/usr/${PVLIBDIR}/site-packages" |
1929 |
- elog "as needed." |
1930 |
-} |