commit:     b72926c241a736b456b40ff79f63b12cfe218ec9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 19:59:52 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  9 21:10:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b72926c2

app-text/djview: Bump to EAPI 6, switch from fdo-mime to xdg-utils

Package-Manager: Portage-2.3.17, Repoman-2.3.6

 app-text/djview/djview-4.10.6-r1.ebuild | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/app-text/djview/djview-4.10.6-r1.ebuild 
b/app-text/djview/djview-4.10.6-r1.ebuild
index ed5f990d45e..9765ecc6989 100644
--- a/app-text/djview/djview-4.10.6-r1.ebuild
+++ b/app-text/djview/djview-4.10.6-r1.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
-inherit autotools gnome2-utils fdo-mime flag-o-matic qmake-utils versionator 
toolchain-funcs multilib nsplugins
+inherit autotools gnome2-utils flag-o-matic nsplugins qmake-utils 
toolchain-funcs versionator xdg-utils
 
 DESCRIPTION="Portable DjVu viewer using Qt"
 HOMEPAGE="http://djvu.sourceforge.net/djview4.html";
@@ -27,7 +27,11 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
        nsplugin? ( dev-libs/glib:2 )"
 
+DOCS=( README NEWS )
+
 src_prepare() {
+       default
+
        # Force XEmbed instead of Xt-based mainloop (disable Xt autodep)
        sed -e 's:\(ac_xt=\)yes:\1no:' -i configure* || die
        sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die 
#263688
@@ -55,7 +59,7 @@ src_install() {
                plugindir=/usr/$(get_libdir)/${PLUGINS_DIR} \
                        install
 
-       dodoc README NEWS
+       einstalldocs
 
        cd desktopfiles
        insinto /usr/share/icons/hicolor/32x32/apps
@@ -68,16 +72,12 @@ src_install() {
        domenu djvulibre-djview4.desktop
 }
 
-pkg_preinst() {
-       gnome2_icon_savelist
-}
-
 pkg_postinst() {
-       fdo-mime_desktop_database_update
+       xdg_desktop_database_update
        gnome2_icon_cache_update
 }
 
 pkg_postrm() {
-       fdo-mime_desktop_database_update
+       xdg_desktop_database_update
        gnome2_icon_cache_update
 }

Reply via email to