commit:     ecc60587f29a886ff8546f81612f1377d547aa41
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 13 13:22:34 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Feb 13 13:23:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecc60587

games-board/gmchess: xdg eclass, fix prefix

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-board/gmchess/gmchess-0.29.6-r3.ebuild | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/games-board/gmchess/gmchess-0.29.6-r3.ebuild 
b/games-board/gmchess/gmchess-0.29.6-r3.ebuild
index 67efbf955c4..fbd0e59250a 100644
--- a/games-board/gmchess/gmchess-0.29.6-r3.ebuild
+++ b/games-board/gmchess/gmchess-0.29.6-r3.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit autotools flag-o-matic libtool gnome2-utils
+inherit autotools flag-o-matic xdg
 
 DESCRIPTION="Chinese chess with gtkmm and c++"
 HOMEPAGE="https://github.com/lerosua/gmchess";
@@ -38,22 +38,10 @@ src_configure() {
 
 src_install() {
        emake DESTDIR="${D}" \
-               itlocaledir='/usr/share/locale' \
-               pixmapsdir='/usr/share/pixmaps' \
-               desktopdir='/usr/share/applications' \
+               localedir="${EPREFIX}"/usr/share/locale \
+               pixmapsdir="${EPREFIX}"/usr/share/pixmaps \
+               desktopdir="${EPREFIX}"/usr/share/applications \
                install
        dodoc AUTHORS NEWS README
        find "${ED}" -name "*.la" -delete || die
 }
-
-pkg_preinst() {
-       gnome2_icon_savelist
-}
-
-pkg_postinst() {
-       gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-       gnome2_icon_cache_update
-}

Reply via email to