summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/kanatest')
-rw-r--r--app-misc/kanatest/ChangeLog8
-rw-r--r--app-misc/kanatest/kanatest-0.4.8.ebuild38
2 files changed, 27 insertions, 19 deletions
diff --git a/app-misc/kanatest/ChangeLog b/app-misc/kanatest/ChangeLog
index 8fc3d4878597..0b2b38a3f8fa 100644
--- a/app-misc/kanatest/ChangeLog
+++ b/app-misc/kanatest/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-misc/kanatest
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/kanatest/ChangeLog,v 1.35 2012/08/07 16:31:47 naota Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/kanatest/ChangeLog,v 1.36 2014/10/25 08:51:14 ssuominen Exp $
+
+ 25 Oct 2014; Samuli Suominen <ssuominen@gentoo.org> kanatest-0.4.8.ebuild:
+ Update hicolor cache. Fix .desktop entry to match latest spec. Update ebuild
+ from obsolete EAPI=1 to EAPI=5.
07 Aug 2012; Naohiro Aota <naota@gentoo.org>
+files/kanatest-0.4.8-cflags.patch, kanatest-0.4.8.ebuild:
diff --git a/app-misc/kanatest/kanatest-0.4.8.ebuild b/app-misc/kanatest/kanatest-0.4.8.ebuild
index 434005c64775..0f69dadc943b 100644
--- a/app-misc/kanatest/kanatest-0.4.8.ebuild
+++ b/app-misc/kanatest/kanatest-0.4.8.ebuild
@@ -1,37 +1,41 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/kanatest/kanatest-0.4.8.ebuild,v 1.10 2012/08/07 16:31:47 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/kanatest/kanatest-0.4.8.ebuild,v 1.11 2014/10/25 08:51:14 ssuominen Exp $
-EAPI="1"
-
-inherit eutils autotools
+EAPI=5
+inherit autotools eutils gnome2-utils
DESCRIPTION="Visual flashcard tool for memorizing the Japanese Hiragana and Katakana alphabet"
HOMEPAGE="http://www.clayo.org/kanatest"
-SRC_URI="http://www.clayo.org/kanatest/${P}.tar.gz"
+SRC_URI="http://www.clayo.org/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
-RDEPEND=">=x11-libs/gtk+-2.12:2
- dev-libs/libxml2:2"
+RDEPEND=">=x11-libs/gtk+-2.12:2=
+ dev-libs/libxml2:="
DEPEND="${RDEPEND}
virtual/pkgconfig"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+DOCS="AUTHORS TRANSLATORS ChangeLog README"
- epatch "${FILESDIR}"/${P}+gtk-2.22.patch \
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}+gtk-2.22.patch \
"${FILESDIR}"/${P}-autoconf.patch \
"${FILESDIR}"/${P}-cflags.patch
- eautoreconf
-}
-src_install() {
- emake DESTDIR="${D}" install || die
+ sed -i \
+ -e '/Encoding/d' \
+ -e '/^Categories/s:Application;::' \
+ -e '/^Icon/s:.png::' \
+ data/${PN}.desktop || die
- dodoc AUTHORS TRANSLATORS ChangeLog README || die
+ eautoreconf
}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }