From f8c2d32461d469f7133c7d79fe1b4eed5146aaf7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 9 Feb 2020 14:55:25 +0100 Subject: 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. --- gnu/packages/djvu.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm index 534d2db58b..7dd08fcbe6 100644 --- a/gnu/packages/djvu.scm +++ b/gnu/packages/djvu.scm @@ -73,11 +73,20 @@ utilities.") `(("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. -- cgit v1.2.3