diff options
author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2016-11-27 00:59:31 +0100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-12-01 01:20:10 +1100 |
commit | 656ea1f50c74b74e8b31bf4c355c18e612a2bfa6 (patch) | |
tree | 0e08e2602545fae8a04984220ae267921032ce5b /kde-apps | |
parent | kde-misc/kdirstat: 3.1.2 version bump (diff) | |
download | gentoo-656ea1f50c74b74e8b31bf4c355c18e612a2bfa6.tar.gz gentoo-656ea1f50c74b74e8b31bf4c355c18e612a2bfa6.tar.bz2 gentoo-656ea1f50c74b74e8b31bf4c355c18e612a2bfa6.zip |
kde-apps/cantor: Add missing DEPENDs, improve backends einfo
Gentoo-bug: 598926
Package-Manager: portage-2.3.0
Diffstat (limited to 'kde-apps')
-rw-r--r-- | kde-apps/cantor/cantor-16.08.3.ebuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/kde-apps/cantor/cantor-16.08.3.ebuild b/kde-apps/cantor/cantor-16.08.3.ebuild index d5fb0a628ea9..ace0c653c34d 100644 --- a/kde-apps/cantor/cantor-16.08.3.ebuild +++ b/kde-apps/cantor/cantor-16.08.3.ebuild @@ -28,6 +28,7 @@ RDEPEND=" $(add_frameworks_dep kcrash) $(add_frameworks_dep kdelibs4support) $(add_frameworks_dep ki18n) + $(add_frameworks_dep kiconthemes) $(add_frameworks_dep kio) $(add_frameworks_dep knewstuff) $(add_frameworks_dep kparts) @@ -36,6 +37,7 @@ RDEPEND=" $(add_frameworks_dep kwidgetsaddons) $(add_frameworks_dep kxmlgui) $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) $(add_qt_dep qtsvg) $(add_qt_dep qtwidgets) $(add_qt_dep qtxml) @@ -54,7 +56,21 @@ DEPEND="${RDEPEND} >=dev-cpp/eigen-2.0.3:2 " -RESTRICT="test" +RESTRICT+=" test" + +pkg_pretend() { + kde5_pkg_pretend + + if ! has_version sci-mathematics/maxima && ! has_version sci-mathematics/octave && \ + ! use analitza && ! use lua && ! use python && ! use qalculate && ! use R; then + einfo "You have decided to build ${PN} with no backend." + einfo "To have this application functional, please enable one of the backends via USE flag:" + einfo " analitza, lua, python, qalculate, R" + einfo "Alternatively, install one of these:" + einfo " # emerge sci-mathematics/maxima" + einfo " # emerge sci-mathematics/octave" + fi +} pkg_setup() { use python && python_setup @@ -80,16 +96,3 @@ src_configure() { ) kde5_src_configure } - -pkg_postinst() { - kde5_pkg_postinst - - if ! use analitza && ! use lua && ! use python && ! use qalculate && ! use R; then - echo - ewarn "You have decided to build ${PN} with no backend." - ewarn "To have this application functional, please do one of below:" - ewarn " # emerge -va1 '='${CATEGORY}/${P} with 'analitza', 'lua', 'python', 'qalculate' or 'R' USE flag enabled" - ewarn " # emerge -vaDu sci-mathematics/maxima" - echo - fi -} |