commit:     5f4ca15feab1287e17fe8f6c2432388d9a679264
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 26 21:09:27 2019 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 21:09:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f4ca15f

games-kids/tuxtype: EAPI 7, fix EPREFIX, xdg.eclass

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

 games-kids/tuxtype/tuxtype-1.8.1-r1.ebuild | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/games-kids/tuxtype/tuxtype-1.8.1-r1.ebuild 
b/games-kids/tuxtype/tuxtype-1.8.1-r1.ebuild
index 5ca2f0d987c..db74faed70e 100644
--- a/games-kids/tuxtype/tuxtype-1.8.1-r1.ebuild
+++ b/games-kids/tuxtype/tuxtype-1.8.1-r1.ebuild
@@ -1,8 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit eutils
+EAPI=7
+
+inherit desktop xdg
 
 DESCRIPTION="Typing tutorial with lots of eye-candy"
 HOMEPAGE="https://github.com/tux4kids/tuxtype";
@@ -19,24 +20,26 @@ DEPEND="acct-group/gamestat
        media-libs/sdl-mixer
        media-libs/sdl-pango
        media-libs/sdl-ttf
-       svg? ( gnome-base/librsvg )"
-RDEPEND=${DEPEND}
+       svg? ( gnome-base/librsvg:2 )"
+
+RDEPEND="${DEPEND}"
 
-S=${WORKDIR}/${PN}-upstream-${PV}
+S="${WORKDIR}/${PN}-upstream-${PV}"
 
 src_configure() {
        econf \
-               --localedir=/usr/share/locale \
+               --localedir="${EPREFIX}"/usr/share/locale \
                $(use_with svg rsvg)
 }
 
 src_install() {
        default
-       rm -f "${D}"/usr/share/doc/${PF}/{COPYING,INSTALL,ABOUT-NLS}*
-       doicon ${PN}.ico
-       make_desktop_entry ${PN} TuxTyping /usr/share/pixmaps/${PN}.ico
+       rm -v "${ED}"/usr/share/doc/${PF}/{ABOUT-NLS,COPYING,INSTALL} || die
        keepdir /etc/${PN} /var/games/${PN}/words
 
+       newicon -s 64 icon.png ${PN}.png
+       make_desktop_entry ${PN} TuxTyping
+
        fowners root:gamestat /var/games/${PN} /usr/bin/${PN}
        fperms 660 /var/games/${PN}
        fperms 2755 /usr/bin/${PN}

Reply via email to