summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/tuxpaint')
-rw-r--r--media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild29
1 files 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 fd4b7f65c002..6c8458138345 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
}