commit:     57a26f6e4751b10cfd5eb2a28741e0389d713dad
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 13 22:43:02 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Dec 13 22:43:33 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57a26f6e

kde-apps/knights: Require one of the chess engines at runtime

- Make it functional by default, negligible extra deps
- No elog spam in pkg_postinst

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...{knights-18.12.0.ebuild => knights-18.12.0-r1.ebuild} | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/kde-apps/knights/knights-18.12.0.ebuild 
b/kde-apps/knights/knights-18.12.0-r1.ebuild
similarity index 84%
rename from kde-apps/knights/knights-18.12.0.ebuild
rename to kde-apps/knights/knights-18.12.0-r1.ebuild
index 2c15d2dd9e6..a09b920890d 100644
--- a/kde-apps/knights/knights-18.12.0.ebuild
+++ b/kde-apps/knights/knights-18.12.0-r1.ebuild
@@ -38,11 +38,11 @@ DEPEND="
        $(add_qt_dep qtwidgets)
        speech? ( $(add_qt_dep qtspeech) )
 "
-RDEPEND="${DEPEND}"
-
-pkg_postinst() {
-       kde5_pkg_postinst
-
-       elog "No chess engines are emerged by default! If you want a chess 
engine"
-       elog "to play with, you can emerge gnuchess or crafty."
-}
+RDEPEND="${DEPEND}
+       || (
+               games-board/gnuchess
+               games-board/crafty
+               games-board/stockfish
+               games-board/sjeng
+       )
+"

Reply via email to