Subject: bug#44853: closed (Re: [bug#44853] [PATCH] gnu: Add qpdfview.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 25 Nov 2020 20:39:01 +0000

Your bug report

#44853: [PATCH] gnu: Add qpdfview.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
44853: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44853
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#44853] [PATCH] gnu: Add qpdfview.
From: Leo Famulari <[email-masked]>
To: Timotej Lazar <[email-masked]>
Cc: [email-masked]
Date: Wed, 25 Nov 2020 15:38:24 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

On Wed, Nov 25, 2020 at 07:35:51PM +0100, Timotej Lazar wrote:
> Leo Famulari <[email-masked]> [2020-11-24 22:13:09-0500]:
> > I noticed that, on my Debian system, the user interface was not
> > displaying any icons.
> 
> Turns out it happens for me too, but I didn’t notice because I have
> qtsvg installed in my profile.

I pushed my version of your patch as cbcd520e1a71d75513a1c47d046142b2ff33ad56

Subject: [PATCH] gnu: Add qpdfview.
From: Timotej Lazar <[email-masked]>
To: [email-masked]
Cc: Timotej Lazar <[email-masked]>
Date: Tue, 24 Nov 2020 19:58:45 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/pdf.scm (qpdfview): New variable.
---
 gnu/packages/pdf.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 1899501122..1861851b72 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -54,6 +54,7 @@
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cups)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages djvu)
   #:use-module (gnu packages fontutils)
@@ -806,6 +807,44 @@ program capable of converting PDF into other formats.")
    (license (list license:asl2.0 license:clarified-artistic))
    (home-page "http://qpdf.sourceforge.net/")))
 
+(define-public qpdfview
+  (package
+    (name "qpdfview")
+    (version "0.4.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://launchpad.net/qpdfview/"
+                           "trunk/" version "/+download/"
+                           "qpdfview-" version ".tar.gz"))
+       (sha256
+        (base32 "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("cups" ,cups)
+       ("djvulibre" ,djvulibre)
+       ("libspectre" ,libspectre)
+       ("poppler-qt5" ,poppler-qt5)
+       ("qtbase" ,qtbase)
+       ("qtsvg" ,qtsvg)))
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda _
+             (substitute* "qpdfview.pri"
+               (("/usr") (assoc-ref %outputs "out")))
+             (invoke "qmake" "qpdfview.pro"))))))
+    (home-page "https://launchpad.net/qpdfview")
+    (synopsis "Tabbed document viewer")
+    (description "@command{qpdfview} is a document viewer for PDF, PS and DJVU
+files.  It uses the Qt toolkit and features persistent per-file settings,
+configurable toolbars and shortcuts, continuous and multi‐page layouts,
+SyncTeX support, and rudimentary support for annotations and forms.")
+    (license license:gpl2+)))
+
 (define-public xournal
   (package
     (name "xournal")
-- 
2.28.0