GNU bug report logs -
#59604
[PATCH] gnu: emacs-rec-mode: Patch executable paths.
Previous Next
Reported by: "(" <paren <at> disroot.org>
Date: Sat, 26 Nov 2022 10:10:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#59604: [PATCH] gnu: emacs-rec-mode: Patch executable paths.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 59604 <at> debbugs.gnu.org.
--
59604: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59604
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Am Samstag, dem 26.11.2022 um 10:09 +0000 schrieb (:
> * gnu/packages/databases.scm (emacs-rec-mode)[source]: Add FILE-NAME.
> [arguments]: Use G-expressions.
> <#:phases>{'patch-program-paths}: New phase.
> [inputs]: Add RECUTILS.
> ---
Split into two smaller commits, fixed up commit log and pushed.
Cheers
[Message part 3 (message/rfc822, inline)]
* gnu/packages/databases.scm (emacs-rec-mode)[source]: Add FILE-NAME.
[arguments]: Use G-expressions.
<#:phases>{'patch-program-paths}: New phase.
[inputs]: Add RECUTILS.
---
gnu/packages/databases.scm | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e4dde1b22b..d9930de8fd 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1625,24 +1625,32 @@ (define-public emacs-rec-mode
(method url-fetch)
(uri (string-append "https://elpa.gnu.org/packages/"
"rec-mode-" version ".tar"))
+ (file-name (string-append name "-" version ".tar"))
+ (snippet #~(delete-file "rec-mode.info"))
(sha256
(base32
- "1w1q6kh567fd8xismq9i6wr1y893lypd30l452yvydi1qjiq1n6x"))
- (snippet '(begin (delete-file "rec-mode.info")))))
+ "1w1q6kh567fd8xismq9i6wr1y893lypd30l452yvydi1qjiq1n6x"))))
(build-system emacs-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-before 'install 'make-info
- (lambda _
- (invoke "makeinfo" "--no-split"
- "-o" "rec-mode.info" "rec-mode.texi"))))))
- (native-inputs
- (list texinfo))
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-program-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "rec-mode.el"
+ ("rec-recfix" (search-input-file inputs "bin/recfix"))
+ ("rec-recinf" (search-input-file inputs "bin/recinf"))
+ ("rec-recsel" (search-input-file inputs "bin/recsel")))))
+ (add-before 'install 'make-info
+ (lambda _
+ (invoke "makeinfo" "--no-split"
+ "-o" "rec-mode.info" "rec-mode.texi"))))))
+ (inputs (list recutils))
+ (native-inputs (list texinfo))
(home-page "https://www.gnu.org/software/recutils/")
(synopsis "Emacs mode for working with recutils database files")
- (description "This package provides an Emacs major mode @code{rec-mode}
-for working with GNU Recutils text-based, human-editable databases. It
+ (description
+ "This package provides an Emacs major mode @code{rec-mode} for
+working with GNU Recutils text-based, human-editable databases. It
supports editing, navigation, and querying of recutils database files
including field and record folding.")
(license license:gpl3+)))
base-commit: 4a97591d0a13e88037b3073bd891bcdf35352f87
--
2.38.1
This bug report was last modified 2 years and 233 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.