commit:     c267178e19fba9e88ff62e8d8981896875cb7cb5
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 26 21:40:49 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jul 26 21:42:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c267178e

media-gfx/tuxpaint: EAPI-7 bump, use xdg-utils, drop unused multilib

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

 media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild | 29 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild 
b/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
index fd4b7f65c00..6c845813834 100644
--- a/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
+++ b/media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
@@ -1,8 +1,9 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit gnome2-utils multilib toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs xdg-utils
 
 DESCRIPTION="Drawing program designed for young children"
 HOMEPAGE="http://www.tuxpaint.org/";
@@ -11,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-
 IUSE="nls"
 
 RDEPEND="
@@ -27,10 +27,16 @@ RDEPEND="
        media-libs/sdl-ttf
        x11-libs/cairo
 "
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
        nls? ( sys-devel/gettext )
 "
 
+DOCS=(
+       docs/{ADVANCED-STAMPS-HOWTO,AUTHORS,CHANGES,default_colors,dejavu}.txt
+       docs/{EXTENDING,FAQ,OPTIONS,PNG,README,SVG}.txt
+)
+
 PATCHES=(
        # Sanitize the Makefile and correct a few other issues
        "${FILESDIR}/${PN}-0.9.20-gentoo.patch"
@@ -56,27 +62,20 @@ src_compile() {
 
 src_install() {
        emake -j1 PKG_ROOT="${D}" \
-               $(use nls && echo ENABLE_GETTEXT=1) install
-
-       rm -f docs/COPYING.txt docs/INSTALL.txt
-       dodoc docs/*.txt
-}
+               $(usex nls ENABLE_GETTEXT=1 '') install
 
-pkg_preinst() {
-       gnome2_icon_savelist
+       einstalldocs
 }
 
 pkg_postinst() {
-       gnome2_icon_cache_update
+       xdg_icon_cache_update
 
        if ! has_version "${CATEGORY}/${PN}"; then
-               elog ""
                elog "For additional graphic stamps, you can emerge the"
                elog "media-gfx/tuxpaint-stamps package."
-               elog ""
        fi
 }
 
 pkg_postrm() {
-       gnome2_icon_cache_update
+       xdg_icon_cache_update
 }

Reply via email to