commit:     a263b93c7ef27281dba8121a5f2bd36e0459108d
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 10:47:15 2025 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 12:07:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a263b93c

games-board/gnome-chess: Switch to optfeature.eclass

Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 games-board/gnome-chess/gnome-chess-49.2.ebuild | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/games-board/gnome-chess/gnome-chess-49.2.ebuild 
b/games-board/gnome-chess/gnome-chess-49.2.ebuild
index e38f195be943..ea60623d63c0 100644
--- a/games-board/gnome-chess/gnome-chess-49.2.ebuild
+++ b/games-board/gnome-chess/gnome-chess-49.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit gnome.org gnome2-utils meson readme.gentoo-r1 vala xdg
+inherit gnome.org gnome2-utils meson optfeature vala xdg
 
 DESCRIPTION="Play the classic two-player boardgame of chess"
 HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-chess";
@@ -31,24 +31,16 @@ BDEPEND="
        virtual/pkgconfig
 "
 
-DOC_CONTENTS="To be able to play against a computer you will need
-to install a chess engine package, for example games-board/gnuchess"
-
 src_prepare() {
        default
        vala_setup
        xdg_environment_reset
 }
 
-src_install() {
-       meson_src_install
-       readme.gentoo_create_doc
-}
-
 pkg_postinst() {
        xdg_pkg_postinst
        gnome2_schemas_update
-       readme.gentoo_print_elog
+       optfeature "playing against the computer" games-board/gnuchess
 }
 
 pkg_postrm() {

Reply via email to