summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-02-09 13:29:30 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-02-09 13:29:30 +0100
commit794ebb6b74e692e33d17552fe14b30bb9b7b771d (patch)
tree675949a6790e785477af9bd8fb406acec0ae9c23
parenta961e7ff0c2800daec2ff7d854d76f3601ca668f (diff)
downloadguix-794ebb6b74e692e33d17552fe14b30bb9b7b771d.tar.gz
gnu: Add djview.
* gnu/packages/djvu.scm (djview): New variable.
-rw-r--r--gnu/packages/djvu.scm45
1 files changed, 44 insertions, 1 deletions
diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm
index 10cdbf31a8..534d2db58b 100644
--- a/gnu/packages/djvu.scm
+++ b/gnu/packages/djvu.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
+;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -18,9 +19,15 @@
 
 (define-module (gnu packages djvu)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix utils)
   #:use-module (guix packages)
   #:use-module (guix download)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages image)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages qt)
+  #:use-module (gnu packages xorg))
 
 (define-public djvulibre
   (package
@@ -48,3 +55,39 @@
 including viewers, browser plugins, decoders, simple encoders, and
 utilities.")
     (license license:gpl2+)))
+
+(define-public djview
+  (package
+    (name "djview")
+    (version "4.10.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://sourceforge/djvu/DjView/"
+                           (version-major+minor version) "/"
+                           "djview-" version ".tar.gz"))
+       (sha256
+        (base32 "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("qttools" ,qttools)))
+    (inputs
+     `(("glib" ,glib)
+       ("libxt" ,libxt)
+       ("libtiff" ,libtiff)
+       ("qtbase" ,qtbase)
+       ("djvulibre" ,djvulibre)))
+    (home-page "http://djvu.sourceforge.net/")
+    (synopsis "Viewer for the DjVu image format")
+    (description "DjView is a standalone viewer for DjVu files.
+
+Its features include navigating documents, zooming and panning page images,
+producing and displaying thumbnails, displaying document outlines, searching
+documents for particular words in the hidden text layer, copying hidden text
+to the clipboard, saving pages and documents as bundled or indirect multi-page
+files, and printing page and documents.
+
+The viewer can simultaneously display several pages using a side-by-side or
+a continuous layout.")
+    (license license:gpl2+)))