Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/qtiplot/files/, sci-visualization/qtiplot/
Date: Fri, 26 Jan 2018 23:19:57
Message-Id: 1517008613.ec7ebfc45b95bd0f5e44d0c46a10f6a4d497d6e6.zlogene@gentoo
1 commit: ec7ebfc45b95bd0f5e44d0c46a10f6a4d497d6e6
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 26 23:16:53 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 26 23:16:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec7ebfc4
7
8 sci-visualization/qtiplot: remove last rited package
9
10 Closes: https://bugs.gentoo.org/580328
11 Closes: https://bugs.gentoo.org/585328
12 Closes: https://bugs.gentoo.org/630332
13 Closes: https://bugs.gentoo.org/641514
14
15 sci-visualization/qtiplot/Manifest | 3 -
16 .../files/qtiplot-0.9.7.10-dont-install-qwt.patch | 22 --
17 .../qtiplot/files/qtiplot-0.9.8.6-gold.patch | 15 --
18 .../qtiplot/files/qtiplot-0.9.8.7-kde.patch | 16 --
19 .../files/qtiplot-0.9.8.8-system-gl2ps.patch | 76 -------
20 .../qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.10.patch | 32 ---
21 .../files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch | 32 ---
22 .../files/qtiplot-0.9.8.9-adopt_to_alglib3.patch | 115 ----------
23 .../qtiplot-0.9.8.9-crasher_without_internet.patch | 25 ---
24 .../qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch | 36 ---
25 .../qtiplot/files/qtiplot-0.9.8.9-origin-2.patch | 38 ----
26 .../qtiplot/files/qtiplot-0.9.8.9-private.patch | 15 --
27 .../qtiplot/files/qtiplot-0.9.8.9-qt48.patch | 29 ---
28 .../files/qtiplot-0.9.8.9-set_col_values.patch | 18 --
29 .../qtiplot/files/qtiplot-0.9.8.9-sip-4.15.patch | 31 ---
30 .../qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch | 38 ----
31 sci-visualization/qtiplot/metadata.xml | 26 ---
32 .../qtiplot/qtiplot-0.9.8.9-r2.ebuild | 235 --------------------
33 .../qtiplot/qtiplot-0.9.8.9-r3.ebuild | 238 --------------------
34 .../qtiplot/qtiplot-0.9.8.9-r4.ebuild | 241 ---------------------
35 20 files changed, 1281 deletions(-)
36
37 diff --git a/sci-visualization/qtiplot/Manifest b/sci-visualization/qtiplot/Manifest
38 deleted file mode 100644
39 index b99080cd00a..00000000000
40 --- a/sci-visualization/qtiplot/Manifest
41 +++ /dev/null
42 @@ -1,3 +0,0 @@
43 -DIST qtiplot-0.9.8.9-origin.patch.bz2 104708 BLAKE2B 38993180a33ae2d5c4e7f2adbfabe54efb5abebb6eb678edc6a0d40f9ad552e3fac2a99be9b6793001cf880f2445751435fb3476be24a41fb769a8ffe6d0e7d9 SHA512 62f5bb531c2fc7e061661ab5733a70acf9a61ff90a934af42b5741c63478caebabc8240f37d25660f623c5cbcd530e1303e967a095ca99b3452f29cfb5200b69
44 -DIST qtiplot-0.9.8.9-origin.patch.xz 89660 BLAKE2B 77b9808173300a65f950ff1e15ba66271ec5bb45f147bb4707b881ec3987c22a35c9fb07c78f2f3205b252ae7f336d8a7d83eba57b96ff5510c65ef051a6a089 SHA512 adbd002975bb49997eb610b150c1bbfe9c9617b0b5bbb70f52df7475339b7d68cada175eb9f6048f6ece043ca3dcf5c62ef361d82bc670b1576ee8493d6b757c
45 -DIST qtiplot-0.9.8.9.tar.bz2 16202943 BLAKE2B ce7efb424da293f8770a90d9c4346c9c709d98605a726e466e2c85a8b1b8db2b519c3e7c719077c14aeed71e9696194e3b5acf075ebc052fe6be88a887fae7fd SHA512 3a0cb7b49c508f56228e8e3a259b4fd34c872410ad14ef1d8656372e3e8ab9f92e59094a9cc1a75680099a8832f7472ad31462b3ae8a9e132ac7056d5245cf2a
46
47 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch
48 deleted file mode 100644
49 index 86e4d4c6a9c..00000000000
50 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.7.10-dont-install-qwt.patch
51 +++ /dev/null
52 @@ -1,22 +0,0 @@
53 -diff --git a/3rdparty/qwt/qwtconfig.pri b/3rdparty/qwt/qwtconfig.pri
54 -index b7d0d0e..e36f131 100755
55 ---- a/3rdparty/qwt/qwtconfig.pri
56 -+++ b/3rdparty/qwt/qwtconfig.pri
57 -@@ -7,17 +7,6 @@ VER_MIN = 2
58 - VER_PAT = 0
59 - VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
60 -
61 --unix {
62 -- INSTALLBASE = /usr/local/qwt-5.2.0
63 --}
64 --
65 --win32 {
66 -- INSTALLBASE = C:/Qwt-5.2.0
67 --}
68 --
69 --target.path = $$INSTALLBASE/lib
70 --headers.path = $$INSTALLBASE/include
71 --doc.path = $$INSTALLBASE/doc
72 -
73 - ######################################################################
74 - # qmake internal options
75
76 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.6-gold.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.6-gold.patch
77 deleted file mode 100644
78 index 3b6757533a5..00000000000
79 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.6-gold.patch
80 +++ /dev/null
81 @@ -1,15 +0,0 @@
82 - qtiplot/qtiplot.pro | 1 +
83 - 1 files changed, 1 insertions(+), 0 deletions(-)
84 -
85 -diff --git a/qtiplot/qtiplot.pro b/qtiplot/qtiplot.pro
86 -index 99e0e36..b7cf373 100755
87 ---- a/qtiplot/qtiplot.pro
88 -+++ b/qtiplot/qtiplot.pro
89 -@@ -20,6 +20,7 @@ LIBS += $$MUPARSER_LIBS
90 - LIBS += $$QWT_LIBS
91 - LIBS += $$QWT3D_LIBS
92 - LIBS += $$GSL_LIBS
93 -+LIBS += -lz
94 -
95 - #############################################################################
96 - ###################### BASIC PROJECT PROPERTIES #############################
97
98 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.7-kde.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.7-kde.patch
99 deleted file mode 100644
100 index af1dca42da4..00000000000
101 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.7-kde.patch
102 +++ /dev/null
103 @@ -1,16 +0,0 @@
104 - qtiplot/src/plot2D/Graph.cpp | 1 +
105 - 1 files changed, 1 insertions(+), 0 deletions(-)
106 -
107 -diff --git a/qtiplot/src/plot2D/Graph.cpp b/qtiplot/src/plot2D/Graph.cpp
108 -index 626172a..d4eab1b 100755
109 ---- a/qtiplot/src/plot2D/Graph.cpp
110 -+++ b/qtiplot/src/plot2D/Graph.cpp
111 -@@ -73,7 +73,8 @@
112 - #include <PatternBox.h>
113 - #include <SymbolBox.h>
114 - #include <LinearColorMap.h>
115 -
116 -+#include <QPaintEngine>
117 - #include <QApplication>
118 - #include <QBitmap>
119 - #include <QClipboard>
120
121 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.8-system-gl2ps.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.8-system-gl2ps.patch
122 deleted file mode 100644
123 index d7b40c414b1..00000000000
124 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.8-system-gl2ps.patch
125 +++ /dev/null
126 @@ -1,76 +0,0 @@
127 - 3rdparty/qwtplot3d/qwtplot3d.pri | 8 ++++----
128 - 3rdparty/qwtplot3d/qwtplot3d.pro | 3 ---
129 - 3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp | 2 +-
130 - 3rdparty/qwtplot3d/src/qwt3d_label.cpp | 2 +-
131 - 4 files changed, 6 insertions(+), 9 deletions(-)
132 -
133 -diff --git a/3rdparty/qwtplot3d/qwtplot3d.pri b/3rdparty/qwtplot3d/qwtplot3d.pri
134 -index 45a0c3e..16bbe53 100755
135 ---- a/3rdparty/qwtplot3d/qwtplot3d.pri
136 -+++ b/3rdparty/qwtplot3d/qwtplot3d.pri
137 -@@ -8,6 +8,8 @@ DEPENDPATH += src \
138 - 3rdparty\gl2ps
139 - INCLUDEPATH += .
140 -
141 -+LIBS+=-lgl2ps
142 -+
143 - # Input
144 - HEADERS += include/qwt3d_extglwidget.h \
145 - include/qwt3d_color.h \
146 -@@ -37,8 +39,7 @@ HEADERS += include/qwt3d_extglwidget.h \
147 - include/qwt3d_volumeplot.h \
148 - include/qwt3d_graphplot.h \
149 - include/qwt3d_multiplot.h \
150 -- include/qwt3d_io_gl2ps.h \
151 -- 3rdparty/gl2ps/gl2ps.h
152 -+ include/qwt3d_io_gl2ps.h
153 - SOURCES += src/qwt3d_extglwidget.cpp \
154 - src/qwt3d_axis.cpp \
155 - src/qwt3d_color.cpp \
156 -@@ -62,5 +63,4 @@ SOURCES += src/qwt3d_extglwidget.cpp \
157 - src/qwt3d_function.cpp \
158 - src/qwt3d_gridplot.cpp \
159 - src/qwt3d_meshplot.cpp \
160 -- src/qwt3d_io_gl2ps.cpp \
161 -- 3rdparty/gl2ps/gl2ps.c
162 -+ src/qwt3d_io_gl2ps.cpp
163 -diff --git a/3rdparty/qwtplot3d/qwtplot3d.pro b/3rdparty/qwtplot3d/qwtplot3d.pro
164 -index 95c8e26..18d03e3 100755
165 ---- a/3rdparty/qwtplot3d/qwtplot3d.pro
166 -+++ b/3rdparty/qwtplot3d/qwtplot3d.pro
167 -@@ -31,9 +31,6 @@ RCC_DIR = $$DESTDIR/tmp
168 - MOC_DIR = $$DESTDIR/tmp
169 -
170 - DEFINES += GL2PS_HAVE_LIBPNG
171 --INCLUDEPATH += ../zlib/
172 --INCLUDEPATH += ../libpng/
173 --LIBS += ../libpng/libpng.a
174 -
175 - # install
176 - target.path = lib
177 -diff --git a/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp b/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
178 -index bc7a9d8..589cfd2 100755
179 ---- a/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
180 -+++ b/3rdparty/qwtplot3d/src/qwt3d_io_gl2ps.cpp
181 -@@ -6,7 +6,7 @@
182 - #include <locale.h>
183 -
184 - #include "qwt3d_openglhelper.h"
185 --#include "../3rdparty/gl2ps/gl2ps.h"
186 -+#include "gl2ps.h"
187 - #include "qwt3d_io_gl2ps.h"
188 - #include "qwt3d_plot.h"
189 -
190 -diff --git a/3rdparty/qwtplot3d/src/qwt3d_label.cpp b/3rdparty/qwtplot3d/src/qwt3d_label.cpp
191 -index 7e54ad9..cc8bd60 100755
192 ---- a/3rdparty/qwtplot3d/src/qwt3d_label.cpp
193 -+++ b/3rdparty/qwtplot3d/src/qwt3d_label.cpp
194 -@@ -1,7 +1,7 @@
195 - #include <qbitmap.h>
196 - #include "qwt3d_label.h"
197 - #include "qwt3d_plot.h"
198 --#include "../3rdparty/gl2ps/gl2ps.h"
199 -+#include "gl2ps.h"
200 -
201 - using namespace Qwt3D;
202 -
203
204 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.10.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.10.patch
205 deleted file mode 100644
206 index 67bd0a32d10..00000000000
207 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.10.patch
208 +++ /dev/null
209 @@ -1,32 +0,0 @@
210 - qtiplot/python-sipcmd.py | 21 ++++++++++++++++++---
211 - 1 file changed, 18 insertions(+), 3 deletions(-)
212 -
213 -diff --git a/qtiplot/python-sipcmd.py b/qtiplot/python-sipcmd.py
214 -index f643194..d8d1ef2 100755
215 ---- a/qtiplot/python-sipcmd.py
216 -+++ b/qtiplot/python-sipcmd.py
217 -@@ -27,6 +27,21 @@
218 - # #
219 - ############################################################################
220 -
221 --from PyQt4 import pyqtconfig
222 --config = pyqtconfig.Configuration()
223 --print " ".join([config.sip_bin, "-I", config.pyqt_sip_dir, config.pyqt_sip_flags])
224 -+from __future__ import print_function
225 -+
226 -+import os
227 -+import sipconfig
228 -+import PyQt4.QtCore
229 -+
230 -+try:
231 -+ # >= 4.10
232 -+ SIP_FLAGS = PyQt4.QtCore.PYQT_CONFIGURATION['sip_flags']
233 -+except:
234 -+ import PyQt4.pyqtconfig
235 -+ SIP_FLAGS = PyQt4.pyqtconfig.Configuration().pyqt_sip_flags
236 -+
237 -+PYQT_SIP_DIR = os.path.join(sipconfig.Configuration().default_sip_dir)
238 -+SIP_BIN = sipconfig.Configuration().sip_bin
239 -+SIP_INC_DIR = sipconfig.Configuration().sip_inc_dir
240 -+
241 -+print(" ".join([SIP_BIN, "-I", PYQT_SIP_DIR, SIP_FLAGS]))
242
243 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch
244 deleted file mode 100644
245 index a011782550d..00000000000
246 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-PyQt4-4.11.3.patch
247 +++ /dev/null
248 @@ -1,32 +0,0 @@
249 - qtiplot/python-sipcmd.py | 21 ++++++++++++++++++---
250 - 1 file changed, 18 insertions(+), 3 deletions(-)
251 -
252 -diff --git a/qtiplot/python-sipcmd.py b/qtiplot/python-sipcmd.py
253 -index f643194..d8d1ef2 100755
254 ---- a/qtiplot/python-sipcmd.py
255 -+++ b/qtiplot/python-sipcmd.py
256 -@@ -27,6 +27,21 @@
257 - # #
258 - ############################################################################
259 -
260 --from PyQt4 import pyqtconfig
261 --config = pyqtconfig.Configuration()
262 --print " ".join([config.sip_bin, "-I", config.pyqt_sip_dir, config.pyqt_sip_flags])
263 -+from __future__ import print_function
264 -+
265 -+import os
266 -+import sipconfig
267 -+import PyQt4.QtCore
268 -+
269 -+try:
270 -+ # >= 4.10
271 -+ SIP_FLAGS = PyQt4.QtCore.PYQT_CONFIGURATION['sip_flags']
272 -+except:
273 -+ import PyQt4.pyqtconfig
274 -+ SIP_FLAGS = PyQt4.pyqtconfig.Configuration().pyqt_sip_flags
275 -+
276 -+PYQT_SIP_DIR = os.path.join(sipconfig.Configuration().default_sip_dir, 'PyQt4')
277 -+SIP_BIN = sipconfig.Configuration().sip_bin
278 -+SIP_INC_DIR = sipconfig.Configuration().sip_inc_dir
279 -+
280 -+print(" ".join([SIP_BIN, "-I", PYQT_SIP_DIR, SIP_FLAGS]))
281
282 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-adopt_to_alglib3.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-adopt_to_alglib3.patch
283 deleted file mode 100644
284 index 8f1bde25a03..00000000000
285 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-adopt_to_alglib3.patch
286 +++ /dev/null
287 @@ -1,115 +0,0 @@
288 -Description: adoptation to alglib3.
289 -Author: Anton Gladky <gladk@××××××.org>
290 -Last-Update: 2013-05-16
291 -
292 ---- a/qtiplot/src/analysis/dialogs/GriddingDialog.cpp
293 -+++ b/qtiplot/src/analysis/dialogs/GriddingDialog.cpp
294 -@@ -41,7 +41,7 @@
295 - #include <QComboBox>
296 - #include <QLayout>
297 -
298 --#include <idwint.h>
299 -+#include <interpolation.h>
300 -
301 - GriddingDialog::GriddingDialog(Table* t, const QString& colName, int nodes, QWidget* parent, Qt::WFlags fl )
302 - : QDialog( parent, fl ),
303 -@@ -365,26 +365,27 @@
304 - Matrix* m = app->newMatrix(rows, cols);
305 - m->setCoordinates(xmin, xmax, ymin, ymax);
306 -
307 -- idwinterpolant z;
308 -+ alglib::idwinterpolant z;
309 -+
310 - switch (boxMethod->currentIndex()){
311 - case 0:
312 -- idwbuildmodifiedshepardr(xy, d_nodes, 2, boxRadius->value(), z);
313 -+ alglib::idwbuildmodifiedshepardr(xy, d_nodes, 2, boxRadius->value(), z);
314 - break;
315 - case 1:
316 -- idwbuildmodifiedshepard(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
317 -+ alglib::idwbuildmodifiedshepard(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
318 - break;
319 - case 2:
320 -- idwbuildnoisy(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
321 -+ alglib::idwbuildnoisy(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
322 - break;
323 - }
324 -
325 -- ap::real_1d_array p;
326 -+ alglib::real_1d_array p;
327 - p.setlength(2);
328 - for (int i = 0; i < rows; i++){
329 - p(1) = ymin + i*ystep;
330 - for (int j = 0; j < cols; j++){
331 - p(0) = xmin + j*xstep;
332 -- m->setCell(i, j, idwcalc(z, p));
333 -+ m->setCell(i, j, alglib::idwcalc(z, p));
334 - }
335 - }
336 -
337 -@@ -435,20 +436,20 @@
338 - double xstep = fabs(xmax - xmin)/(cols - 1);
339 - double ystep = fabs(ymax - ymin)/(rows - 1);
340 -
341 -- idwinterpolant z;
342 -+ alglib::idwinterpolant z;
343 - switch (boxMethod->currentIndex()){
344 - case 0:
345 -- idwbuildmodifiedshepardr(xy, d_nodes, 2, boxRadius->value(), z);
346 -+ alglib::idwbuildmodifiedshepardr(xy, d_nodes, 2, boxRadius->value(), z);
347 - break;
348 - case 1:
349 -- idwbuildmodifiedshepard(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
350 -+ alglib::idwbuildmodifiedshepard(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
351 - break;
352 - case 2:
353 -- idwbuildnoisy(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
354 -+ alglib::idwbuildnoisy(xy, d_nodes, 2, boxModel->currentIndex() + 1, boxNQ->value(), boxNW->value(), z);
355 - break;
356 - }
357 -
358 -- ap::real_1d_array p;
359 -+ alglib::real_1d_array p;
360 - p.setlength(2);
361 -
362 - double **data_matrix = Matrix::allocateMatrixData(cols, rows);
363 -@@ -456,7 +457,7 @@
364 - p(1) = ymin + i*ystep;
365 - for (int j = 0; j < cols; j++){
366 - p(0) = xmin + j*xstep;
367 -- data_matrix[j][i] = idwcalc(z, p);
368 -+ data_matrix[j][i] = alglib::idwcalc(z, p);
369 - }
370 - }
371 -
372 ---- a/qtiplot/src/analysis/dialogs/GriddingDialog.h
373 -+++ b/qtiplot/src/analysis/dialogs/GriddingDialog.h
374 -@@ -71,7 +71,7 @@
375 -
376 - QString d_col_name;
377 - int d_nodes;
378 -- ap::real_2d_array xy;
379 -+ alglib::real_2d_array xy;
380 -
381 - QPushButton* buttonFit;
382 - QPushButton* buttonCancel;
383 ---- a/qtiplot/src/matrix/MatrixModel.cpp
384 -+++ b/qtiplot/src/matrix/MatrixModel.cpp
385 -@@ -45,7 +45,7 @@
386 - #include <stdlib.h>
387 -
388 - #ifdef HAVE_ALGLIB
389 -- #include <spline2d.h>
390 -+ #include <interpolation.h>
391 - #endif
392 -
393 - MatrixModel::MatrixModel(int rows, int cols, QObject *parent)
394 -@@ -1026,7 +1026,7 @@
395 - #ifdef HAVE_ALGLIB
396 - QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
397 -
398 -- ap::real_2d_array oldValues, newValues;
399 -+ alglib::real_2d_array oldValues, newValues;
400 - oldValues.setlength(d_rows, d_cols);
401 - newValues.setlength(rows, cols);
402 -
403
404 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-crasher_without_internet.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-crasher_without_internet.patch
405 deleted file mode 100644
406 index fe542341e99..00000000000
407 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-crasher_without_internet.patch
408 +++ /dev/null
409 @@ -1,25 +0,0 @@
410 -Description: Crashes if not connected to the internet.
411 -Author: Scott Howard <showard@××××××.org>
412 -Bug-Debian: http://bugs.debian.org/626915
413 -
414 -Index: qtiplot/qtiplot/src/core/ApplicationWindow.cpp
415 -===================================================================
416 ---- qtiplot.orig/qtiplot/src/core/ApplicationWindow.cpp 2012-11-07 11:14:15.021706679 -0500
417 -+++ qtiplot/qtiplot/src/core/ApplicationWindow.cpp 2012-11-07 11:14:22.853706641 -0500
418 -@@ -16228,11 +16228,12 @@
419 - if (hostInfo.error() != QHostInfo::NoError){
420 - QApplication::restoreOverrideCursor();
421 - QMessageBox::critical(this, tr("QtiPlot - Error"), qtiplotWeb + ": " + hostInfo.errorString());
422 -- exit(0);
423 -+ QApplication::restoreOverrideCursor();
424 -+ }
425 -+ else {
426 -+ QApplication::restoreOverrideCursor();
427 -+ showDonationsPage();
428 - }
429 --
430 -- QApplication::restoreOverrideCursor();
431 -- showDonationsPage();
432 - }
433 -
434 - void ApplicationWindow::parseCommandLineArguments(const QStringList& args)
435
436 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch
437 deleted file mode 100644
438 index 9ad891938cd..00000000000
439 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-gsl-2.patch
440 +++ /dev/null
441 @@ -1,36 +0,0 @@
442 - * Info: Using [gentoo] (https://bugs.gentoo.org/xmlrpc.cgi)
443 - * Info: Getting attachment 425760
444 - * Info: Viewing attachment: "fix_fit_gsl_fdfsolver.patch"
445 -diff --git a/qtiplot/src/analysis/Fit.cpp b/qtiplot/src/analysis/Fit.cpp
446 -index 22cb5be..555f21d 100755
447 ---- a/qtiplot/src/analysis/Fit.cpp
448 -+++ b/qtiplot/src/analysis/Fit.cpp
449 -@@ -106,6 +106,7 @@ void Fit::init()
450 - gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iterations, int &status)
451 - {
452 - const gsl_multifit_fdfsolver_type *T;
453 -+ gsl_matrix *J;
454 - if (d_solver)
455 - T = gsl_multifit_fdfsolver_lmder;
456 - else
457 -@@ -128,7 +129,8 @@ gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iteration
458 - }
459 -
460 - if (status){
461 -- gsl_multifit_covar (s->J, 0.0, covar);
462 -+ gsl_multifit_fdfsolver_jac (s, J);
463 -+ gsl_multifit_covar (J, 0.0, covar);
464 - iterations = 0;
465 - return s;
466 - }
467 -@@ -155,7 +157,8 @@ gsl_multifit_fdfsolver * Fit::fitGSL(gsl_multifit_function_fdf f, int &iteration
468 - status = gsl_multifit_test_delta (s->dx, s->x, d_tolerance, d_tolerance);
469 - } while (inRange && status == GSL_CONTINUE && (int)iter < d_max_iterations);
470 -
471 -- gsl_multifit_covar (s->J, 0.0, covar);
472 -+ gsl_multifit_fdfsolver_jac (s, J);
473 -+ gsl_multifit_covar (J, 0.0, covar);
474 -
475 - iterations = iter;
476 - return s;
477 -
478
479 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-origin-2.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-origin-2.patch
480 deleted file mode 100644
481 index d85420b790f..00000000000
482 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-origin-2.patch
483 +++ /dev/null
484 @@ -1,38 +0,0 @@
485 -diff -ruN qtiplot-0.9.8.9-origin/qtiplot/exportEMF.pro qtiplot-0.9.8.9/qtiplot/exportEMF.pro
486 ---- qtiplot-0.9.8.9-origin/qtiplot/exportEMF.pro 2012-01-21 20:39:03.000000000 +0100
487 -+++ qtiplot-0.9.8.9/qtiplot/exportEMF.pro 2012-01-21 20:32:45.000000000 +0100
488 -@@ -5,6 +5,7 @@
489 -
490 - INCLUDEPATH += $$QWT_INCLUDEPATH
491 - INCLUDEPATH += $$GSL_INCLUDEPATH
492 -+INCLUDEPATH += $$EMF_INCLUDEPATH
493 -
494 - include(src/core/core.pri)
495 - include(src/lib/libqti.pri)
496 -diff -ruN qtiplot-0.9.8.9-origin/qtiplot/qtiplot.pro qtiplot-0.9.8.9/qtiplot/qtiplot.pro
497 ---- qtiplot-0.9.8.9-origin/qtiplot/qtiplot.pro 2011-11-07 10:17:21.000000000 +0100
498 -+++ qtiplot-0.9.8.9/qtiplot/qtiplot.pro 2012-01-21 20:44:11.000000000 +0100
499 -@@ -236,9 +236,9 @@
500 - ###############################################################
501 -
502 - TARGET = qtiplot
503 --DESTDIR = ../
504 -+DESTDIR = ./
505 - LIBS += ../tmp/qtiplot/libFreeSoftwareQtiPlotExportEMF.a \
506 - ../tmp/qtiplot/libFreeSoftwareQtiPlotImportOPJ.a
507 -
508 - include(src/plugins/exportEMF/exportEMF.pri)
509 --include(src/plugins/OriginPlugin/OriginPlugin.pri)
510 -\ Kein Zeilenumbruch am Dateiende.
511 -+include(src/plugins/OriginPlugin/OriginPlugin.pri)
512 -diff -ruN qtiplot-0.9.8.9-origin/qtiplot/src/plugins/exportEMF/exportEMF.pri qtiplot-0.9.8.9/qtiplot/src/plugins/exportEMF/exportEMF.pri
513 ---- qtiplot-0.9.8.9-origin/qtiplot/src/plugins/exportEMF/exportEMF.pri 2011-10-27 13:44:34.000000000 +0200
514 -+++ qtiplot-0.9.8.9/qtiplot/src/plugins/exportEMF/exportEMF.pri 2012-01-21 20:51:34.000000000 +0100
515 -@@ -10,5 +10,5 @@
516 - SOURCES += src/plugins/exportEMF/exportEMF.cpp \
517 - src/plugins/exportEMF/3rdparty/EmfEngine/src/EmfEngine.cpp \
518 - src/plugins/exportEMF/3rdparty/EmfEngine/src/EmfPaintDevice.cpp
519 --
520 --LIBS += -lgdi32
521 -+
522 -+LIBS += -lEMF
523
524 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-private.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-private.patch
525 deleted file mode 100644
526 index 7bec3771813..00000000000
527 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-private.patch
528 +++ /dev/null
529 @@ -1,15 +0,0 @@
530 -diff -ruN qtiplot-0.9.8.9.orig/qtiplot/src/plot2D/ImageWidget.h qtiplot-0.9.8.9/qtiplot/src/plot2D/ImageWidget.h
531 ---- qtiplot-0.9.8.9.orig/qtiplot/src/plot2D/ImageWidget.h 2010-10-17 09:04:05.000000000 +0200
532 -+++ qtiplot-0.9.8.9/qtiplot/src/plot2D/ImageWidget.h 2013-11-01 12:11:36.559973891 +0100
533 -@@ -67,10 +67,10 @@
534 - void setWindowName(const QString& name){d_window_name = name;};
535 -
536 - static QPixmap windowPixmap(ApplicationWindow *mw, const QString& name, const QSize& size);
537 -+ void paintEvent(QPaintEvent *e);
538 -
539 - private:
540 - void draw(QPainter *painter, const QRect& r);
541 -- void paintEvent(QPaintEvent *e);
542 - QPixmap d_pix;
543 - //! The file from which the image was loaded.
544 - QString d_file_name;
545
546 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-qt48.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-qt48.patch
547 deleted file mode 100644
548 index 31c8a5ee7af..00000000000
549 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-qt48.patch
550 +++ /dev/null
551 @@ -1,29 +0,0 @@
552 - 3rdparty/qwtplot3d/include/qwt3d_openglhelper.h | 2 ++
553 - qtiplot/src/plot3D/Cone3D.cpp | 1 +
554 - 2 files changed, 3 insertions(+), 0 deletions(-)
555 -
556 -diff --git a/3rdparty/qwtplot3d/include/qwt3d_openglhelper.h b/3rdparty/qwtplot3d/include/qwt3d_openglhelper.h
557 -index 0ee80de..3d02e3f 100755
558 ---- a/3rdparty/qwtplot3d/include/qwt3d_openglhelper.h
559 -+++ b/3rdparty/qwtplot3d/include/qwt3d_openglhelper.h
560 -@@ -8,6 +8,8 @@
561 - #include <QtOpenGL/qgl.h>
562 - #endif
563 -
564 -+#include <GL/glu.h>
565 -+
566 - namespace Qwt3D
567 - {
568 -
569 -diff --git a/qtiplot/src/plot3D/Cone3D.cpp b/qtiplot/src/plot3D/Cone3D.cpp
570 -index 16df12d..169d5c7 100755
571 ---- a/qtiplot/src/plot3D/Cone3D.cpp
572 -+++ b/qtiplot/src/plot3D/Cone3D.cpp
573 -@@ -27,6 +27,7 @@
574 - * *
575 - ***************************************************************************/
576 - #include <math.h>
577 -+#include <GL/glu.h>
578 - #include "qwt3d_color.h"
579 - #include "qwt3d_plot.h"
580 - #include <qwt3d_curve.h>
581
582 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-set_col_values.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-set_col_values.patch
583 deleted file mode 100644
584 index 5afe43eb3da..00000000000
585 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-set_col_values.patch
586 +++ /dev/null
587 @@ -1,18 +0,0 @@
588 -Description: if you don't initialize the "i" variable, or initialize it to 0.0
589 - qtiplot won't let you set the column values using muparser.
590 -Author: Scott Howard <showard@××××××.org>
591 -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707736
592 -
593 -Index: qtiplot/qtiplot/src/table/Table.cpp
594 -===================================================================
595 ---- qtiplot.orig/qtiplot/src/table/Table.cpp 2013-06-08 02:06:35.550201324 -0400
596 -+++ qtiplot/qtiplot/src/table/Table.cpp 2013-06-08 02:08:30.026204044 -0400
597 -@@ -564,7 +564,7 @@
598 - QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
599 -
600 - muParserScript *mup = new muParserScript(scriptEnv, cmd, this, QString("<%1>").arg(colName(col)));
601 -- double *r = mup->defineVariable("i");
602 -+ double *r = mup->defineVariable("i",startRow + 1.0);
603 - mup->defineVariable("j", (double)col);
604 - mup->defineVariable("sr", startRow + 1.0);
605 - mup->defineVariable("er", endRow + 1.0);
606
607 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.15.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.15.patch
608 deleted file mode 100644
609 index c08163019a3..00000000000
610 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.15.patch
611 +++ /dev/null
612 @@ -1,31 +0,0 @@
613 ---- ./qtiplot/src/analysis/FFT.cpp.orig 2011-07-06 11:51:08.000000000 +0000
614 -+++ ./qtiplot/src/analysis/FFT.cpp 2013-10-23 23:07:45.674925476 +0000
615 -@@ -353,7 +353,7 @@
616 - ml->arrangeLayers(false, false);
617 - }
618 -
619 --bool FFT::setDataFromTable(Table *t, const QString& realColName, const QString& imagColName, int from, int to)
620 -+bool FFT::setDataFromTable(Table *t, const QString& realColName, const QString& imagColName, int from, int to, bool unused)
621 - {
622 - d_init_err = true;
623 -
624 ---- ./qtiplot/src/analysis/FFT.h.orig 2011-07-05 22:05:03.000000000 +0000
625 -+++ ./qtiplot/src/analysis/FFT.h 2013-10-23 23:11:34.277924367 +0000
626 -@@ -52,6 +52,8 @@
627 - Matrix *realOutputMatrix(){return d_re_out_matrix;}
628 - Matrix *imaginaryOutputMatrix(){return d_im_out_matrix;}
629 -
630 -+ bool setDataFromTable(Table *t, const QString& realColName, const QString& imagColName = QString(), int from = 0, int to = -1, bool unused = false);
631 -+
632 - private:
633 - void init();
634 - void output();
635 -@@ -60,8 +62,6 @@
636 - void fftTable();
637 - void fftMatrix();
638 -
639 -- bool setDataFromTable(Table *t, const QString& realColName, const QString& imagColName = QString(), int from = 0, int to = -1);
640 --
641 - double d_sampling;
642 - //! Flag telling if an inverse FFT must be performed.
643 - bool d_inverse;
644
645 diff --git a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch b/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch
646 deleted file mode 100644
647 index a1ea502787c..00000000000
648 --- a/sci-visualization/qtiplot/files/qtiplot-0.9.8.9-sip-4.19.patch
649 +++ /dev/null
650 @@ -1,38 +0,0 @@
651 ---- a/qtiplot/src/scripting/qti.sip 2017-02-13 17:01:03.123828499 +0100
652 -+++ b/qtiplot/src/scripting/qti.sip 2017-02-13 17:02:12.628828234 +0100
653 -@@ -148,14 +148,14 @@
654 - }
655 - break;
656 - case Table::Date:
657 -- if (sipCanConvertToType(item, sipType_QDateTime, 0)) {
658 -+ if (sipCanConvertToType(item, sipFindType("QDateTime"), 0)) {
659 - int isErr = 0;
660 -- QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipType_QDateTime,
661 -+ QDateTime* dateTime = reinterpret_cast<QDateTime*>(sipConvertToType(item, sipFindType("QDateTime"),
662 - 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr));
663 - if (isErr)
664 - return 1;
665 - table->setText(row, col, dateTime->toString(table->columnFormat(col)));
666 -- delete dateTime;
667 -+ //delete dateTime;
668 - }
669 - else {
670 - if (PyType_Ready(item_type) == 0)
671 -@@ -164,14 +164,14 @@
672 - }
673 - break;
674 - case Table::Time:
675 -- if (sipCanConvertToType(item, sipType_QTime, 0)) {
676 -+ if (sipCanConvertToType(item, sipFindType("QTime"), 0)) {
677 - int isErr = 0;
678 -- QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipType_QTime,
679 -+ QTime* time = reinterpret_cast<QTime*>(sipConvertToType(item, sipFindType("QTime"),
680 - 0/*sipTransferObj*/, 0/*flags*/, 0/*state*/, &isErr));
681 - if (isErr)
682 - return 1;
683 - table->setText(row, col, time->toString(table->columnFormat(col)));
684 -- delete time;
685 -+ //delete time;
686 - }
687 - else {
688 - if (PyType_Ready(item_type) == 0)
689
690 diff --git a/sci-visualization/qtiplot/metadata.xml b/sci-visualization/qtiplot/metadata.xml
691 deleted file mode 100644
692 index d4db0da9a89..00000000000
693 --- a/sci-visualization/qtiplot/metadata.xml
694 +++ /dev/null
695 @@ -1,26 +0,0 @@
696 -<?xml version="1.0" encoding="UTF-8"?>
697 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
698 -<pkgmetadata>
699 - <maintainer type="project">
700 - <email>sci@g.o</email>
701 - <name>Gentoo Science Project</name>
702 - </maintainer>
703 - <longdescription>
704 - Data analysis and scientific plotting package. This is a clone of the
705 - popular Origin software available on another well known platform implemented
706 - in Qt with powerful 2D and 3D data plotting, ASCII import and powerful
707 - spreadsheet data manipulation using column logic. Curve fitting and other
708 - statistical tools are also available.
709 - </longdescription>
710 - <use>
711 - <flag name="linguas_cs">Czech locale</flag>
712 - <flag name="linguas_de">German locale</flag>
713 - <flag name="linguas_es">Spanish locale</flag>
714 - <flag name="linguas_fr">French locale</flag>
715 - <flag name="linguas_ja">Japanese locale</flag>
716 - <flag name="linguas_ro">Romanian locale</flag>
717 - <flag name="linguas_ru">Russian locale</flag>
718 - <flag name="linguas_sv">Swedish locale</flag>
719 - <flag name="linguas_zh_CN">Chinese locale for China</flag>
720 - </use>
721 -</pkgmetadata>
722
723 diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild
724 deleted file mode 100644
725 index 3fcaffb291d..00000000000
726 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r2.ebuild
727 +++ /dev/null
728 @@ -1,235 +0,0 @@
729 -# Copyright 1999-2016 Gentoo Foundation
730 -# Distributed under the terms of the GNU General Public License v2
731 -
732 -EAPI=5
733 -
734 -PYTHON_COMPAT=( python2_7 )
735 -
736 -inherit eutils qt4-r2 fdo-mime python-single-r1 toolchain-funcs
737 -
738 -DESCRIPTION="Qt based clone of the Origin plotting package"
739 -HOMEPAGE="http://soft.proindependent.com/qtiplot.html
740 - http://www.staff.science.uu.nl/~zeven101/qtiplot.html"
741 -SRC_URI="
742 - https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2
743 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-origin.patch.bz2"
744 -
745 -LICENSE="GPL-2 GPL-3"
746 -SLOT="0"
747 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
748 -IUSE="bindist doc mono latex python"
749 -
750 -LANGS="cn cz de es fr ja ro ru sv"
751 -for l in ${LANGS}; do
752 - lu=${l/cz/cs}
753 - lu=${lu/cn/zh_CN}
754 - IUSE="${IUSE} linguas_${lu}"
755 -done
756 -
757 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
758 -
759 -# qwtplot3d much modified from original upstream
760 -# >=x11-libs/qwt-5.3 they are using trunk checkouts
761 -CDEPEND="
762 - media-libs/libemf
763 - dev-qt/qthelp:4
764 - dev-qt/qtgui:4
765 - dev-qt/qtopengl:4
766 - dev-qt/qt3support:4
767 - dev-qt/qthelp:4[compat]
768 - dev-qt/qtsvg:4
769 - >=x11-libs/gl2ps-1.3.5[png]
770 - >=dev-cpp/muParser-1.32
771 - >=dev-libs/boost-1.35.0:=
772 - dev-libs/quazip[qt4]
773 - media-libs/libpng:=
774 - sci-libs/alglib:=
775 - <sci-libs/gsl-2
776 - sci-libs/tamu_anova
777 - latex? ( dev-tex/qtexengine )
778 - mono? ( dev-dotnet/libgdiplus )
779 - python? ( ${PYTHON_DEPS} )"
780 -DEPEND="${CDEPEND}
781 - virtual/pkgconfig
782 - python? ( >=dev-python/sip-4.9[${PYTHON_USEDEP}] )
783 - doc? (
784 - >=app-text/docbook-sgml-utils-0.6.14-r1
785 - >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
786 -
787 -RDEPEND="${CDEPEND}
788 - python? ( dev-python/PyQt4[X,${PYTHON_USEDEP}] )"
789 -
790 -PATCHES=(
791 - "${DISTDIR}"/${P}-origin.patch.bz2
792 - "${FILESDIR}"/${P}-origin-2.patch
793 - "${FILESDIR}"/${P}-qt48.patch
794 - "${FILESDIR}"/${PN}-0.9.8.8-system-gl2ps.patch
795 - "${FILESDIR}"/${PN}-0.9.7.10-dont-install-qwt.patch
796 - "${FILESDIR}"/${PN}-0.9.8.6-gold.patch
797 - "${FILESDIR}"/${PN}-0.9.8.7-kde.patch
798 - "${FILESDIR}"/${P}-set_col_values.patch
799 - "${FILESDIR}"/${P}-adopt_to_alglib3.patch
800 - "${FILESDIR}"/${P}-crasher_without_internet.patch
801 - "${FILESDIR}"/${P}-private.patch
802 - "${FILESDIR}"/${P}-sip-4.15.patch
803 - "${FILESDIR}"/${P}-PyQt4-4.10.patch
804 - )
805 -
806 -RESTRICT="!bindist? ( bindist )"
807 -
808 -pkg_setup() {
809 - use python && python-single-r1_pkg_setup
810 -}
811 -
812 -src_prepare() {
813 - local mylibs
814 -
815 - qt4-r2_src_prepare
816 -
817 - rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost,alglib} || die
818 - sed \
819 - -e "s:dll:static:g" \
820 - -e "/INSTALLS/d" \
821 - -i 3rdparty/qwtplot3d/*.pro
822 -
823 - mylibs="${mylibs} -lquazip"
824 - use mono && mylibs="${mylibs} $($(tc-getPKG_CONFIG) --libs libgdiplus)"
825 -
826 - # Check build.conf for changes on bump.
827 - cat > build.conf <<-EOF
828 - # Automatically generated by Gentoo ebuild
829 - isEmpty( QTI_ROOT ) {
830 - message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
831 - }
832 -
833 - MUPARSER_LIBS = $($(tc-getPKG_CONFIG) --libs muparser)
834 - GSL_LIBS = $($(tc-getPKG_CONFIG) --libs gsl)
835 - QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
836 - QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
837 - QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
838 - QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
839 - EMF_INCLUDEPATH = "${EPREFIX}/usr/include/libEMF
840 - SYS_LIBS = -lgl2ps ${mylibs} -lGLU
841 -
842 - LUPDATE = lupdate
843 - LRELEASE = lrelease
844 -
845 - SCRIPTING_LANGS += muParser
846 -
847 - CONFIG += release
848 - CONFIG += CustomInstall
849 - DEFINES += SCRIPTING_CONSOLE
850 -
851 - LIBPNG_LIBS = $($(tc-getPKG_CONFIG) --libs libpng)
852 - TAMUANOVA_LIBS = -ltamuanova
853 - TAMUANOVA_INCLUDEPATH = "${EPREFIX}/usr/include/tamu_anova"
854 - ALGLIB_LIBS = -lalglib
855 -
856 - EOF
857 -
858 - use bindist && echo "DEFINES += QTIPLOT_SUPPORT" >> build.conf
859 - use bindist || echo "DEFINES += QTIPLOT_PRO" >> build.conf
860 - use python && echo "SCRIPTING_LANGS += Python" >> build.conf
861 - use python && echo "PYTHON = ${EPYTHON}" >> build.conf
862 - use latex && echo "TEX_ENGINE_LIBS = -lQTeXEngine" >> build.conf
863 -
864 - sed \
865 - -e "s:doc/${PN}/manual:doc/${PN}/html:" \
866 - -e '/INSTALLS.*documentation/d' \
867 - -e '/INSTALLS.*manual/d' \
868 - -e "/INSTALLBASE/s: /usr: ${EPREFIX}/usr:g" \
869 - -e 's:/usr/local/qtiplot:$$INSTALLBASE:g' \
870 - -i qtiplot/qtiplot.pro || die
871 -
872 - if use python; then
873 - sed \
874 - -e "s:/usr/local/${PN}:${EPREFIX}$(python_get_sitedir)/qtiplot:" \
875 - -i qtiplot/qtiplot.pro || die
876 - fi
877 -
878 - sed \
879 - -e "/^target.path/s:/usr:${EPREFIX}/usr:g" \
880 - -i fitPlugins/*/*.pro || die
881 -
882 - sed -e '/manual/d' -i qtiplot.pro || die
883 -
884 - sed -e "s:QTIPLOT_PRO:QTIPLOT_PROFESSIONAL:g" -i qtiplot/src/core/main.cpp || die
885 -
886 - # Drop langs only if LINGUAS is not empty
887 - if [[ -n ${LINGUAS} ]]; then
888 - for l in ${LANGS}; do
889 - lu=${l/cz/cs}
890 - lu=${lu/cn/zh_CN}
891 - use linguas_${lu} || \
892 - sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
893 - -i qtiplot/qtiplot.pro || die
894 - done
895 - fi
896 -
897 - sed \
898 - -e "s:d_python_config_folder + \":\"${EPREFIX}/usr/share/qtiplot:g" \
899 - -i qtiplot/src/core/ApplicationWindow.cpp || die
900 -
901 - chmod -x qtiplot/qti_wordlist.txt
902 -
903 - # sed out debian paths
904 - sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
905 - -i manual/qtiplot.dsl || die
906 - sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
907 - -i manual/qtiplot_html.xsl || die
908 -
909 - sed \
910 - -e '1i#define OF(x) x' \
911 - -i 3rdparty/zlib/minigzip.c || die
912 -}
913 -
914 -src_configure() {
915 - use amd64 && export QMAKESPEC="linux-g++-64"
916 - eqmake4
917 -}
918 -
919 -src_compile() {
920 - emake
921 - lrelease qtiplot/qtiplot.pro || die
922 - if use doc; then
923 - cd manual
924 - emake web
925 - fi
926 -}
927 -
928 -src_install() {
929 - qt4-r2_src_install
930 -
931 - insinto /usr/share/qtiplot
932 - doins qtiplot/qti_wordlist.txt
933 -
934 - newicon qtiplot_logo.png qtiplot.png
935 - make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
936 -
937 - use doc && dohtml -r manual/html/*
938 -
939 - use python && python_optimize
940 -
941 - if [[ -n ${LINGUAS} ]]; then
942 - insinto /usr/share/${PN}/translations
943 - for l in ${LANGS}; do
944 - lu=${l/cz/cs}
945 - lu=${lu/cn/zh_CN}
946 - use linguas_${lu} && \
947 - doins qtiplot/translations/qtiplot_${l}.qm
948 - done
949 - fi
950 -}
951 -
952 -pkg_postinst() {
953 - if use python; then
954 - optfeature "Enhanced python support" \
955 - dev-python/pygsl dev-python/rpy sci-libs/scipy dev-python/sympy
956 - fi
957 -
958 - fdo-mime_desktop_database_update
959 -}
960 -
961 -pkg_postrm() {
962 - fdo-mime_desktop_database_update
963 -}
964
965 diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild
966 deleted file mode 100644
967 index 65c127fe41f..00000000000
968 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r3.ebuild
969 +++ /dev/null
970 @@ -1,238 +0,0 @@
971 -# Copyright 1999-2017 Gentoo Foundation
972 -# Distributed under the terms of the GNU General Public License v2
973 -
974 -EAPI=5
975 -
976 -PYTHON_COMPAT=( python2_7 )
977 -
978 -inherit eutils qt4-r2 fdo-mime python-single-r1 toolchain-funcs
979 -
980 -DESCRIPTION="Qt based clone of the Origin plotting package"
981 -HOMEPAGE="http://soft.proindependent.com/qtiplot.html
982 - http://www.staff.science.uu.nl/~zeven101/qtiplot.html"
983 -SRC_URI="
984 - https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2
985 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-origin.patch.bz2"
986 -
987 -LICENSE="GPL-2 GPL-3"
988 -SLOT="0"
989 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
990 -IUSE="bindist doc mono latex python"
991 -
992 -LANGS="cn cz de es fr ja ro ru sv"
993 -for l in ${LANGS}; do
994 - lu=${l/cz/cs}
995 - lu=${lu/cn/zh_CN}
996 - IUSE="${IUSE} linguas_${lu}"
997 -done
998 -
999 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1000 -
1001 -# qwtplot3d much modified from original upstream
1002 -# >=x11-libs/qwt-5.3 they are using trunk checkouts
1003 -CDEPEND="
1004 - media-libs/libemf
1005 - dev-qt/qthelp:4
1006 - dev-qt/qtgui:4
1007 - dev-qt/qtopengl:4
1008 - dev-qt/qt3support:4
1009 - dev-qt/qthelp:4[compat]
1010 - dev-qt/qtsvg:4
1011 - >=x11-libs/gl2ps-1.3.5[png]
1012 - >=dev-cpp/muParser-1.32
1013 - >=dev-libs/boost-1.35.0:=
1014 - dev-libs/quazip[qt4]
1015 - media-libs/libpng:=
1016 - sci-libs/alglib:=
1017 - <sci-libs/gsl-2
1018 - sci-libs/tamu_anova
1019 - latex? ( dev-tex/qtexengine )
1020 - mono? ( dev-dotnet/libgdiplus )
1021 - python? (
1022 - ${PYTHON_DEPS}
1023 - >=dev-python/PyQt4-4.11.3[X,${PYTHON_USEDEP}]
1024 - )"
1025 -DEPEND="${CDEPEND}
1026 - virtual/pkgconfig
1027 - python? ( >=dev-python/sip-4.16.5[${PYTHON_USEDEP}] )
1028 - doc? (
1029 - >=app-text/docbook-sgml-utils-0.6.14-r1
1030 - >=app-text/docbook-xml-dtd-4.4-r2:4.4 )"
1031 -
1032 -RDEPEND="${CDEPEND}"
1033 -
1034 -PATCHES=(
1035 - "${DISTDIR}"/${P}-origin.patch.bz2
1036 - "${FILESDIR}"/${P}-origin-2.patch
1037 - "${FILESDIR}"/${P}-qt48.patch
1038 - "${FILESDIR}"/${PN}-0.9.8.8-system-gl2ps.patch
1039 - "${FILESDIR}"/${PN}-0.9.7.10-dont-install-qwt.patch
1040 - "${FILESDIR}"/${PN}-0.9.8.6-gold.patch
1041 - "${FILESDIR}"/${PN}-0.9.8.7-kde.patch
1042 - "${FILESDIR}"/${P}-set_col_values.patch
1043 - "${FILESDIR}"/${P}-adopt_to_alglib3.patch
1044 - "${FILESDIR}"/${P}-crasher_without_internet.patch
1045 - "${FILESDIR}"/${P}-private.patch
1046 - "${FILESDIR}"/${P}-sip-4.15.patch
1047 - "${FILESDIR}"/${P}-PyQt4-4.11.3.patch
1048 - "${FILESDIR}"/${P}-sip-4.19.patch
1049 -)
1050 -
1051 -RESTRICT="!bindist? ( bindist )"
1052 -
1053 -pkg_setup() {
1054 - use python && python-single-r1_pkg_setup
1055 -}
1056 -
1057 -src_prepare() {
1058 - local mylibs
1059 -
1060 - qt4-r2_src_prepare
1061 -
1062 - rm -rf 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost,alglib} || die
1063 - sed \
1064 - -e "s:dll:static:g" \
1065 - -e "/INSTALLS/d" \
1066 - -i 3rdparty/qwtplot3d/*.pro
1067 -
1068 - mylibs="${mylibs} -lquazip"
1069 - use mono && mylibs="${mylibs} $($(tc-getPKG_CONFIG) --libs libgdiplus)"
1070 -
1071 - # Check build.conf for changes on bump.
1072 - cat > build.conf <<-EOF
1073 - # Automatically generated by Gentoo ebuild
1074 - isEmpty( QTI_ROOT ) {
1075 - message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
1076 - }
1077 -
1078 - MUPARSER_LIBS = $($(tc-getPKG_CONFIG) --libs muparser)
1079 - GSL_LIBS = $($(tc-getPKG_CONFIG) --libs gsl)
1080 - QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
1081 - QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
1082 - QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
1083 - QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
1084 - EMF_INCLUDEPATH = "${EPREFIX}/usr/include/libEMF
1085 - SYS_LIBS = -lgl2ps ${mylibs} -lGLU
1086 -
1087 - LUPDATE = lupdate
1088 - LRELEASE = lrelease
1089 -
1090 - SCRIPTING_LANGS += muParser
1091 -
1092 - CONFIG += release
1093 - CONFIG += CustomInstall
1094 - DEFINES += SCRIPTING_CONSOLE
1095 -
1096 - LIBPNG_LIBS = $($(tc-getPKG_CONFIG) --libs libpng)
1097 - TAMUANOVA_LIBS = -ltamuanova
1098 - TAMUANOVA_INCLUDEPATH = "${EPREFIX}/usr/include/tamu_anova"
1099 - ALGLIB_LIBS = -lalglib
1100 -
1101 - EOF
1102 -
1103 - use bindist && echo "DEFINES += QTIPLOT_SUPPORT" >> build.conf
1104 - use bindist || echo "DEFINES += QTIPLOT_PRO" >> build.conf
1105 - use python && echo "SCRIPTING_LANGS += Python" >> build.conf
1106 - use python && echo "PYTHON = ${EPYTHON}" >> build.conf
1107 - use latex && echo "TEX_ENGINE_LIBS = -lQTeXEngine" >> build.conf
1108 -
1109 - sed \
1110 - -e "s:doc/${PN}/manual:doc/${PN}/html:" \
1111 - -e '/INSTALLS.*documentation/d' \
1112 - -e '/INSTALLS.*manual/d' \
1113 - -e "/INSTALLBASE/s: /usr: ${EPREFIX}/usr:g" \
1114 - -e 's:/usr/local/qtiplot:$$INSTALLBASE:g' \
1115 - -i qtiplot/qtiplot.pro || die
1116 -
1117 - if use python; then
1118 - sed \
1119 - -e "s:/usr/local/${PN}:${EPREFIX}$(python_get_sitedir)/qtiplot:" \
1120 - -i qtiplot/qtiplot.pro || die
1121 - fi
1122 -
1123 - sed \
1124 - -e "/^target.path/s:/usr:${EPREFIX}/usr:g" \
1125 - -i fitPlugins/*/*.pro || die
1126 -
1127 - sed -e '/manual/d' -i qtiplot.pro || die
1128 -
1129 - sed -e "s:QTIPLOT_PRO:QTIPLOT_PROFESSIONAL:g" -i qtiplot/src/core/main.cpp || die
1130 -
1131 - # Drop langs only if LINGUAS is not empty
1132 - if [[ -n ${LINGUAS} ]]; then
1133 - for l in ${LANGS}; do
1134 - lu=${l/cz/cs}
1135 - lu=${lu/cn/zh_CN}
1136 - use linguas_${lu} || \
1137 - sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
1138 - -i qtiplot/qtiplot.pro || die
1139 - done
1140 - fi
1141 -
1142 - sed \
1143 - -e "s:d_python_config_folder + \":\"${EPREFIX}/usr/share/qtiplot:g" \
1144 - -i qtiplot/src/core/ApplicationWindow.cpp || die
1145 -
1146 - chmod -x qtiplot/qti_wordlist.txt
1147 -
1148 - # sed out debian paths
1149 - sed -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
1150 - -i manual/qtiplot.dsl || die
1151 - sed -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
1152 - -i manual/qtiplot_html.xsl || die
1153 -
1154 - sed \
1155 - -e '1i#define OF(x) x' \
1156 - -i 3rdparty/zlib/minigzip.c || die
1157 -}
1158 -
1159 -src_configure() {
1160 - use amd64 && export QMAKESPEC="linux-g++-64"
1161 - eqmake4
1162 -}
1163 -
1164 -src_compile() {
1165 - emake
1166 - lrelease qtiplot/qtiplot.pro || die
1167 - if use doc; then
1168 - cd manual
1169 - emake web
1170 - fi
1171 -}
1172 -
1173 -src_install() {
1174 - qt4-r2_src_install
1175 -
1176 - insinto /usr/share/qtiplot
1177 - doins qtiplot/qti_wordlist.txt
1178 -
1179 - newicon qtiplot_logo.png qtiplot.png
1180 - make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
1181 -
1182 - use doc && dohtml -r manual/html/*
1183 -
1184 - use python && python_optimize
1185 -
1186 - if [[ -n ${LINGUAS} ]]; then
1187 - insinto /usr/share/${PN}/translations
1188 - for l in ${LANGS}; do
1189 - lu=${l/cz/cs}
1190 - lu=${lu/cn/zh_CN}
1191 - use linguas_${lu} && \
1192 - doins qtiplot/translations/qtiplot_${l}.qm
1193 - done
1194 - fi
1195 -}
1196 -
1197 -pkg_postinst() {
1198 - if use python; then
1199 - optfeature "Enhanced python support" \
1200 - dev-python/pygsl dev-python/rpy sci-libs/scipy dev-python/sympy
1201 - fi
1202 -
1203 - fdo-mime_desktop_database_update
1204 -}
1205 -
1206 -pkg_postrm() {
1207 - fdo-mime_desktop_database_update
1208 -}
1209
1210 diff --git a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild b/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild
1211 deleted file mode 100644
1212 index 42a68ecc39c..00000000000
1213 --- a/sci-visualization/qtiplot/qtiplot-0.9.8.9-r4.ebuild
1214 +++ /dev/null
1215 @@ -1,241 +0,0 @@
1216 -# Copyright 1999-2017 Gentoo Foundation
1217 -# Distributed under the terms of the GNU General Public License v2
1218 -
1219 -EAPI=6
1220 -
1221 -PYTHON_COMPAT=( python2_7 )
1222 -
1223 -inherit eutils qmake-utils python-single-r1 toolchain-funcs xdg
1224 -
1225 -DESCRIPTION="Qt based clone of the Origin plotting package"
1226 -HOMEPAGE="
1227 - http://soft.proindependent.com/qtiplot.html
1228 - http://www.staff.science.uu.nl/~zeven101/qtiplot.html"
1229 -SRC_URI="
1230 - https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.bz2
1231 - https://dev.gentoo.org/~jlec/distfiles/${P}-origin.patch.xz"
1232 -
1233 -LICENSE="GPL-2 GPL-3"
1234 -SLOT="0"
1235 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
1236 -IUSE="bindist doc mono latex python"
1237 -
1238 -LANGS="cn cz de es fr ja ro ru sv"
1239 -for l in ${LANGS}; do
1240 - lu=${l/cz/cs}
1241 - lu=${lu/cn/zh_CN}
1242 - IUSE="${IUSE} linguas_${lu}"
1243 -done
1244 -
1245 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
1246 -
1247 -# qwtplot3d much modified from original upstream
1248 -# >=x11-libs/qwt-5.3 they are using trunk checkouts
1249 -RDEPEND="
1250 - >=dev-cpp/muParser-1.32
1251 - >=dev-libs/boost-1.35.0:=
1252 - dev-libs/quazip[qt4]
1253 - dev-qt/qt3support:4
1254 - dev-qt/qtgui:4
1255 - dev-qt/qthelp:4
1256 - dev-qt/qthelp:4[compat]
1257 - dev-qt/qtopengl:4
1258 - dev-qt/qtsvg:4
1259 - media-libs/libemf
1260 - media-libs/libpng:=
1261 - sci-libs/alglib:=
1262 - >=sci-libs/gsl-2
1263 - sci-libs/tamu_anova
1264 - >=x11-libs/gl2ps-1.3.5[png]
1265 - latex? ( dev-tex/qtexengine )
1266 - mono? ( dev-dotnet/libgdiplus )
1267 - python? (
1268 - ${PYTHON_DEPS}
1269 - >=dev-python/PyQt4-4.11.3[X,${PYTHON_USEDEP}]
1270 - )
1271 -"
1272 -DEPEND="${RDEPEND}
1273 - virtual/pkgconfig
1274 - doc? (
1275 - >=app-text/docbook-sgml-utils-0.6.14-r1
1276 - >=app-text/docbook-xml-dtd-4.4-r2:4.4
1277 - )
1278 - python? ( >=dev-python/sip-4.16.5[${PYTHON_USEDEP}] )
1279 -"
1280 -
1281 -PATCHES=(
1282 - "${WORKDIR}"/${P}-origin.patch
1283 - "${FILESDIR}"/${P}-origin-2.patch
1284 - "${FILESDIR}"/${P}-qt48.patch
1285 - "${FILESDIR}"/${PN}-0.9.8.8-system-gl2ps.patch
1286 - "${FILESDIR}"/${PN}-0.9.7.10-dont-install-qwt.patch
1287 - "${FILESDIR}"/${PN}-0.9.8.6-gold.patch
1288 - "${FILESDIR}"/${PN}-0.9.8.7-kde.patch
1289 - "${FILESDIR}"/${P}-set_col_values.patch
1290 - "${FILESDIR}"/${P}-adopt_to_alglib3.patch
1291 - "${FILESDIR}"/${P}-crasher_without_internet.patch
1292 - "${FILESDIR}"/${P}-private.patch
1293 - "${FILESDIR}"/${P}-sip-4.15.patch
1294 - "${FILESDIR}"/${P}-PyQt4-4.11.3.patch
1295 - "${FILESDIR}"/${P}-gsl-2.patch
1296 - "${FILESDIR}"/${P}-sip-4.19.patch
1297 -)
1298 -
1299 -RESTRICT="!bindist? ( bindist )"
1300 -
1301 -pkg_setup() {
1302 - use python && python-single-r1_pkg_setup
1303 -}
1304 -
1305 -src_prepare() {
1306 - local mylibs
1307 -
1308 - xdg_src_prepare
1309 -
1310 - rm -rf \
1311 - 3rdparty/{liborigin,QTeXEngine,/qwtplot3d/3rdparty/gl2ps/,boost,alglib} \
1312 - || die
1313 - sed \
1314 - -e "s:dll:static:g" \
1315 - -e "/INSTALLS/d" \
1316 - -i 3rdparty/qwtplot3d/*.pro || die
1317 -
1318 - mylibs="${mylibs} -lquazip"
1319 - use mono && mylibs="${mylibs} $($(tc-getPKG_CONFIG) --libs libgdiplus)"
1320 -
1321 - # Check build.conf for changes on bump.
1322 - cat > build.conf <<-EOF
1323 - # Automatically generated by Gentoo ebuild
1324 - isEmpty( QTI_ROOT ) {
1325 - message( "each file including this config needs to set QTI_ROOT to the dir containing this file!" )
1326 - }
1327 -
1328 - MUPARSER_LIBS = $($(tc-getPKG_CONFIG) --libs muparser)
1329 - GSL_LIBS = $($(tc-getPKG_CONFIG) --libs gsl)
1330 - QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src
1331 - QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a
1332 - QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include
1333 - QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a
1334 - EMF_INCLUDEPATH = "${EPREFIX}"/usr/include/libEMF
1335 - SYS_LIBS = -lgl2ps ${mylibs} -lGLU
1336 -
1337 - LUPDATE = lupdate
1338 - LRELEASE = lrelease
1339 -
1340 - SCRIPTING_LANGS += muParser
1341 -
1342 - CONFIG += release
1343 - CONFIG += CustomInstall
1344 - DEFINES += SCRIPTING_CONSOLE
1345 -
1346 - LIBPNG_LIBS = $($(tc-getPKG_CONFIG) --libs libpng)
1347 - TAMUANOVA_LIBS = -ltamuanova
1348 - TAMUANOVA_INCLUDEPATH = "${EPREFIX}/usr/include/tamu_anova"
1349 - ALGLIB_LIBS = -lalglib
1350 -
1351 - EOF
1352 -
1353 - use bindist && echo "DEFINES += QTIPLOT_SUPPORT" >> build.conf
1354 - use bindist || echo "DEFINES += QTIPLOT_PRO" >> build.conf
1355 - use python && echo "SCRIPTING_LANGS += Python" >> build.conf
1356 - use python && echo "PYTHON = ${EPYTHON}" >> build.conf
1357 - use latex && echo "TEX_ENGINE_LIBS = -lQTeXEngine" >> build.conf
1358 -
1359 - sed \
1360 - -e "s:doc/${PN}/manual:doc/${PN}/html:" \
1361 - -e '/INSTALLS.*documentation/d' \
1362 - -e '/INSTALLS.*manual/d' \
1363 - -e "/INSTALLBASE/s: /usr: ${EPREFIX}/usr:g" \
1364 - -e 's:/usr/local/qtiplot:$$INSTALLBASE:g' \
1365 - -i qtiplot/qtiplot.pro || die
1366 -
1367 - if use python; then
1368 - sed \
1369 - -e "s:/usr/local/${PN}:${EPREFIX}$(python_get_sitedir)/qtiplot:" \
1370 - -i qtiplot/qtiplot.pro || die
1371 - fi
1372 -
1373 - sed \
1374 - -e "/^target.path/s:/usr:${EPREFIX}/usr:g" \
1375 - -i fitPlugins/*/*.pro || die
1376 -
1377 - sed -e '/manual/d' -i qtiplot.pro || die
1378 -
1379 - sed -e "s:QTIPLOT_PRO:QTIPLOT_PROFESSIONAL:g" -i qtiplot/src/core/main.cpp || die
1380 -
1381 - # Drop langs only if LINGUAS is not empty
1382 - if [[ -n ${LINGUAS} ]]; then
1383 - for l in ${LANGS}; do
1384 - lu=${l/cz/cs}
1385 - lu=${lu/cn/zh_CN}
1386 - use linguas_${lu} || \
1387 - sed -e "s:translations/qtiplot_${l}.[tq][sm]::" \
1388 - -i qtiplot/qtiplot.pro || die
1389 - done
1390 - fi
1391 -
1392 - sed \
1393 - -e "s:d_python_config_folder + \":\"${EPREFIX}/usr/share/qtiplot:g" \
1394 - -i qtiplot/src/core/ApplicationWindow.cpp || die
1395 -
1396 - chmod -x qtiplot/qti_wordlist.txt
1397 -
1398 - # sed out debian paths
1399 - sed \
1400 - -e 's:\(/usr/share/sgml/\)docbook/stylesheet/dsssl/modular\(/html/docbook.dsl\):\1stylesheets/dsssl/docbook\2:' \
1401 - -i manual/qtiplot.dsl || die
1402 - sed \
1403 - -e 's:\(/usr/share/\)xml/docbook/stylesheet/nwalsh\(/html/chunk.xsl\):\1sgml/docbook/xsl-stylesheets\2:' \
1404 - -i manual/qtiplot_html.xsl || die
1405 -
1406 - sed \
1407 - -e '1i#define OF(x) x' \
1408 - -i 3rdparty/zlib/minigzip.c || die
1409 -}
1410 -
1411 -src_configure() {
1412 - use amd64 && export QMAKESPEC="linux-g++-64"
1413 - eqmake4
1414 -}
1415 -
1416 -src_compile() {
1417 - default
1418 - lrelease qtiplot/qtiplot.pro || die
1419 - if use doc; then
1420 - cd manual || die
1421 - emake web
1422 - fi
1423 -}
1424 -
1425 -src_install() {
1426 - emake INSTALL_ROOT="${D}" install
1427 -
1428 - insinto /usr/share/qtiplot
1429 - doins qtiplot/qti_wordlist.txt
1430 -
1431 - newicon qtiplot_logo.png qtiplot.png
1432 - make_desktop_entry qtiplot "QtiPlot Scientific Plotting" qtiplot
1433 -
1434 - use doc && dodoc -r manual/html
1435 -
1436 - use python && python_optimize
1437 -
1438 - if [[ -n ${LINGUAS} ]]; then
1439 - insinto /usr/share/${PN}/translations
1440 - for l in ${LANGS}; do
1441 - lu=${l/cz/cs}
1442 - lu=${lu/cn/zh_CN}
1443 - use linguas_${lu} && \
1444 - doins qtiplot/translations/qtiplot_${l}.qm
1445 - done
1446 - fi
1447 -}
1448 -
1449 -pkg_postinst() {
1450 - if use python; then
1451 - optfeature "Enhanced python support" \
1452 - dev-python/pygsl dev-python/rpy sci-libs/scipy dev-python/sympy
1453 - fi
1454 -
1455 - xdg_pkg_postinst
1456 -}