GNU bug report logs -
#43287
[PATCH] gnu: emacs-djvu: Add needed inputs
Previous Next
Reported by: Morgan.J.Smith <at> outlook.com
Date: Wed, 9 Sep 2020 02:37:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43287 in the body.
You can then email your comments to 43287 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#43287
; Package
guix-patches
.
(Wed, 09 Sep 2020 02:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Morgan.J.Smith <at> outlook.com
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 09 Sep 2020 02:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
* gnu/packages/emacs-xyz.scm (emacs-djvu): Add needed inputs
---
gnu/packages/emacs-xyz.scm | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0b1c79de79..6138ccc27a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -118,6 +118,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dictionaries)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages emacs)
#:use-module (gnu packages guile)
#:use-module (gnu packages gtk)
@@ -2456,13 +2457,30 @@ filters, new key bindings and faces. It can be enabled by
(sha256
(base32 "0njgyx09q225hliacsnjk8wallg5i6xkz6bj501pb05nwqfbvfk7"))))
(build-system emacs-build-system)
+ (inputs `(("djview" ,djview)
+ ("djvulibre" ,djvulibre)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((file "djvu.el")
+ (djview (assoc-ref inputs "djview"))
+ (djvulibre (assoc-ref inputs "djvulibre")))
+ ;; Specify the absolute executable locations.
+ (chmod file #o644)
+ (substitute* file
+ (("\"djvused\"") (string-append "\"" djvulibre "/bin/djvused\""))
+ (("\"djvm\"") (string-append "\"" djvulibre "/bin/djvm\""))
+ (("\"ddjvu\"") (string-append "\"" djvulibre "/bin/ddjvu\"")))
+ (emacs-substitute-variables file
+ ("djvu-djview-command" (string-append djview "/bin/djview"))))
+ #t)))))
(home-page "http://elpa.gnu.org/packages/djvu.html")
(synopsis "Edit and view Djvu files via djvused")
(description
"This package is a front end for the command-line program djvused from
-DjVuLibre, see @url{http://djvu.sourceforge.net/}. It assumes you have the
-programs @command{djvused}, @command{djview}, @command{ddjvu}, and
-@command{djvm} installed.")
+DjVuLibre, see @url{http://djvu.sourceforge.net/}.")
(license license:gpl3+)))
(define-public emacs-pabbrev
--
2.28.0
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Sun, 13 Sep 2020 21:30:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Morgan.J.Smith <at> outlook.com
:
bug acknowledged by developer.
(Sun, 13 Sep 2020 21:30:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 43287-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Morgan.J.Smith <at> outlook.com skribis:
> From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
>
> * gnu/packages/emacs-xyz.scm (emacs-djvu): Add needed inputs
I tweaked the commit message to mention the new ‘inputs’ and ‘arguments’
fields.
Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 12 Oct 2020 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 190 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.