Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/qtiplot/files: qtiplot-0.9.7.10-gl2ps.patch qtiplot-0.9.7.10-gcc44.patch qtiplot-0.9.7.10-build.conf.patch qtiplot-0.9.7.10-docbuild.patch qtiplot-0.9.7.10-sip2.patch qtiplot-0.9.7.10-sip.patch qtiplot-0.9.7.10-dont-install-qwt.patch qtiplot-0.9.7.10-qtiplot.pro.patch qtiplot-0.9.7.10-syslibs.patch qtiplot-0.9.7.7-sip.patch qtiplot-0.9.7.7-gcc44.patch qtiplot-0.9.7.7-docbuild.patch qtiplot-0.9.7.7-syslibs.patch
Date: Fri, 01 Jan 2010 10:47:04
Message-Id: E1NQf1w-0001yk-Se@stork.gentoo.org
1 ssuominen 10/01/01 10:46:52
2
3 Added: qtiplot-0.9.7.10-gl2ps.patch
4 qtiplot-0.9.7.10-gcc44.patch
5 qtiplot-0.9.7.10-build.conf.patch
6 qtiplot-0.9.7.10-docbuild.patch
7 qtiplot-0.9.7.10-sip2.patch
8 qtiplot-0.9.7.10-sip.patch
9 qtiplot-0.9.7.10-dont-install-qwt.patch
10 qtiplot-0.9.7.10-qtiplot.pro.patch
11 qtiplot-0.9.7.10-syslibs.patch
12 Removed: qtiplot-0.9.7.7-sip.patch
13 qtiplot-0.9.7.7-gcc44.patch
14 qtiplot-0.9.7.7-docbuild.patch
15 qtiplot-0.9.7.7-syslibs.patch
16 Log:
17 Version bump by jlec
18 (Portage version: 2.2_rc61/cvs/Linux x86_64)
19
20 Revision Changes Path
21 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gl2ps.patch
22
23 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gl2ps.patch?rev=1.1&view=markup
24 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gl2ps.patch?rev=1.1&content-type=text/plain
25
26 Index: qtiplot-0.9.7.10-gl2ps.patch
27 ===================================================================
28 diff --git a/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp b/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
29 index dd1b7e4..8ce3c8c 100755
30 --- a/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
31 +++ b/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
32 @@ -6,12 +6,12 @@
33 #include <locale.h>
34
35 #include "qwt3d_openglhelper.h"
36 -#include "../3rdparty/gl2ps/gl2ps.h"
37 +#include <gl2ps.h>
38 #include "qwt3d_io_gl2ps.h"
39 #include "qwt3d_plot.h"
40 -
41 -#include <QFileInfo>
42 -#include <QMessageBox>
43 +
44 +#include <QFileInfo>
45 +#include <QMessageBox>
46
47 using namespace Qwt3D;
48
49 @@ -32,7 +32,7 @@ VectorWriter::VectorWriter()
50 sortmode_(SIMPLESORT),
51 landscape_(VectorWriter::AUTO),
52 textmode_(VectorWriter::PIXEL),
53 - texfname_(""),
54 + texfname_(""),
55 export_size_(QSize())
56 {}
57
58 @@ -132,10 +132,10 @@ bool VectorWriter::operator()(Plot3D* plot, QString const& fname)
59
60 char* tmploc = setlocale(LC_ALL, "C");
61
62 - plot->makeCurrent();
63 -
64 - QSize size = plot->size();
65 - if (export_size_.isValid())
66 + plot->makeCurrent();
67 +
68 + QSize size = plot->size();
69 + if (export_size_.isValid())
70 plot->resize(export_size_);
71
72 GLint bufsize = 0, state = GL2PS_OVERFLOW;
73 @@ -220,7 +220,7 @@ bool VectorWriter::operator()(Plot3D* plot, QString const& fname)
74 return false;
75 }
76
77 - plot->setExportingVector(true, gl2ps_format_);
78 + plot->setExportingVector(true, gl2ps_format_);
79
80 while( state == GL2PS_OVERFLOW ){
81 bufsize += 2*1024*1024;
82 @@ -236,9 +236,9 @@ bool VectorWriter::operator()(Plot3D* plot, QString const& fname)
83
84 // extra TeX file
85 if (textmode_ == TEX)
86 - {
87 - QFileInfo fi(fname);
88 - QString fn = fname;
89 + {
90 + QFileInfo fi(fname);
91 + QString fn = fname;
92 fn = fn.remove(fi.suffix()) + "tex";
93
94 fp = fopen(QWT3DLOCAL8BIT(fn), "wb");
95 @@ -268,9 +268,9 @@ bool VectorWriter::operator()(Plot3D* plot, QString const& fname)
96
97 Label::useDeviceFonts(false);
98
99 - setlocale(LC_ALL, tmploc);
100 - if (export_size_.isValid())
101 - plot->resize(size);// restore original plot size
102 + setlocale(LC_ALL, tmploc);
103 + if (export_size_.isValid())
104 + plot->resize(size);// restore original plot size
105
106 return true;
107 }
108 @@ -324,20 +324,20 @@ GLint Qwt3D::drawDevicePixels(GLsizei width, GLsizei height,
109
110 if(format != GL_RGBA || type != GL_UNSIGNED_BYTE)
111 return GL2PS_ERROR;
112 -
113 - GLfloat* convertedpixel = (GLfloat*)malloc(4 * width * height * sizeof(GLfloat));
114 - if (!convertedpixel)
115 - return GL2PS_ERROR;
116 -
117 - GLubyte* px = (GLubyte*)pixels;
118 - for (int i = 0; i != 4*width*height; i += 4){
119 - convertedpixel[i] = px[i] / 255.0;
120 - convertedpixel[i+1] = px[i+1] / 255.0;
121 - convertedpixel[i+2] = px[i+2] / 255.0;
122 - convertedpixel[i+3] = px[i+3] / 255.0;
123 - }
124 - GLint ret = gl2psDrawPixels(width, height, 0, 0, GL_RGBA, GL_FLOAT, convertedpixel);
125 - free(convertedpixel);
126 +
127 + GLfloat* convertedpixel = (GLfloat*)malloc(4 * width * height * sizeof(GLfloat));
128 + if (!convertedpixel)
129 + return GL2PS_ERROR;
130 +
131 + GLubyte* px = (GLubyte*)pixels;
132 + for (int i = 0; i != 4*width*height; i += 4){
133 + convertedpixel[i] = px[i] / 255.0;
134 + convertedpixel[i+1] = px[i+1] / 255.0;
135 + convertedpixel[i+2] = px[i+2] / 255.0;
136 + convertedpixel[i+3] = px[i+3] / 255.0;
137 + }
138 + GLint ret = gl2psDrawPixels(width, height, 0, 0, GL_RGBA, GL_FLOAT, convertedpixel);
139 + free(convertedpixel);
140 return ret;
141 }
142
143 diff --git a/3rdparty/qwtplot3d/src/qwt3d_label.cpp b/3rdparty/qwtplot3d/src/qwt3d_label.cpp
144 index c495a0f..2107cf8 100755
145 --- a/3rdparty/qwtplot3d/src/qwt3d_label.cpp
146 +++ b/3rdparty/qwtplot3d/src/qwt3d_label.cpp
147 @@ -1,7 +1,7 @@
148 #include <qbitmap.h>
149 #include "qwt3d_label.h"
150 -#include "qwt3d_plot.h"
151 -#include "../3rdparty/gl2ps/gl2ps.h"
152 +#include "qwt3d_plot.h"
153 +#include <gl2ps.h>
154
155 using namespace Qwt3D;
156
157 @@ -32,9 +32,9 @@ void Label::init()
158 setColor(0,0,0);
159 font_ = QFont();
160 anchor_ = BottomLeft;
161 - gap_ = 0;
162 - width_ = 0.0;
163 - height_ = 0.0;
164 + gap_ = 0;
165 + width_ = 0.0;
166 + height_ = 0.0;
167 }
168
169 void Label::useDeviceFonts(bool val)
170 @@ -88,66 +88,66 @@ void Label::setRelPosition(Tuple rpos, ANCHOR a)
171 getMatrices(modelMatrix, projMatrix, viewport);
172 beg_ = relativePosition(Triple(rpos.x, rpos.y, ot));
173 setPosition(beg_, a);
174 -}
175 -
176 -QImage Label::createImage(double angle)
177 -{
178 - QRect r = QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_));
179 - int textWidth = r.width();
180 - int textHeight = r.height();
181 -
182 - double aux_a = angle;
183 - if (aux_a > 270)
184 - aux_a -= 270;
185 - if (aux_a >= 180)
186 - aux_a -= 180;
187 - if (aux_a > 90)
188 - aux_a -= 90;
189 -
190 - double rad = aux_a*M_PI/180.0;
191 -
192 - int w = 0, h = 0;
193 - if ((angle >= 0 && angle <= 90) || (angle >= 180 && angle <= 270)){
194 - w = qRound(fabs(textWidth*cos(rad) + textHeight*sin(rad)));
195 - h = qRound(fabs(textWidth*sin(rad) + textHeight*cos(rad)));
196 - } else {
197 - w = qRound(fabs(textWidth*sin(rad) + textHeight*cos(rad)));
198 - h = qRound(fabs(textWidth*cos(rad) + textHeight*sin(rad)));
199 - }
200 -
201 - width_ = w;
202 - height_ = h;
203 -
204 - QPixmap pm_ = QPixmap(w, h);
205 -
206 - if (plot() && plot()->isExportingVector() && plot()->vectorExportFormat() != GL2PS_PDF){
207 - Qwt3D::RGBA rgba = plot()->backgroundRGBAColor();
208 - pm_.fill(GL2Qt(rgba.r, rgba.g, rgba.b));
209 - } else
210 - pm_.fill(Qt::transparent);
211 -
212 - QPainter p(&pm_);
213 -
214 - if (angle >= 270)
215 - p.translate(textHeight*cos(rad), 0.0);
216 - else if (angle >= 180)
217 - p.translate(w, textHeight*cos(rad));
218 - else if (angle > 90)
219 - p.translate(textWidth*sin(rad), h);
220 - else
221 - p.translate(0.0, textWidth*sin(rad));
222 -
223 - p.rotate(-angle);
224 - p.translate(0.0, textHeight - QFontMetrics(font_).descent());
225 -
226 - p.setFont( font_ );
227 - p.setPen(Qt::SolidLine);
228 - p.setPen(GL2Qt(color.r, color.g, color.b));
229 - p.drawText(0, 0, text_);
230 - p.end();
231 -
232 - return QGLWidget::convertToGLFormat(pm_.toImage());
233 -}
234 +}
235 +
236 +QImage Label::createImage(double angle)
237 +{
238 + QRect r = QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_));
239 + int textWidth = r.width();
240 + int textHeight = r.height();
241 +
242 + double aux_a = angle;
243 + if (aux_a > 270)
244 + aux_a -= 270;
245 + if (aux_a >= 180)
246 + aux_a -= 180;
247 + if (aux_a > 90)
248 + aux_a -= 90;
249 +
250 + double rad = aux_a*M_PI/180.0;
251 +
252 + int w = 0, h = 0;
253 + if ((angle >= 0 && angle <= 90) || (angle >= 180 && angle <= 270)){
254 + w = qRound(fabs(textWidth*cos(rad) + textHeight*sin(rad)));
255 + h = qRound(fabs(textWidth*sin(rad) + textHeight*cos(rad)));
256 + } else {
257 + w = qRound(fabs(textWidth*sin(rad) + textHeight*cos(rad)));
258 + h = qRound(fabs(textWidth*cos(rad) + textHeight*sin(rad)));
259 + }
260 +
261 + width_ = w;
262 + height_ = h;
263 +
264 + QPixmap pm_ = QPixmap(w, h);
265 +
266 + if (plot() && plot()->isExportingVector() && plot()->vectorExportFormat() != GL2PS_PDF){
267 + Qwt3D::RGBA rgba = plot()->backgroundRGBAColor();
268 + pm_.fill(GL2Qt(rgba.r, rgba.g, rgba.b));
269 + } else
270 + pm_.fill(Qt::transparent);
271 +
272 + QPainter p(&pm_);
273 +
274 + if (angle >= 270)
275 + p.translate(textHeight*cos(rad), 0.0);
276 + else if (angle >= 180)
277 + p.translate(w, textHeight*cos(rad));
278 + else if (angle > 90)
279 + p.translate(textWidth*sin(rad), h);
280 + else
281 + p.translate(0.0, textWidth*sin(rad));
282 +
283 + p.rotate(-angle);
284 + p.translate(0.0, textHeight - QFontMetrics(font_).descent());
285 +
286 + p.setFont( font_ );
287 + p.setPen(Qt::SolidLine);
288 + p.setPen(GL2Qt(color.r, color.g, color.b));
289 + p.drawText(0, 0, text_);
290 + p.end();
291 +
292 + return QGLWidget::convertToGLFormat(pm_.toImage());
293 +}
294
295 /**
296 Adds an additional shift to the anchor point. This happens in a more or less intelligent manner
297 @@ -205,100 +205,100 @@ void Label::convert2screen()
298 }
299 start = World2ViewPort(beg_);
300 end_ = ViewPort2World(start + Triple(width(), height(), 0));
301 -}
302 -
303 -const char * Label::fontname()
304 -{
305 - char *name = "Helvetica";
306 - if (font_.family() == "Times New Roman"){
307 - name = "Times";
308 - if (font_.bold() && font_.italic ())
309 - name = "Times-BoldItalic";
310 - else if (font_.italic())
311 - name = "Times-Italic";
312 - else if (font_.bold())
313 - name = "Times-Bold";
314 - } else if (font_.family() == "Courier" || font_.family() == "Courier New"){
315 - name = "Courier";
316 - if (font_.bold() && font_.italic ())
317 - name = "Courier-BoldOblique";
318 - else if (font_.italic())
319 - name = "Courier-Oblique";
320 - else if (font_.bold())
321 - name = "Courier-Bold";
322 - } else {
323 - if (font_.bold() && font_.italic ())
324 - name = "Helvetica-BoldOblique";
325 - else if (font_.italic())
326 - name = "Helvetica-Oblique";
327 - else if (font_.bold())
328 - name = "Helvetica-Bold";
329 - }
330 -
331 - return (const char*) name;
332 -}
333 -
334 -void Label::draw(double angle)
335 -{
336 - if (!plot() || !plot()->isVisible())
337 - return;
338 -
339 - if (text_.isEmpty())
340 - return;
341 -
342 - GLboolean b;
343 - GLint func;
344 - GLdouble v;
345 - glGetBooleanv(GL_ALPHA_TEST, &b);
346 - glGetIntegerv(GL_ALPHA_TEST_FUNC, &func);
347 - glGetDoublev(GL_ALPHA_TEST_REF, &v);
348 -
349 - glEnable (GL_ALPHA_TEST);
350 - glAlphaFunc (GL_NOTEQUAL, 0.0);
351 -
352 - convert2screen();
353 - glRasterPos3d(beg_.x, beg_.y, beg_.z);
354 -
355 - if (plot()->isExportingVector()){
356 - if (devicefonts_)
357 - drawDeviceText(QWT3DLOCAL8BIT(text_), fontname(), font_.pointSize(), pos_, color, anchor_, gap_, angle);
358 - else {
359 - QImage tex_ = createImage(angle);
360 - drawDevicePixels(tex_.width(), tex_.height(), GL_RGBA, GL_UNSIGNED_BYTE, tex_.bits());
361 - }
362 - } else {
363 - if (!angle){
364 - Triple start = World2ViewPort(beg_);
365 - start = ViewPort2World(start + Triple(0, QFontMetrics(font_).descent(), 0));
366 - plot()->qglColor(GL2Qt(color.r, color.g, color.b));
367 - plot()->renderText(start.x, start.y, start.z, text_, font_);
368 - } else {
369 - QImage tex_ = createImage(angle);
370 - drawDevicePixels(tex_.width(), tex_.height(), GL_RGBA, GL_UNSIGNED_BYTE, tex_.bits());
371 - }
372 - }
373 -
374 - glAlphaFunc(func,v);
375 - Enable(GL_ALPHA_TEST, b);
376 -}
377 +}
378 +
379 +const char * Label::fontname()
380 +{
381 + char *name = "Helvetica";
382 + if (font_.family() == "Times New Roman"){
383 + name = "Times";
384 + if (font_.bold() && font_.italic ())
385 + name = "Times-BoldItalic";
386 + else if (font_.italic())
387 + name = "Times-Italic";
388 + else if (font_.bold())
389 + name = "Times-Bold";
390 + } else if (font_.family() == "Courier" || font_.family() == "Courier New"){
391 + name = "Courier";
392 + if (font_.bold() && font_.italic ())
393 + name = "Courier-BoldOblique";
394 + else if (font_.italic())
395 + name = "Courier-Oblique";
396 + else if (font_.bold())
397 + name = "Courier-Bold";
398 + } else {
399 + if (font_.bold() && font_.italic ())
400 + name = "Helvetica-BoldOblique";
401 + else if (font_.italic())
402 + name = "Helvetica-Oblique";
403 + else if (font_.bold())
404 + name = "Helvetica-Bold";
405 + }
406 +
407 + return (const char*) name;
408 +}
409 +
410 +void Label::draw(double angle)
411 +{
412 + if (!plot() || !plot()->isVisible())
413 + return;
414 +
415 + if (text_.isEmpty())
416 + return;
417 +
418 + GLboolean b;
419 + GLint func;
420 + GLdouble v;
421 + glGetBooleanv(GL_ALPHA_TEST, &b);
422 + glGetIntegerv(GL_ALPHA_TEST_FUNC, &func);
423 + glGetDoublev(GL_ALPHA_TEST_REF, &v);
424 +
425 + glEnable (GL_ALPHA_TEST);
426 + glAlphaFunc (GL_NOTEQUAL, 0.0);
427 +
428 + convert2screen();
429 + glRasterPos3d(beg_.x, beg_.y, beg_.z);
430 +
431 + if (plot()->isExportingVector()){
432 + if (devicefonts_)
433 + drawDeviceText(QWT3DLOCAL8BIT(text_), fontname(), font_.pointSize(), pos_, color, anchor_, gap_, angle);
434 + else {
435 + QImage tex_ = createImage(angle);
436 + drawDevicePixels(tex_.width(), tex_.height(), GL_RGBA, GL_UNSIGNED_BYTE, tex_.bits());
437 + }
438 + } else {
439 + if (!angle){
440 + Triple start = World2ViewPort(beg_);
441 + start = ViewPort2World(start + Triple(0, QFontMetrics(font_).descent(), 0));
442 + plot()->qglColor(GL2Qt(color.r, color.g, color.b));
443 + plot()->renderText(start.x, start.y, start.z, text_, font_);
444 + } else {
445 + QImage tex_ = createImage(angle);
446 + drawDevicePixels(tex_.width(), tex_.height(), GL_RGBA, GL_UNSIGNED_BYTE, tex_.bits());
447 + }
448 + }
449 +
450 + glAlphaFunc(func,v);
451 + Enable(GL_ALPHA_TEST, b);
452 +}
453
454 double Label::width() const
455 -{
456 - if (width_ > 0.0 && height_ > 0.0)
457 - return width_;
458 -
459 +{
460 + if (width_ > 0.0 && height_ > 0.0)
461 + return width_;
462 +
463 return QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_)).width();
464 }
465
466 double Label::height() const
467 -{
468 +{
469 if (width_ > 0.0 && height_ > 0.0)
470 - return height_;
471 -
472 + return height_;
473 +
474 + return QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_)).height();
475 +}
476 +
477 +double Label::textHeight() const
478 +{
479 return QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_)).height();
480 }
481 -
482 -double Label::textHeight() const
483 -{
484 - return QRect(QPoint(0, 0), QFontMetrics(font_).size(Qwt3D::SingleLine, text_)).height();
485 -}
486
487
488
489 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gcc44.patch
490
491 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gcc44.patch?rev=1.1&view=markup
492 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-gcc44.patch?rev=1.1&content-type=text/plain
493
494 Index: qtiplot-0.9.7.10-gcc44.patch
495 ===================================================================
496 diff --git a/3rdparty/qwtplot3d/src/qwt3d_function.cpp b/3rdparty/qwtplot3d/src/qwt3d_function.cpp
497 index 3271aea..559127b 100755
498 --- a/3rdparty/qwtplot3d/src/qwt3d_function.cpp
499 +++ b/3rdparty/qwtplot3d/src/qwt3d_function.cpp
500 @@ -1,3 +1,4 @@
501 +#include <cstdio>
502 #include "qwt3d_surfaceplot.h"
503 #include "qwt3d_function.h"
504
505
506
507
508 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-build.conf.patch
509
510 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-build.conf.patch?rev=1.1&view=markup
511 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-build.conf.patch?rev=1.1&content-type=text/plain
512
513 Index: qtiplot-0.9.7.10-build.conf.patch
514 ===================================================================
515 diff --git a/build.conf.example b/build.conf.example
516 index 9e0c532..4f8906f 100755
517 --- a/build.conf.example
518 +++ b/build.conf.example
519 @@ -7,30 +7,29 @@ isEmpty( QTI_ROOT ) {
520 ##########################################################
521
522 # Global include path which is always added at the end of the INCLUDEPATH
523 -SYS_INCLUDEPATH = /opt/local/include
524 +SYS_INCLUDEPATH = /usr/include
525 # Global lib path and libs which is ls always added at the end of LIBS
526 -SYS_LIBS = -L/opt/local/lib
527 +SYS_LIBS = -L/usr/GENTOOLIB
528
529 ##########################################################
530 ## muParser (http://muparser.sourceforge.net/)
531 ##########################################################
532
533 # include path. leave it blank to use SYS_INCLUDE
534 -MUPARSER_INCLUDEPATH = $$QTI_ROOT/3rdparty/muparser/include
535 +MUPARSER_INCLUDEPATH = $$system(pkg-config --cflags muparser)
536 # link statically against a copy in 3rdparty/
537 -MUPARSER_LIBS = $$QTI_ROOT/3rdparty/muparser/lib/libmuparser.a
538 +#MUPARSER_LIBS = $$QTI_ROOT/3rdparty/muparser/lib/libmuparser.a
539 # or dynamically against a system-wide installation
540 -#MUPARSER_LIBS = -lmuparser
541 +MUPARSER_LIBS = $$system(pkg-config --libs muparser)
542
543 ##########################################################
544 ## GNU Sientific Library (http://www.gnu.org/software/gsl/)
545 ##########################################################
546
547 # include path. leave it blank to use SYS_INCLUDE
548 -GSL_INCLUDEPATH = $$QTI_ROOT/3rdparty/gsl/include
549 +GSL_INCLUDEPATH = $$system(pkg-config --cflags gsl)
550 # link statically against a copy in 3rdparty/
551 -GSL_LIBS = $$QTI_ROOT/3rdparty/gsl/lib/libgsl.a \
552 - $$QTI_ROOT/3rdparty/gsl/lib/libgslcblas.a
553 +GSL_LIBS = $$system(pkg-config --libs gsl)
554 # or dynamically against a system-wide installation
555 #GSL_LIBS = -lgsl -lgslcblas
556
557 @@ -39,14 +38,14 @@ GSL_LIBS = $$QTI_ROOT/3rdparty/gsl/lib/libgsl.a \
558 ##########################################################
559
560 # include path. leave it blank to use SYS_INCLUDE
561 -BOOST_INCLUDEPATH = $$QTI_ROOT/3rdparty/boost
562 +BOOST_INCLUDEPATH = /usr/include/boost
563 # link statically against a copy in 3rdparty/
564 -unix: BOOST_LIBS = $$QTI_ROOT/3rdparty/boost/lib/libboost_date_time-gcc43-mt-1_38.a \
565 - $$QTI_ROOT/3rdparty/boost/lib/libboost_thread-gcc43-mt-1_38.a
566 -win32:BOOST_LIBS = $$QTI_ROOT/3rdparty/boost/lib/libboost_date_time-mgw34-mt.lib \
567 - $$QTI_ROOT/3rdparty/boost/lib/libboost_thread-mgw34-mt.lib
568 +#unix: BOOST_LIBS = $$QTI_ROOT/3rdparty/boost/lib/libboost_date_time-gcc43-mt-1_38.a \
569 +# $$QTI_ROOT/3rdparty/boost/lib/libboost_thread-gcc43-mt-1_38.a
570 +#win32:BOOST_LIBS = $$QTI_ROOT/3rdparty/boost/lib/libboost_date_time-mgw34-mt.lib \
571 +# $$QTI_ROOT/3rdparty/boost/lib/libboost_thread-mgw34-mt.lib
572 # or dynamically against a system-wide installation
573 -#BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt
574 +BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt
575
576 ##########################################################
577 ## QWT - use local copy till upstream catches up
578 @@ -55,19 +54,21 @@ win32:BOOST_LIBS = $$QTI_ROOT/3rdparty/boost/lib/libboost_date_time-mgw34-mt.lib
579
580 # include path.
581 QWT_INCLUDEPATH = $$QTI_ROOT/3rdparty/qwt/src
582 +#QWT_INCLUDEPATH = /usr/include/qwt5
583 # link locally against a copy in 3rdparty/
584 QWT_LIBS = $$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
585 +#QWT_LIBS = -lqwt
586
587 ##########################################################
588 ## libpng - optional. you don't have to set these variables
589 ##########################################################
590
591 # include path. leave it blank to use SYS_INCLUDE
592 -LIBPNG_INCLUDEPATH = $$QTI_ROOT/3rdparty/libpng/
593 +LIBPNG_INCLUDEPATH = /usr/libpng/
594 # link statically against a copy in 3rdparty/
595 -LIBPNG_LIBS = $$QTI_ROOT/3rdparty/libpng/libpng.a
596 +#LIBPNG_LIBS = $$QTI_ROOT/3rdparty/libpng/libpng.a
597 # or dynamically against a system-wide installation
598 -#LIBPNG_LIBS = -lpng
599 +LIBPNG_LIBS = $$system(pkg-config --libs libpng)
600
601 ##########################################################
602 ## EmfEngine - optional. you don't have to set these variables
603 @@ -75,9 +76,17 @@ LIBPNG_LIBS = $$QTI_ROOT/3rdparty/libpng/libpng.a
604 ##########################################################
605
606 # include path.
607 -EMF_ENGINE_INCLUDEPATH = $$QTI_ROOT/3rdparty/EmfEngine/src
608 +EMF_ENGINE_INCLUDEPATH = /usr/include/libEMF
609 # link locally against a copy in 3rdparty/
610 -EMF_ENGINE_LIBS = $$QTI_ROOT/3rdparty/EmfEngine/libEmfEngine.a
611 +EMF_ENGINE_LIBS = -lEMF
612 +
613 +############################################################
614 +## liborigin
615 +############################################################
616 +
617 +LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin2
618 +
619 +LIB_ORIGIN_LIBS = -lorigin2
620
621 ############################################################
622 ## Target specific configuration: configure Qtiplot itself
623 @@ -101,7 +110,7 @@ contains( TARGET, qtiplot ) {
624 #DEFINES += QTIPLOT_SUPPORT
625
626 # Uncomment the following line if you want to perform a custom installation using the *.path variables defined in ./qtiplot.pro.
627 - #CONFIG += CustomInstall
628 + CONFIG += CustomInstall
629
630 CONFIG += release
631 #CONFIG += debug
632
633
634
635 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-docbuild.patch
636
637 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-docbuild.patch?rev=1.1&view=markup
638 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-docbuild.patch?rev=1.1&content-type=text/plain
639
640 Index: qtiplot-0.9.7.10-docbuild.patch
641 ===================================================================
642 --- manual/docbook-en/index.docbook.orig 2009-04-14 11:03:31.000000000 +0100
643 +++ manual/docbook-en/index.docbook 2009-04-14 10:58:41.000000000 +0100
644 @@ -1,5 +1,5 @@
645 <?xml version="1.0" encoding="UTF-8"?>
646 -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
647 +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" [
648
649 <!ENTITY appname "QtiPlot">
650 <!ENTITY kappname "&appname;">
651 --- manual/Makefile.orig 2009-04-14 11:03:31.000000000 +0100
652 +++ manual/Makefile 2009-04-14 10:44:59.000000000 +0100
653 @@ -1,3 +1,2 @@
654 -html-pdf:
655 - docbook2html -d qtiplot.dsl docbook-en/index.docbook -e no-valid
656 - dblatex -o qtiplot-manual-en.pdf -c dblatex.conf -p dblatex-param.xsl docbook-en/index.docbook
657 +all:
658 + docbook2html -d qtiplot.dsl docbook-en/index.docbook -e no-valid -l /usr/share/sgml/xml.dcl
659 --- manual/qtiplot.dsl.orig 2009-04-14 11:03:31.000000000 +0100
660 +++ manual/qtiplot.dsl 2009-04-14 10:50:29.000000000 +0100
661 @@ -6,7 +6,7 @@
662 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
663
664 <!-- Path to main Docbook->html stylesheet. You have to adapt this to your installation. -->
665 -<!ENTITY docbook-html-stylesheet SYSTEM "/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl" CDATA DSSSL>
666 +<!ENTITY docbook-html-stylesheet SYSTEM "/usr/share/sgml/stylesheets/dsssl/docbook/html/docbook.dsl" CDATA DSSSL>
667
668 <!-- Stylesheet function library for creating Windows HTML help and Qt Assistant profiles. -->
669 <!ENTITY docbook-help-stylesheet SYSTEM "./help.dsl" CDATA DSSSL>
670 diff -Nur manual.orig/qtiplot_html.xsl manual/qtiplot_html.xsl
671 --- manual/qtiplot_html.xsl.orig 2009-04-14 11:03:31.000000000 +0100
672 +++ manual/qtiplot_html.xsl 2009-04-14 10:51:53.000000000 +0100
673 @@ -1,5 +1,5 @@
674 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
675 -<xsl:import href="file:////usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl"/>
676 +<xsl:import href="file:////usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/>
677
678 <!-- html.stylesheet
679 The html.stylesheet parameter is either empty, indicating that no
680
681
682
683 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip2.patch
684
685 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip2.patch?rev=1.1&view=markup
686 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip2.patch?rev=1.1&content-type=text/plain
687
688 Index: qtiplot-0.9.7.10-sip2.patch
689 ===================================================================
690 --- trunk/qtiplot/src/scripting/scripting.pri 2009/10/21 21:30:09 1434
691 +++ trunk/qtiplot/src/scripting/scripting.pri 2009/10/22 13:39:34 1435
692 @@ -80,7 +80,6 @@
693 $${SIP_DIR}/sipqtiPythonScript.cpp\
694 $${SIP_DIR}/sipqtiPythonScripting.cpp\
695 $${SIP_DIR}/sipqtiFolder.cpp\
696 - $${SIP_DIR}/sipqtiQList.cpp\
697 $${SIP_DIR}/sipqtiFit.cpp \
698 $${SIP_DIR}/sipqtiExponentialFit.cpp \
699 $${SIP_DIR}/sipqtiTwoExpFit.cpp \
700 @@ -104,5 +103,15 @@
701 $${SIP_DIR}/sipqtiFFT.cpp \
702 $${SIP_DIR}/sipqtiCorrelation.cpp \
703 $${SIP_DIR}/sipqtiConvolution.cpp \
704 - $${SIP_DIR}/sipqtiDeconvolution.cpp
705 + $${SIP_DIR}/sipqtiDeconvolution.cpp \
706 +
707 +exists(../../$${SIP_DIR}/sipqtiQList.cpp) {
708 + # SIP < 4.9
709 + SOURCES += $${SIP_DIR}/sipqtiQList.cpp
710 +} else {
711 + SOURCES += \
712 + $${SIP_DIR}/sipqtiQList0101Folder.cpp\
713 + $${SIP_DIR}/sipqtiQList0101Graph.cpp\
714 + $${SIP_DIR}/sipqtiQList0101MdiSubWindow.cpp\
715 +}
716 }
717
718
719
720 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip.patch
721
722 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip.patch?rev=1.1&view=markup
723 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-sip.patch?rev=1.1&content-type=text/plain
724
725 Index: qtiplot-0.9.7.10-sip.patch
726 ===================================================================
727 diff --git a/qtiplot/src/scripting/scripting.pri b/qtiplot/src/scripting/scripting.pri
728 index b8667e3..e4027da 100755
729 --- a/qtiplot/src/scripting/scripting.pri
730 +++ b/qtiplot/src/scripting/scripting.pri
731 @@ -80,7 +80,6 @@ contains(SCRIPTING_LANGS, Python) {
732 $${SIP_DIR}/sipqtiPythonScript.cpp\
733 $${SIP_DIR}/sipqtiPythonScripting.cpp\
734 $${SIP_DIR}/sipqtiFolder.cpp\
735 - $${SIP_DIR}/sipqtiQList.cpp\
736 $${SIP_DIR}/sipqtiFit.cpp \
737 $${SIP_DIR}/sipqtiExponentialFit.cpp \
738 $${SIP_DIR}/sipqtiTwoExpFit.cpp \
739 @@ -105,4 +104,16 @@ contains(SCRIPTING_LANGS, Python) {
740 $${SIP_DIR}/sipqtiCorrelation.cpp \
741 $${SIP_DIR}/sipqtiConvolution.cpp \
742 $${SIP_DIR}/sipqtiDeconvolution.cpp \
743 +
744 +SIPVERSION = $$system( sip -V | cut -b 1-3 )
745 +
746 +equals( SIPVERSION, 4.8 ) {
747 + # SIP < 4.9
748 + SOURCES += $${SIP_DIR}/sipqtiQList.cpp
749 +} else {
750 + SOURCES += \
751 + $${SIP_DIR}/sipqtiQList0101Folder.cpp\
752 + $${SIP_DIR}/sipqtiQList0101Graph.cpp\
753 + $${SIP_DIR}/sipqtiQList0101MdiSubWindow.cpp\
754 +}
755 }
756
757
758
759 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch
760
761 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch?rev=1.1&view=markup
762 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch?rev=1.1&content-type=text/plain
763
764 Index: qtiplot-0.9.7.10-dont-install-qwt.patch
765 ===================================================================
766 diff --git a/3rdparty/qwt/qwtconfig.pri b/3rdparty/qwt/qwtconfig.pri
767 index b7d0d0e..e36f131 100755
768 --- a/3rdparty/qwt/qwtconfig.pri
769 +++ b/3rdparty/qwt/qwtconfig.pri
770 @@ -7,17 +7,6 @@ VER_MIN = 2
771 VER_PAT = 0
772 VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
773
774 -unix {
775 - INSTALLBASE = /usr/local/qwt-5.2.0
776 -}
777 -
778 -win32 {
779 - INSTALLBASE = C:/Qwt-5.2.0
780 -}
781 -
782 -target.path = $$INSTALLBASE/lib
783 -headers.path = $$INSTALLBASE/include
784 -doc.path = $$INSTALLBASE/doc
785
786 ######################################################################
787 # qmake internal options
788
789
790
791 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-qtiplot.pro.patch
792
793 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-qtiplot.pro.patch?rev=1.1&view=markup
794 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-qtiplot.pro.patch?rev=1.1&content-type=text/plain
795
796 Index: qtiplot-0.9.7.10-qtiplot.pro.patch
797 ===================================================================
798 diff --git a/qtiplot/qtiplot.pro b/qtiplot/qtiplot.pro
799 index 1021776..37ed5de 100755
800 --- a/qtiplot/qtiplot.pro
801 +++ b/qtiplot/qtiplot.pro
802 @@ -10,21 +10,24 @@ QTI_ROOT = ..
803
804 # local copy included
805 INCLUDEPATH += ../3rdparty/qwtplot3d/include
806 -INCLUDEPATH += ../3rdparty/liborigin
807 INCLUDEPATH += ../3rdparty/zlib
808 -INCLUDEPATH += ../3rdparty/QTeXEngine/src
809 +INCLUDEPATH += /usr/include
810
811 # configurable
812 INCLUDEPATH += $$MUPARSER_INCLUDEPATH
813 INCLUDEPATH += $$QWT_INCLUDEPATH
814 INCLUDEPATH += $$GSL_INCLUDEPATH
815 INCLUDEPATH += $$BOOST_INCLUDEPATH
816 +INCLUDEPATH += $$LIB_ORIGIN_INCLUDEPATH
817
818 # configurable libs
819 LIBS += $$MUPARSER_LIBS
820 LIBS += $$QWT_LIBS
821 LIBS += $$GSL_LIBS
822 LIBS += $$BOOST_LIBS
823 +LIBS += $$LIB_ORIGIN_LIBS
824 +LIBS += -lQTeXEngine
825 +LIBS += -lgl2ps
826
827 #############################################################################
828 ###################### BASIC PROJECT PROPERTIES #############################
829 @@ -140,10 +143,8 @@ include(src/scripting/scripting.pri)
830 ##################### TeX export: QTeXEngine ##################
831 ###############################################################
832
833 -INCLUDEPATH += ../3rdparty/QTeXEngine/src
834 -HEADERS += ../3rdparty/QTeXEngine/src/QTeXEngine.h
835 -SOURCES += ../3rdparty/QTeXEngine/src/QTeXPaintEngine.cpp
836 -SOURCES += ../3rdparty/QTeXEngine/src/QTeXPaintDevice.cpp
837 +INCLUDEPATH += /usr/include
838 +HEADERS += /usr/include/QTeXEngine.h
839
840 ###############################################################
841 ##################### Scripting: PYTHON + SIP + PyQT ##########
842
843
844
845 1.1 sci-visualization/qtiplot/files/qtiplot-0.9.7.10-syslibs.patch
846
847 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-syslibs.patch?rev=1.1&view=markup
848 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-syslibs.patch?rev=1.1&content-type=text/plain
849
850 Index: qtiplot-0.9.7.10-syslibs.patch
851 ===================================================================
852 diff --git a/3rdparty/qwtplot3d/qwtplot3d.pri b/3rdparty/qwtplot3d/qwtplot3d.pri
853 index 1b41edd..0f04abc 100755
854 --- a/3rdparty/qwtplot3d/qwtplot3d.pri
855 +++ b/3rdparty/qwtplot3d/qwtplot3d.pri
856 @@ -57,11 +57,11 @@ HEADERS += ../3rdparty/qwtplot3d/include/qwt3d_color.h \
857 ../3rdparty/qwtplot3d/include/qwt3d_multiplot.h
858
859 # gl2ps support
860 -HEADERS += ../3rdparty/qwtplot3d/3rdparty/gl2ps/gl2ps.h \
861 - ../3rdparty/qwtplot3d/include/qwt3d_io_gl2ps.h
862 +HEADERS += ../3rdparty/qwtplot3d/include/qwt3d_io_gl2ps.h
863
864 -SOURCES += ../3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp \
865 - ../3rdparty/qwtplot3d/3rdparty/gl2ps/gl2ps.c
866 +SOURCES += ../3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
867 +
868 +LIBS+=-lgl2ps
869
870 # zlib support for gl2ps
871 zlib {
872 diff --git a/3rdparty/qwtplot3d/qwtplot3d.pro b/3rdparty/qwtplot3d/qwtplot3d.pro
873 index 7153400..f3e2fa2 100755
874 --- a/3rdparty/qwtplot3d/qwtplot3d.pro
875 +++ b/3rdparty/qwtplot3d/qwtplot3d.pro
876 @@ -82,11 +82,11 @@ HEADERS += include/qwt3d_surfaceplot.h \
877 include/qwt3d_multiplot.h
878
879 # gl2ps support
880 -HEADERS+=3rdparty/gl2ps/gl2ps.h \
881 - include/qwt3d_io_gl2ps.h
882 +HEADERS+=include/qwt3d_io_gl2ps.h
883
884 -SOURCES+=src/qwt3d_io_gl2ps.cpp \
885 - 3rdparty/gl2ps/gl2ps.c
886 +SOURCES+=src/qwt3d_io_gl2ps.cpp
887 +
888 +LIBS+=-lgl2ps
889
890 # zlib support for gl2ps
891 zlib {
892 diff --git a/qtiplot/src/origin/origin.pri b/qtiplot/src/origin/origin.pri
893 index 0747c29..2d9c822 100755
894 --- a/qtiplot/src/origin/origin.pri
895 +++ b/qtiplot/src/origin/origin.pri
896 @@ -4,14 +4,5 @@
897 INCLUDEPATH += src/origin/
898
899 HEADERS += src/origin/importOPJ.h
900 -HEADERS += ../3rdparty/liborigin/OriginObj.h
901 -HEADERS += ../3rdparty/liborigin/OriginFile.h
902 -HEADERS += ../3rdparty/liborigin/OriginParser.h
903 -HEADERS += ../3rdparty/liborigin/OriginDefaultParser.h
904 -HEADERS += ../3rdparty/liborigin/Origin750Parser.h
905
906 SOURCES += src/origin/importOPJ.cpp
907 -SOURCES += ../3rdparty/liborigin/OriginFile.cpp
908 -SOURCES += ../3rdparty/liborigin/OriginParser.cpp
909 -SOURCES += ../3rdparty/liborigin/OriginDefaultParser.cpp
910 -SOURCES += ../3rdparty/liborigin/Origin750Parser.cpp