Skip to content

Commit

Permalink
media-gfx/tuxpaint: EAPI-7 bump, use xdg-utils, drop unused multilib
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Jul 26, 2020
1 parent 74b059c commit c267178
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions media-gfx/tuxpaint/tuxpaint-0.9.21-r2.ebuild
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -11,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"

IUSE="nls"

RDEPEND="
Expand All @@ -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"
Expand All @@ -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
}

0 comments on commit c267178

Please sign in to comment.