commit:     2794d58b0276698a3aca3c66799dc384b15b34b9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 14 20:58:39 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Feb 14 23:06:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2794d58b

games-board/xboard: Switch from gnome2-utils to xdg, EAPI-7 bump

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

 games-board/xboard/xboard-4.9.1.ebuild | 50 ++++++++++++++++------------------
 1 file changed, 23 insertions(+), 27 deletions(-)

diff --git a/games-board/xboard/xboard-4.9.1.ebuild 
b/games-board/xboard/xboard-4.9.1.ebuild
index 71e1a4bd842..a2e47ab0472 100644
--- a/games-board/xboard/xboard-4.9.1.ebuild
+++ b/games-board/xboard/xboard-4.9.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit autotools gnome2-utils xdg-utils
+inherit autotools xdg
 
 DESCRIPTION="GUI for gnuchess and for internet chess servers"
 HOMEPAGE="https://www.gnu.org/software/xboard/";
@@ -15,7 +15,12 @@ KEYWORDS="~amd64 ~ppc64 ~x86"
 IUSE="+default-font gtk nls Xaw3d zippy"
 RESTRICT="test" #124112
 
-RDEPEND="
+BDEPEND="
+       virtual/pkgconfig
+       x11-base/xorg-proto
+       nls? ( sys-devel/gettext )
+"
+DEPEND="
        dev-libs/glib:2
        gnome-base/librsvg:2
        virtual/libintl
@@ -33,10 +38,7 @@ RDEPEND="
                !Xaw3d? ( x11-libs/libXaw )
        )
        gtk? ( x11-libs/gtk+:2 )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig
-       x11-base/xorg-proto
-       nls? ( sys-devel/gettext )"
+RDEPEND="${DEPEND}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-4.8.0-gettext.patch
@@ -51,16 +53,18 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               --disable-update-mimedb \
-               --datadir="${EPREFIX}"/usr/share \
-               $(use_enable nls) \
-               $(use_enable zippy) \
-               --disable-update-mimedb \
-               $(use_with gtk) \
-               $(use_with Xaw3d) \
-               $(usex gtk "--without-Xaw" "$(use_with !Xaw3d Xaw)") \
-               --with-gamedatadir="${EPREFIX}/usr/share/games/${PN}"
+       local myeconfargs=(
+               --disable-update-mimedb
+               --datadir="${EPREFIX}"/usr/share
+               $(use_enable nls)
+               $(use_enable zippy)
+               --disable-update-mimedb
+               $(use_with gtk)
+               $(use_with Xaw3d)
+               $(usex gtk "--without-Xaw" $(use_with !Xaw3d Xaw))
+               --with-gamedatadir="${EPREFIX}"/usr/share/games/${PN}
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
@@ -69,9 +73,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
-       gnome2_icon_cache_update
+       xdg_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."
        elog "Read xboard FAQ for information."
@@ -79,9 +81,3 @@ pkg_postinst() {
                ewarn "Read the xboard(6) man page for specifying the font for 
xboard to use."
        fi
 }
-
-pkg_postrm() {
-       xdg_mimeinfo_database_update
-       xdg_desktop_database_update
-       gnome2_icon_cache_update
-}

Reply via email to