Gentoo Archives: gentoo-commits

From: "Thomas Anderson (gentoofan23)" <gentoofan23@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/epdfview: ChangeLog epdfview-0.1.6-r1.ebuild
Date: Sat, 07 Mar 2009 14:17:24
Message-Id: E1LfxL4-0000tz-Ip@stork.gentoo.org
gentoofan23    09/03/07 14:17:18

  Modified:             ChangeLog epdfview-0.1.6-r1.ebuild
  Log:
  Transition to eapi 2 use deps

Revision  Changes    Path
1.31                 app-text/epdfview/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/ChangeLog?rev=1.31&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/ChangeLog?rev=1.31&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/ChangeLog?r1=1.30&r2=1.31

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-text/epdfview/ChangeLog,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ChangeLog	26 Feb 2009 19:35:28 -0000	1.30
+++ ChangeLog	7 Mar 2009 14:17:18 -0000	1.31
@@ -1,6 +1,10 @@
 # ChangeLog for app-text/epdfview
 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/ChangeLog,v 1.30 2009/02/26 19:35:28 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/ChangeLog,v 1.31 2009/03/07 14:17:18 gentoofan23 Exp $
+
+  07 Mar 2009; Thomas Anderson <gentoofan23@g.o>
+  epdfview-0.1.6-r1.ebuild:
+  Transition to eapi 2 use deps
 
   26 Feb 2009; Jeroen Roovers <jer@g.o> epdfview-0.1.6-r1.ebuild:
   Stable for HPPA too.



1.11                 app-text/epdfview/epdfview-0.1.6-r1.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild?r1=1.10&r2=1.11

Index: epdfview-0.1.6-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- epdfview-0.1.6-r1.ebuild	26 Feb 2009 19:35:28 -0000	1.10
+++ epdfview-0.1.6-r1.ebuild	7 Mar 2009 14:17:18 -0000	1.11
@@ -1,7 +1,8 @@
 # Copyright 1999-2009 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild,v 1.10 2009/02/26 19:35:28 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/epdfview/epdfview-0.1.6-r1.ebuild,v 1.11 2009/03/07 14:17:18 gentoofan23 Exp $
 
+EAPI="2"
 inherit eutils
 
 DESCRIPTION="Lightweight PDF viewer using Poppler and GTK+ libraries."
@@ -13,7 +14,7 @@
 KEYWORDS="amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd"
 IUSE="cups nls test"
 
-COMMON_DEPEND=">=app-text/poppler-bindings-0.5.0
+COMMON_DEPEND=">=app-text/poppler-bindings-0.5.0[gtk]
 	>=x11-libs/gtk+-2.6
 	cups? ( >=net-print/cups-1.1 )"
 DEPEND="${COMMON_DEPEND}
@@ -23,13 +24,6 @@
 RDEPEND="${COMMON_DEPEND}
 	nls? ( virtual/libintl )"
 
-pkg_setup() {
-	if ! built_with_use app-text/poppler-bindings gtk; then
-		eerror "Please re-emerge app-text/poppler-bindings with the gtk USE flag set."
-		die "poppler-bindings needs gtk flag set."
-	fi
-}
-
 src_unpack() {
 	unpack ${A}
 	cd "${S}"
@@ -38,12 +32,10 @@
 	epatch "${FILESDIR}/${P}-print-segfault.patch"
 }
 
-src_compile() {
+src_configure() {
 	econf \
 		$(use_enable cups) \
-		$(use_with nls) \
-		|| die "econf failed"
-	emake || die "emake failed"
+		$(use_with nls)
 }
 
 src_install() {