summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-07-26 23:40:49 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-07-26 23:42:16 +0200
commitc267178e19fba9e88ff62e8d8981896875cb7cb5 (patch)
tree6531c66d75a77193486ef9042f0be2b8395ed2db /media-gfx
parentgames-strategy/s25rttr: Drop old versions (diff)
downloadgentoo-c267178e19fba9e88ff62e8d8981896875cb7cb5.tar.gz
gentoo-c267178e19fba9e88ff62e8d8981896875cb7cb5.tar.bz2
gentoo-c267178e19fba9e88ff62e8d8981896875cb7cb5.zip
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@gentoo.org>
Diffstat (limited to 'media-gfx')
-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
}