gnu: djview: Update to 4.11.
* gnu/packages/djvu.scm (djview): Update to 4.11. [source]: Use GIT-FETCH and add a FILE-NAME. [native-inputs]: Add autoconf, automake, and libtool. [arguments]: Add a ‘make-files-writable’ phase.
This commit is contained in:
parent
2971ed5734
commit
e6c2a88f3d
1 changed files with 19 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
|
||||||
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
|
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -22,7 +23,9 @@
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
|
@ -59,18 +62,22 @@ utilities.")
|
||||||
(define-public djview
|
(define-public djview
|
||||||
(package
|
(package
|
||||||
(name "djview")
|
(name "djview")
|
||||||
(version "4.10.6")
|
(version "4.11")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/djvu/DjView/"
|
(uri (git-reference
|
||||||
(version-major+minor version) "/"
|
(url "https://git.code.sf.net/p/djvu/djview-git")
|
||||||
"djview-" version ".tar.gz"))
|
(commit (string-append "release." version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4"))))
|
(base32 "0qlhd0xlxn8i869m0hwdjvwivi2vigqm88wliyr1h7s84zl3qhsy"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("autoconf" ,autoconf)
|
||||||
|
("automake" ,automake)
|
||||||
|
("libtool" ,libtool)
|
||||||
|
("pkg-config" ,pkg-config)
|
||||||
("qttools" ,qttools)))
|
("qttools" ,qttools)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("djvulibre" ,djvulibre)
|
`(("djvulibre" ,djvulibre)
|
||||||
|
@ -86,6 +93,11 @@ utilities.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "desktopfiles/djvulibre-djview4.desktop"
|
(substitute* "desktopfiles/djvulibre-djview4.desktop"
|
||||||
(("Exec=djview4 %f") "Exec=djview %f"))
|
(("Exec=djview4 %f") "Exec=djview %f"))
|
||||||
|
#t))
|
||||||
|
(add-after 'unpack 'make-files-writable
|
||||||
|
(lambda _
|
||||||
|
(for-each make-file-writable
|
||||||
|
(find-files "."))
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "http://djvu.sourceforge.net/djview4.html")
|
(home-page "http://djvu.sourceforge.net/djview4.html")
|
||||||
(synopsis "Viewer for the DjVu image format")
|
(synopsis "Viewer for the DjVu image format")
|
||||||
|
|
Reference in a new issue