From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0233C1395E2 for ; Wed, 30 Nov 2016 14:20:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F7B1E0B81; Wed, 30 Nov 2016 14:20:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24535E0B81 for ; Wed, 30 Nov 2016 14:20:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC391340FA4 for ; Wed, 30 Nov 2016 14:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D7F74A5 for ; Wed, 30 Nov 2016 14:20:22 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1480515610.656ea1f50c74b74e8b31bf4c355c18e612a2bfa6.kensington@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/cantor/ X-VCS-Repository: repo/gentoo X-VCS-Files: kde-apps/cantor/cantor-16.08.3.ebuild X-VCS-Directories: kde-apps/cantor/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 656ea1f50c74b74e8b31bf4c355c18e612a2bfa6 X-VCS-Branch: master Date: Wed, 30 Nov 2016 14:20:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2f55dfbc-9420-421f-99e9-a09519e950ac X-Archives-Hash: 9e6ef8565cfc4af0dc19f61900b385ec commit: 656ea1f50c74b74e8b31bf4c355c18e612a2bfa6 Author: Andreas Sturmlechner gmail com> AuthorDate: Sat Nov 26 23:59:31 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Wed Nov 30 14:20:10 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=656ea1f5 kde-apps/cantor: Add missing DEPENDs, improve backends einfo Gentoo-bug: 598926 Package-Manager: portage-2.3.0 kde-apps/cantor/cantor-16.08.3.ebuild | 31 +++++++++++++++++-------------- 1 file 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 d5fb0a6..ace0c65 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 -}