1 |
commit: 656ea1f50c74b74e8b31bf4c355c18e612a2bfa6 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Nov 26 23:59:31 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 30 14:20:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=656ea1f5 |
7 |
|
8 |
kde-apps/cantor: Add missing DEPENDs, improve backends einfo |
9 |
|
10 |
Gentoo-bug: 598926 |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
kde-apps/cantor/cantor-16.08.3.ebuild | 31 +++++++++++++++++-------------- |
15 |
1 file changed, 17 insertions(+), 14 deletions(-) |
16 |
|
17 |
diff --git a/kde-apps/cantor/cantor-16.08.3.ebuild b/kde-apps/cantor/cantor-16.08.3.ebuild |
18 |
index d5fb0a6..ace0c65 100644 |
19 |
--- a/kde-apps/cantor/cantor-16.08.3.ebuild |
20 |
+++ b/kde-apps/cantor/cantor-16.08.3.ebuild |
21 |
@@ -28,6 +28,7 @@ RDEPEND=" |
22 |
$(add_frameworks_dep kcrash) |
23 |
$(add_frameworks_dep kdelibs4support) |
24 |
$(add_frameworks_dep ki18n) |
25 |
+ $(add_frameworks_dep kiconthemes) |
26 |
$(add_frameworks_dep kio) |
27 |
$(add_frameworks_dep knewstuff) |
28 |
$(add_frameworks_dep kparts) |
29 |
@@ -36,6 +37,7 @@ RDEPEND=" |
30 |
$(add_frameworks_dep kwidgetsaddons) |
31 |
$(add_frameworks_dep kxmlgui) |
32 |
$(add_qt_dep qtgui) |
33 |
+ $(add_qt_dep qtprintsupport) |
34 |
$(add_qt_dep qtsvg) |
35 |
$(add_qt_dep qtwidgets) |
36 |
$(add_qt_dep qtxml) |
37 |
@@ -54,7 +56,21 @@ DEPEND="${RDEPEND} |
38 |
>=dev-cpp/eigen-2.0.3:2 |
39 |
" |
40 |
|
41 |
-RESTRICT="test" |
42 |
+RESTRICT+=" test" |
43 |
+ |
44 |
+pkg_pretend() { |
45 |
+ kde5_pkg_pretend |
46 |
+ |
47 |
+ if ! has_version sci-mathematics/maxima && ! has_version sci-mathematics/octave && \ |
48 |
+ ! use analitza && ! use lua && ! use python && ! use qalculate && ! use R; then |
49 |
+ einfo "You have decided to build ${PN} with no backend." |
50 |
+ einfo "To have this application functional, please enable one of the backends via USE flag:" |
51 |
+ einfo " analitza, lua, python, qalculate, R" |
52 |
+ einfo "Alternatively, install one of these:" |
53 |
+ einfo " # emerge sci-mathematics/maxima" |
54 |
+ einfo " # emerge sci-mathematics/octave" |
55 |
+ fi |
56 |
+} |
57 |
|
58 |
pkg_setup() { |
59 |
use python && python_setup |
60 |
@@ -80,16 +96,3 @@ src_configure() { |
61 |
) |
62 |
kde5_src_configure |
63 |
} |
64 |
- |
65 |
-pkg_postinst() { |
66 |
- kde5_pkg_postinst |
67 |
- |
68 |
- if ! use analitza && ! use lua && ! use python && ! use qalculate && ! use R; then |
69 |
- echo |
70 |
- ewarn "You have decided to build ${PN} with no backend." |
71 |
- ewarn "To have this application functional, please do one of below:" |
72 |
- ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'lua', 'python', 'qalculate' or 'R' USE flag enabled" |
73 |
- ewarn " # emerge -vaDu sci-mathematics/maxima" |
74 |
- echo |
75 |
- fi |
76 |
-} |