games-board/xboard: Switch from gnome2-utils to xdg, EAPI-7 bump
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 14 Feb 2019 20:58:39 +0000 (21:58 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 14 Feb 2019 23:06:32 +0000 (00:06 +0100)
Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
games-board/xboard/xboard-4.9.1.ebuild

index 71e1a4bd8429e14a0a6c5f87402e5c1a2629b848..a2e47ab047286155fbe63ea8473186c3262b5684 100644 (file)
@@ -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
-}