1 |
commit: 6e37c4ecb3d68e2ca3548900d1a80fd51fd0dfff |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 16:01:23 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 16:08:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e37c4ec |
7 |
|
8 |
x11-libs/qwt: 6.1.4 version bump, fix build w/ Qt 5.15 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/711168 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
x11-libs/qwt/Manifest | 1 + |
15 |
x11-libs/qwt/files/qwt-6.1.4-qt-5.15.patch | 304 +++++++++++++++++++++++++++++ |
16 |
x11-libs/qwt/qwt-6.1.4.ebuild | 130 ++++++++++++ |
17 |
3 files changed, 435 insertions(+) |
18 |
|
19 |
diff --git a/x11-libs/qwt/Manifest b/x11-libs/qwt/Manifest |
20 |
index 9486803efab..90ffa05af8b 100644 |
21 |
--- a/x11-libs/qwt/Manifest |
22 |
+++ b/x11-libs/qwt/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST qwt-6.1.3.tar.bz2 4245614 BLAKE2B 5461602702eb159c5c9131eb554d6a619f40c459432c3f32f98b55e4b659d37848fbc0691baeaf691155bae83f68b9c91d3fee430935dd0c1b29e6fceac7a36f SHA512 d4a73e9e7ddcb7c16c508920a298784935be2eddc8f7585993d9fffe1bb01e1787a0d5d7ea4f220398b94ea2b211a19009dccaeadce56a84410357124bcb051a |
25 |
+DIST qwt-6.1.4.tar.bz2 4227315 BLAKE2B dd7212adb3c8fda081b1feeeb9d59b3b087deb0ef56bdbc7bb95e01992e41d5d91065f0b8aaf3337e1c66d4ad431bfb313f9b04bb2e43915f4cb21fb65725e36 SHA512 6135ce47fd4f9ff5b705193fc1f7410cfd5a0b84931bb17db750f6a5486ae810c261dae32431bd52838c36eadee02487148e1efa71c465c63aa43062eec160da |
26 |
|
27 |
diff --git a/x11-libs/qwt/files/qwt-6.1.4-qt-5.15.patch b/x11-libs/qwt/files/qwt-6.1.4-qt-5.15.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..0ee4b1f9d17 |
30 |
--- /dev/null |
31 |
+++ b/x11-libs/qwt/files/qwt-6.1.4-qt-5.15.patch |
32 |
@@ -0,0 +1,304 @@ |
33 |
+From a5bdaa3b3a34b8a018fe67dfdd34bf8c890de2fa Mon Sep 17 00:00:00 2001 |
34 |
+From: Andreas Sturmlechner <asturm@g.o> |
35 |
+Date: Fri, 22 May 2020 17:56:55 +0200 |
36 |
+Subject: [PATCH] Fix build with Qt 5.15 (missing headers) |
37 |
+ |
38 |
+Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
39 |
+--- |
40 |
+ examples/dials/attitude_indicator.cpp | 1 + |
41 |
+ examples/itemeditor/editor.cpp | 2 ++ |
42 |
+ examples/sinusplot/sinusplot.cpp | 1 + |
43 |
+ playground/graphicscale/mainwindow.h | 1 + |
44 |
+ playground/symbols/symbols.cpp | 1 + |
45 |
+ src/qwt_compass_rose.cpp | 1 + |
46 |
+ src/qwt_dial_needle.cpp | 1 + |
47 |
+ src/qwt_graphic.h | 1 + |
48 |
+ src/qwt_null_paintdevice.cpp | 1 + |
49 |
+ src/qwt_null_paintdevice.h | 1 + |
50 |
+ src/qwt_painter.cpp | 1 + |
51 |
+ src/qwt_painter.h | 2 ++ |
52 |
+ src/qwt_painter_command.h | 2 ++ |
53 |
+ src/qwt_plot_canvas.cpp | 1 + |
54 |
+ src/qwt_plot_canvas.h | 1 + |
55 |
+ src/qwt_plot_glcanvas.cpp | 1 + |
56 |
+ src/qwt_plot_glcanvas.h | 2 ++ |
57 |
+ src/qwt_plot_panner.cpp | 2 ++ |
58 |
+ src/qwt_plot_renderer.cpp | 1 + |
59 |
+ src/qwt_plot_shapeitem.cpp | 3 +++ |
60 |
+ src/qwt_symbol.h | 2 ++ |
61 |
+ src/qwt_widget_overlay.cpp | 1 + |
62 |
+ 22 files changed, 30 insertions(+) |
63 |
+ |
64 |
+diff --git a/examples/dials/attitude_indicator.cpp b/examples/dials/attitude_indicator.cpp |
65 |
+index ea0d5ab..a01611e 100644 |
66 |
+--- a/examples/dials/attitude_indicator.cpp |
67 |
++++ b/examples/dials/attitude_indicator.cpp |
68 |
+@@ -3,6 +3,7 @@ |
69 |
+ #include <qwt_round_scale_draw.h> |
70 |
+ #include <qevent.h> |
71 |
+ #include <qpainter.h> |
72 |
++#include <qpainterpath.h> |
73 |
+ #include <qpolygon.h> |
74 |
+ |
75 |
+ AttitudeIndicatorNeedle::AttitudeIndicatorNeedle( const QColor &color ) |
76 |
+diff --git a/examples/itemeditor/editor.cpp b/examples/itemeditor/editor.cpp |
77 |
+index bd06372..c741b01 100644 |
78 |
+--- a/examples/itemeditor/editor.cpp |
79 |
++++ b/examples/itemeditor/editor.cpp |
80 |
+@@ -4,6 +4,8 @@ |
81 |
+ #include <qwt_scale_map.h> |
82 |
+ #include <qwt_plot_shapeitem.h> |
83 |
+ #include <qevent.h> |
84 |
++#include <qpainter.h> |
85 |
++#include <qpainterpath.h> |
86 |
+ |
87 |
+ class Overlay: public QwtWidgetOverlay |
88 |
+ { |
89 |
+diff --git a/examples/sinusplot/sinusplot.cpp b/examples/sinusplot/sinusplot.cpp |
90 |
+index 119fa4a..6a9bfe7 100644 |
91 |
+--- a/examples/sinusplot/sinusplot.cpp |
92 |
++++ b/examples/sinusplot/sinusplot.cpp |
93 |
+@@ -1,5 +1,6 @@ |
94 |
+ #include <qapplication.h> |
95 |
+ #include <qlayout.h> |
96 |
++#include <qpainterpath.h> |
97 |
+ #include <qwt_plot.h> |
98 |
+ #include <qwt_plot_marker.h> |
99 |
+ #include <qwt_plot_curve.h> |
100 |
+diff --git a/playground/graphicscale/mainwindow.h b/playground/graphicscale/mainwindow.h |
101 |
+index d284413..3b544de 100644 |
102 |
+--- a/playground/graphicscale/mainwindow.h |
103 |
++++ b/playground/graphicscale/mainwindow.h |
104 |
+@@ -2,6 +2,7 @@ |
105 |
+ #define MAIN_WINDOW_H |
106 |
+ |
107 |
+ #include <qmainwindow.h> |
108 |
++#include <qpainterpath.h> |
109 |
+ |
110 |
+ class Canvas; |
111 |
+ class QPainterPath; |
112 |
+diff --git a/playground/symbols/symbols.cpp b/playground/symbols/symbols.cpp |
113 |
+index f7b2ed6..5b9f56d 100644 |
114 |
+--- a/playground/symbols/symbols.cpp |
115 |
++++ b/playground/symbols/symbols.cpp |
116 |
+@@ -1,5 +1,6 @@ |
117 |
+ #include <qapplication.h> |
118 |
+ #include <qpainter.h> |
119 |
++#include <qpainterpath.h> |
120 |
+ #include <qbuffer.h> |
121 |
+ #ifdef QT_SVG_LIB |
122 |
+ #include <qsvggenerator.h> |
123 |
+diff --git a/src/qwt_compass_rose.cpp b/src/qwt_compass_rose.cpp |
124 |
+index 05f7039..fbd30fe 100644 |
125 |
+--- a/src/qwt_compass_rose.cpp |
126 |
++++ b/src/qwt_compass_rose.cpp |
127 |
+@@ -11,6 +11,7 @@ |
128 |
+ #include "qwt_point_polar.h" |
129 |
+ #include "qwt_painter.h" |
130 |
+ #include <qpainter.h> |
131 |
++#include <qpainterpath.h> |
132 |
+ |
133 |
+ static QPointF qwtIntersection( |
134 |
+ QPointF p11, QPointF p12, QPointF p21, QPointF p22 ) |
135 |
+diff --git a/src/qwt_dial_needle.cpp b/src/qwt_dial_needle.cpp |
136 |
+index 49dd44a..d98f68c 100644 |
137 |
+--- a/src/qwt_dial_needle.cpp |
138 |
++++ b/src/qwt_dial_needle.cpp |
139 |
+@@ -13,6 +13,7 @@ |
140 |
+ #include "qwt_painter.h" |
141 |
+ #include <qapplication.h> |
142 |
+ #include <qpainter.h> |
143 |
++#include <qpainterpath.h> |
144 |
+ |
145 |
+ #if QT_VERSION < 0x040601 |
146 |
+ #define qFastSin(x) qSin(x) |
147 |
+diff --git a/src/qwt_graphic.h b/src/qwt_graphic.h |
148 |
+index cbd41f9..6881ea9 100644 |
149 |
+--- a/src/qwt_graphic.h |
150 |
++++ b/src/qwt_graphic.h |
151 |
+@@ -14,6 +14,7 @@ |
152 |
+ #include "qwt_null_paintdevice.h" |
153 |
+ #include <qmetatype.h> |
154 |
+ #include <qimage.h> |
155 |
++#include <qpainterpath.h> |
156 |
+ #include <qpixmap.h> |
157 |
+ |
158 |
+ class QwtPainterCommand; |
159 |
+diff --git a/src/qwt_null_paintdevice.cpp b/src/qwt_null_paintdevice.cpp |
160 |
+index 3baf0e9..468a838 100644 |
161 |
+--- a/src/qwt_null_paintdevice.cpp |
162 |
++++ b/src/qwt_null_paintdevice.cpp |
163 |
+@@ -9,6 +9,7 @@ |
164 |
+ |
165 |
+ #include "qwt_null_paintdevice.h" |
166 |
+ #include <qpaintengine.h> |
167 |
++#include <qpainterpath.h> |
168 |
+ #include <qpixmap.h> |
169 |
+ |
170 |
+ class QwtNullPaintDevice::PrivateData |
171 |
+diff --git a/src/qwt_null_paintdevice.h b/src/qwt_null_paintdevice.h |
172 |
+index e4e9cad..b804429 100644 |
173 |
+--- a/src/qwt_null_paintdevice.h |
174 |
++++ b/src/qwt_null_paintdevice.h |
175 |
+@@ -13,6 +13,7 @@ |
176 |
+ #include "qwt_global.h" |
177 |
+ #include <qpaintdevice.h> |
178 |
+ #include <qpaintengine.h> |
179 |
++#include <qpainterpath.h> |
180 |
+ |
181 |
+ /*! |
182 |
+ \brief A null paint device doing nothing |
183 |
+diff --git a/src/qwt_painter.cpp b/src/qwt_painter.cpp |
184 |
+index 7959fe5..626677f 100644 |
185 |
+--- a/src/qwt_painter.cpp |
186 |
++++ b/src/qwt_painter.cpp |
187 |
+@@ -17,6 +17,7 @@ |
188 |
+ #include <qframe.h> |
189 |
+ #include <qrect.h> |
190 |
+ #include <qpainter.h> |
191 |
++#include <qpainterpath.h> |
192 |
+ #include <qpalette.h> |
193 |
+ #include <qpaintdevice.h> |
194 |
+ #include <qpixmap.h> |
195 |
+diff --git a/src/qwt_painter.h b/src/qwt_painter.h |
196 |
+index c0a0ff7..bcbe289 100644 |
197 |
+--- a/src/qwt_painter.h |
198 |
++++ b/src/qwt_painter.h |
199 |
+@@ -16,6 +16,8 @@ |
200 |
+ #include <qrect.h> |
201 |
+ #include <qpen.h> |
202 |
+ #include <qline.h> |
203 |
++#include <qpainter.h> |
204 |
++#include <qpainterpath.h> |
205 |
+ #include <qpalette.h> |
206 |
+ |
207 |
+ class QPainter; |
208 |
+diff --git a/src/qwt_painter_command.h b/src/qwt_painter_command.h |
209 |
+index a2f509a..a49ee52 100644 |
210 |
+--- a/src/qwt_painter_command.h |
211 |
++++ b/src/qwt_painter_command.h |
212 |
+@@ -12,6 +12,8 @@ |
213 |
+ |
214 |
+ #include "qwt_global.h" |
215 |
+ #include <qpaintengine.h> |
216 |
++#include <qpainter.h> |
217 |
++#include <qpainterpath.h> |
218 |
+ #include <qpixmap.h> |
219 |
+ #include <qimage.h> |
220 |
+ #include <qpolygon.h> |
221 |
+diff --git a/src/qwt_plot_canvas.cpp b/src/qwt_plot_canvas.cpp |
222 |
+index 9438f15..bfe660d 100644 |
223 |
+--- a/src/qwt_plot_canvas.cpp |
224 |
++++ b/src/qwt_plot_canvas.cpp |
225 |
+@@ -13,6 +13,7 @@ |
226 |
+ #include "qwt_math.h" |
227 |
+ #include "qwt_plot.h" |
228 |
+ #include <qpainter.h> |
229 |
++#include <qpainterpath.h> |
230 |
+ #include <qstyle.h> |
231 |
+ #include <qstyleoption.h> |
232 |
+ #include <qpaintengine.h> |
233 |
+diff --git a/src/qwt_plot_canvas.h b/src/qwt_plot_canvas.h |
234 |
+index c79e4e4..90a32ce 100644 |
235 |
+--- a/src/qwt_plot_canvas.h |
236 |
++++ b/src/qwt_plot_canvas.h |
237 |
+@@ -12,6 +12,7 @@ |
238 |
+ |
239 |
+ #include "qwt_global.h" |
240 |
+ #include <qframe.h> |
241 |
++#include <qpainter.h> |
242 |
+ #include <qpainterpath.h> |
243 |
+ |
244 |
+ class QwtPlot; |
245 |
+diff --git a/src/qwt_plot_glcanvas.cpp b/src/qwt_plot_glcanvas.cpp |
246 |
+index 996c0ad..6975863 100644 |
247 |
+--- a/src/qwt_plot_glcanvas.cpp |
248 |
++++ b/src/qwt_plot_glcanvas.cpp |
249 |
+@@ -12,6 +12,7 @@ |
250 |
+ #include "qwt_painter.h" |
251 |
+ #include <qevent.h> |
252 |
+ #include <qpainter.h> |
253 |
++#include <qpainterpath.h> |
254 |
+ #include <qdrawutil.h> |
255 |
+ #include <qstyle.h> |
256 |
+ #include <qstyleoption.h> |
257 |
+diff --git a/src/qwt_plot_glcanvas.h b/src/qwt_plot_glcanvas.h |
258 |
+index 7ca9b5a..a6c01e0 100644 |
259 |
+--- a/src/qwt_plot_glcanvas.h |
260 |
++++ b/src/qwt_plot_glcanvas.h |
261 |
+@@ -13,6 +13,8 @@ |
262 |
+ #include "qwt_global.h" |
263 |
+ #include <qframe.h> |
264 |
+ #include <qgl.h> |
265 |
++#include <qpainter.h> |
266 |
++#include <qpainterpath.h> |
267 |
+ |
268 |
+ class QwtPlot; |
269 |
+ |
270 |
+diff --git a/src/qwt_plot_panner.cpp b/src/qwt_plot_panner.cpp |
271 |
+index b7daa05..2f31d05 100644 |
272 |
+--- a/src/qwt_plot_panner.cpp |
273 |
++++ b/src/qwt_plot_panner.cpp |
274 |
+@@ -14,6 +14,8 @@ |
275 |
+ #include <qbitmap.h> |
276 |
+ #include <qstyle.h> |
277 |
+ #include <qstyleoption.h> |
278 |
++#include <qpainter.h> |
279 |
++#include <qpainterpath.h> |
280 |
+ |
281 |
+ #if QT_VERSION >= 0x050000 |
282 |
+ #if QT_VERSION < 0x050100 |
283 |
+diff --git a/src/qwt_plot_renderer.cpp b/src/qwt_plot_renderer.cpp |
284 |
+index 549c4bc..71cadec 100644 |
285 |
+--- a/src/qwt_plot_renderer.cpp |
286 |
++++ b/src/qwt_plot_renderer.cpp |
287 |
+@@ -20,6 +20,7 @@ |
288 |
+ #include "qwt_math.h" |
289 |
+ |
290 |
+ #include <qpainter.h> |
291 |
++#include <qpainterpath.h> |
292 |
+ #include <qtransform.h> |
293 |
+ #include <qprinter.h> |
294 |
+ #include <qfiledialog.h> |
295 |
+diff --git a/src/qwt_plot_shapeitem.cpp b/src/qwt_plot_shapeitem.cpp |
296 |
+index db7896b..09efd95 100644 |
297 |
+--- a/src/qwt_plot_shapeitem.cpp |
298 |
++++ b/src/qwt_plot_shapeitem.cpp |
299 |
+@@ -13,6 +13,9 @@ |
300 |
+ #include "qwt_curve_fitter.h" |
301 |
+ #include "qwt_clipper.h" |
302 |
+ |
303 |
++#include <qpainter.h> |
304 |
++#include <qpainterpath.h> |
305 |
++ |
306 |
+ static QPainterPath qwtTransformPath( const QwtScaleMap &xMap, |
307 |
+ const QwtScaleMap &yMap, const QPainterPath &path, bool doAlign ) |
308 |
+ { |
309 |
+diff --git a/src/qwt_symbol.h b/src/qwt_symbol.h |
310 |
+index 538778d..2961ebe 100644 |
311 |
+--- a/src/qwt_symbol.h |
312 |
++++ b/src/qwt_symbol.h |
313 |
+@@ -11,6 +11,8 @@ |
314 |
+ #define QWT_SYMBOL_H |
315 |
+ |
316 |
+ #include "qwt_global.h" |
317 |
++#include <qpainter.h> |
318 |
++#include <qpainterpath.h> |
319 |
+ #include <qpolygon.h> |
320 |
+ |
321 |
+ class QPainter; |
322 |
+diff --git a/src/qwt_widget_overlay.cpp b/src/qwt_widget_overlay.cpp |
323 |
+index 5974413..fa6da48 100644 |
324 |
+--- a/src/qwt_widget_overlay.cpp |
325 |
++++ b/src/qwt_widget_overlay.cpp |
326 |
+@@ -10,6 +10,7 @@ |
327 |
+ #include "qwt_widget_overlay.h" |
328 |
+ #include "qwt_painter.h" |
329 |
+ #include <qpainter.h> |
330 |
++#include <qpainterpath.h> |
331 |
+ #include <qpaintengine.h> |
332 |
+ #include <qimage.h> |
333 |
+ #include <qevent.h> |
334 |
+-- |
335 |
+2.26.2 |
336 |
+ |
337 |
|
338 |
diff --git a/x11-libs/qwt/qwt-6.1.4.ebuild b/x11-libs/qwt/qwt-6.1.4.ebuild |
339 |
new file mode 100644 |
340 |
index 00000000000..de7c9031761 |
341 |
--- /dev/null |
342 |
+++ b/x11-libs/qwt/qwt-6.1.4.ebuild |
343 |
@@ -0,0 +1,130 @@ |
344 |
+# Copyright 1999-2020 Gentoo Authors |
345 |
+# Distributed under the terms of the GNU General Public License v2 |
346 |
+ |
347 |
+EAPI=7 |
348 |
+ |
349 |
+inherit qmake-utils |
350 |
+ |
351 |
+DESCRIPTION="2D plotting library for Qt5" |
352 |
+HOMEPAGE="https://qwt.sourceforge.net/" |
353 |
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" |
354 |
+ |
355 |
+LICENSE="qwt mathml? ( LGPL-2.1 Nokia-Qt-LGPL-Exception-1.1 )" |
356 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
357 |
+SLOT="6/1.4" |
358 |
+IUSE="designer doc examples mathml opengl svg" |
359 |
+ |
360 |
+DEPEND=" |
361 |
+ dev-qt/qtconcurrent:5 |
362 |
+ dev-qt/qtcore:5 |
363 |
+ dev-qt/qtgui:5 |
364 |
+ dev-qt/qtprintsupport:5 |
365 |
+ dev-qt/qtwidgets:5 |
366 |
+ designer? ( dev-qt/designer:5 ) |
367 |
+ opengl? ( |
368 |
+ dev-qt/qtopengl:5 |
369 |
+ virtual/opengl |
370 |
+ ) |
371 |
+ svg? ( dev-qt/qtsvg:5 ) |
372 |
+" |
373 |
+RDEPEND="${DEPEND}" |
374 |
+ |
375 |
+DOCS=( CHANGES-6.1 README ) |
376 |
+ |
377 |
+PATCHES=( |
378 |
+ "${FILESDIR}"/${PN}-6.0.2-invalid-read.patch |
379 |
+ "${FILESDIR}"/${PN}-6.1.1-pc-destdir.patch |
380 |
+ "${FILESDIR}"/${P}-qt-5.15.patch # trunk |
381 |
+) |
382 |
+ |
383 |
+src_prepare() { |
384 |
+ default |
385 |
+ |
386 |
+ cat > qwtconfig.pri <<-EOF |
387 |
+ QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)" |
388 |
+ QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6" |
389 |
+ QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}" |
390 |
+ QWT_CONFIG += QwtPlot QwtWidgets QwtPkgConfig |
391 |
+ VERSION = ${PV/_*} |
392 |
+ QWT_VERSION = ${PV/_*} |
393 |
+ EOF |
394 |
+ |
395 |
+ use designer && echo "QWT_CONFIG += QwtDesigner" >> qwtconfig.pri |
396 |
+ use mathml && echo "QWT_CONFIG += QwtMathML" >> qwtconfig.pri |
397 |
+ use opengl && echo "QWT_CONFIG += QwtOpenGL" >> qwtconfig.pri |
398 |
+ use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri |
399 |
+ |
400 |
+ cat > qwtbuild.pri <<-EOF |
401 |
+ QWT_CONFIG += qt warn_on thread release no_keywords |
402 |
+ EOF |
403 |
+ |
404 |
+ echo "QWT_CONFIG += QwtDll" >> qwtconfig.pri |
405 |
+ |
406 |
+ cat >> qwtconfig.pri <<-EOF |
407 |
+ QWT_INSTALL_PLUGINS = "${EPREFIX}$(qt5_get_plugindir)/designer" |
408 |
+ QWT_INSTALL_FEATURES = "${EPREFIX}$(qt5_get_mkspecsdir)/features" |
409 |
+ EOF |
410 |
+ sed \ |
411 |
+ -e 's/target doc/target/' \ |
412 |
+ -e "/^TARGET/s:(qwt):(qwt6-qt5):g" \ |
413 |
+ -e "/^TARGET/s:qwt):qwt6-qt5):g" \ |
414 |
+ -i src/src.pro || die |
415 |
+ |
416 |
+ sed \ |
417 |
+ -e '/qwtAddLibrary/s:(qwt):(qwt6-qt5):g' \ |
418 |
+ -e '/qwtAddLibrary/s:qwt):qwt6-qt5):g' \ |
419 |
+ -i qwt.prf designer/designer.pro examples/examples.pri \ |
420 |
+ textengines/mathml/qwtmathml.prf textengines/textengines.pri || die |
421 |
+} |
422 |
+ |
423 |
+src_configure() { |
424 |
+ eqmake5 |
425 |
+} |
426 |
+ |
427 |
+src_compile() { |
428 |
+ default |
429 |
+} |
430 |
+ |
431 |
+src_test() { |
432 |
+ cd examples || die |
433 |
+ eqmake5 examples.pro |
434 |
+ emake |
435 |
+} |
436 |
+ |
437 |
+src_install() { |
438 |
+ emake INSTALL_ROOT="${D}" install |
439 |
+ |
440 |
+ if use mathml; then |
441 |
+ sed \ |
442 |
+ -e "s: -L\"${WORKDIR}\".* -lqwt6: -lqwt6:g" \ |
443 |
+ -i "${ED}"/usr/$(get_libdir)/pkgconfig/qwtmathml.pc || die |
444 |
+ fi |
445 |
+ |
446 |
+ if use doc; then |
447 |
+ local HTML_DOCS=( doc/html/. ) |
448 |
+ else |
449 |
+ rm -r "${ED}"/usr/share/doc/${PF}/html || die |
450 |
+ fi |
451 |
+ |
452 |
+ einstalldocs |
453 |
+ |
454 |
+ mkdir -p "${ED}"/usr/share/man/ || die |
455 |
+ mv "${ED}"/usr/share/doc/${PF}/man/man3 "${ED}"/usr/share/man/ && \ |
456 |
+ rmdir "${ED}"/usr/share/doc/${PF}/man || die |
457 |
+ |
458 |
+ if use examples; then |
459 |
+ # don't build examples - fix the qt files to build once installed |
460 |
+ cat > examples/examples.pri <<-EOF |
461 |
+ include( qwtconfig.pri ) |
462 |
+ TEMPLATE = app |
463 |
+ MOC_DIR = moc |
464 |
+ INCLUDEPATH += "${EPREFIX}/usr/include/qwt6" |
465 |
+ DEPENDPATH += "${EPREFIX}/usr/include/qwt6" |
466 |
+ LIBS += -lqwt6 |
467 |
+ EOF |
468 |
+ sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die |
469 |
+ cp *.pri examples/ || die |
470 |
+ insinto /usr/share/${PN}6 |
471 |
+ doins -r examples |
472 |
+ fi |
473 |
+} |