Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 261123

Summary: app-text/epdfview-0.1.7 version bump
Product: Gentoo Linux Reporter: Nick White <gentoo>
Component: New packagesAssignee: David Shakaryan (RETIRED) <omp>
Status: RESOLVED FIXED    
Severity: normal CC: galtgendo, printing, radhermit
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://trac.emma-soft.com/epdfview
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: epdfview-0.1.7.ebuild
ebuild with fixed configure options and icon line in .desktop
Fixed mouse scroll
patch that seems to be the real fix

Description Nick White 2009-03-04 02:52:59 UTC
New version released a few days ago.
Comment 1 Adam 2009-03-08 02:42:42 UTC
I just copied the 0.1.6-r1 ebuild and 
-Changed the version number
-Removed the patches
-removed the epatch commands from the ebuild.

The new ebuild seems to work. All the dependencies are the same so there was really little modification which needed to be done.

epdfview-0.1.7.ebuild

# 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.7.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."
HOMEPAGE="http://trac.emma-soft.com/epdfview/"
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 nls test"

COMMON_DEPEND=">=app-text/poppler-bindings-0.5.0[gtk]
	>=x11-libs/gtk+-2.6
	cups? ( >=net-print/cups-1.1 )"
DEPEND="${COMMON_DEPEND}
	>=dev-util/pkgconfig-0.9
	nls? ( sys-devel/gettext )
	test? ( dev-util/cppunit )"
RDEPEND="${COMMON_DEPEND}
	nls? ( virtual/libintl )"

src_unpack() {
	unpack ${A}
	cd "${S}"
}

src_configure() {
	econf \
		$(use_enable cups) \
		$(use_with nls)
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS NEWS README THANKS
}
Comment 2 Adam 2009-03-08 02:47:34 UTC
Created attachment 184308 [details]
epdfview-0.1.7.ebuild

I've never submitted to bugzille so I'm not sure what exactly is required, but here's an ebuild for epdfview-0.1.7 which works for me.
Comment 3 Adam 2009-03-08 07:59:24 UTC
Probably better to ignore my ebuild. I've just figured out mouse scrolling doesn't work when it's installed through portage using this script.
Comment 4 Sergey Zasenko 2009-03-14 15:38:38 UTC
Created attachment 184958 [details]
ebuild with fixed configure options and icon line in .desktop
Comment 5 Sergey Zasenko 2009-03-14 15:52:35 UTC
EPdfView now uses --with-cups instead of --enable-cups and --enable-nls instead of --with-nls.
Also added fixing of Icon line in .desktop file.
Still got problems with mosue scrolling.
Comment 6 Sergey Zasenko 2009-03-14 16:53:28 UTC
Created attachment 184970 [details]
Fixed mouse scroll
Comment 7 Sergey Zasenko 2009-03-14 16:54:26 UTC
mouse scroll works just with -O0 flag.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2009-03-19 22:39:08 UTC
+*epdfview-0.1.7 (19 Mar 2009)
+
+  19 Mar 2009; Peter Alfredsen <loki_val@gentoo.org> +epdfview-0.1.7.ebuild:
+  Bump, bug 261123. Fix icons, bug 253993. Bump also presumably fixes bug
+  188980, since it was fixed in SVN at the time.
+
Comment 9 Rafał Mużyło 2009-03-20 02:22:50 UTC
Created attachment 185593 [details, diff]
patch that seems to be the real fix

Following patch seems to be the real fix.
Please confirm.

The problem seems to be caused by incorrect use of
GTK API by epdfview. The fact, that '-O0' worked was just 
a coincidence.

If it works, please inform upstream.
Comment 10 Rafał Mużyło 2009-03-20 02:24:15 UTC
Reopening to see if the patch is correct.
Comment 11 Sergey Zasenko 2009-03-20 07:42:45 UTC
Patch works fine with -O2. But change 2 first lines in patch to:
--- epdfview-0.1.7/src/gtk/MainView.cxx.old	2009-02-28 22:00:55.000000000 +0100
+++ epdfview-0.1.7/src/gtk/MainView.cxx	2009-03-20 03:12:10.000000000 +0100
Comment 12 David Shakaryan (RETIRED) gentoo-dev 2009-07-11 10:48:41 UTC
The latest revision in the tree seems to have a fix for the mouse scrolling applied, so I'm closing this bug. Reopen if the problem persists.