summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/epdfview')
-rw-r--r--app-text/epdfview/ChangeLog6
-rw-r--r--app-text/epdfview/epdfview-0.1.8.ebuild33
2 files changed, 25 insertions, 14 deletions
diff --git a/app-text/epdfview/ChangeLog b/app-text/epdfview/ChangeLog
index 8bf5d938b813..5a81ac3556aa 100644
--- a/app-text/epdfview/ChangeLog
+++ b/app-text/epdfview/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/epdfview
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/ChangeLog,v 1.40 2011/08/07 12:54:29 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/ChangeLog,v 1.41 2011/08/07 17:04:16 billie Exp $
+
+ 07 Aug 2011; Daniel Pielmeier <billie@gentoo.org> epdfview-0.1.8.ebuild:
+ Switch to EAPI 4 and fdo-mime instead of gnome2 eclass. Restrict test and
+ remove debug USE flag as both do not work properly.
*epdfview-0.1.8 (07 Aug 2011)
diff --git a/app-text/epdfview/epdfview-0.1.8.ebuild b/app-text/epdfview/epdfview-0.1.8.ebuild
index 8e9370d99357..eb72d6cd6295 100644
--- a/app-text/epdfview/epdfview-0.1.8.ebuild
+++ b/app-text/epdfview/epdfview-0.1.8.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/epdfview-0.1.8.ebuild,v 1.1 2011/08/07 12:54:29 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/epdfview-0.1.8.ebuild,v 1.2 2011/08/07 17:04:16 billie Exp $
-EAPI=2
-inherit gnome2
+EAPI=4
+inherit fdo-mime
DESCRIPTION="Lightweight PDF viewer using Poppler and GTK+ libraries."
HOMEPAGE="http://trac.emma-soft.com/epdfview/"
@@ -12,7 +12,7 @@ SRC_URI="http://trac.emma-soft.com/epdfview/chrome/site/releases/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="cups debug nls test"
+IUSE="cups nls test"
RDEPEND=">=app-text/poppler-0.12.3-r3[cairo]
>=x11-libs/pango-1.28.4
@@ -24,24 +24,21 @@ DEPEND="${RDEPEND}
test? ( dev-util/cppunit )
userland_GNU? ( >=sys-apps/findutils-4.4 )"
-pkg_setup() {
- G2CONF="--disable-dependency-tracking
- $(use_enable nls)
- $(use_with cups)"
-
- DOCS="AUTHORS NEWS README THANKS"
-}
+RESTRICT="test"
src_prepare() {
sed -i \
-e 's:Icon=icon_epdfview-48:Icon=epdfview:' \
data/epdfview.desktop || die
+}
- gnome2_src_prepare
+src_configure() {
+ econf $(use_with cups) \
+ $(use_enable nls)
}
src_install() {
- gnome2_src_install
+ default
local res
for res in 24 32 48; do
@@ -49,3 +46,13 @@ src_install() {
newins data/icon_epdfview-${res}.png epdfview.png || die
done
}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}