unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 59604@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#59604] [PATCH] gnu: emacs-rec-mode: Patch executable paths.
Date: Sat, 26 Nov 2022 10:09:05 +0000	[thread overview]
Message-ID: <20221126100905.2835-1-paren@disroot.org> (raw)

* 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





             reply	other threads:[~2022-11-26 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 10:09 ( via Guix-patches via [this message]
2022-11-26 12:28 ` bug#59604: [PATCH] gnu: emacs-rec-mode: Patch executable paths Liliana Marie Prikler
2022-11-26 12:29   ` [bug#59604] " ( via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221126100905.2835-1-paren@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=59604@debbugs.gnu.org \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).