gnu: djview: Fix executable's name in desktop file.

* gnu/packages/djvu.scm (djview)[inputs]: Re-order inputs alphabetically.
[arguments]: Add a phase to fix executable's name in desktop file.
This commit is contained in:
Nicolas Goaziou 2020-02-09 14:55:25 +01:00
parent 794ebb6b74
commit f8c2d32461
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -73,11 +73,20 @@ (define-public djview
`(("pkg-config" ,pkg-config)
("qttools" ,qttools)))
(inputs
`(("glib" ,glib)
`(("djvulibre" ,djvulibre)
("glib" ,glib)
("libxt" ,libxt)
("libtiff" ,libtiff)
("qtbase" ,qtbase)
("djvulibre" ,djvulibre)))
("qtbase" ,qtbase)))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-desktop-file
;; Executable is "djview", not "djview4".
(lambda _
(substitute* "desktopfiles/djvulibre-djview4.desktop"
(("Exec=djview4 %f") "Exec=djview %f"))
#t)))))
(home-page "http://djvu.sourceforge.net/")
(synopsis "Viewer for the DjVu image format")
(description "DjView is a standalone viewer for DjVu files.