guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.


From: Liliana Marie Prikler
Subject: [bug#52439] [PATCH 1/2] gnu: Add emacs-rec-mode.
Date: Sat, 11 Dec 2021 23:35:52 +0100
User-agent: Evolution 3.34.2

Hi,

Am Samstag, den 11.12.2021, 14:39 -0500 schrieb
Morgan.J.Smith@outlook.com:
> From: Morgan Smith <Morgan.J.Smith@outlook.com>
> 
> * gnu/packages/emacs-xyz.scm (emacs-rec-mode): New variable.
> ---
>  gnu/packages/emacs-xyz.scm | 40
> ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
> 
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 4fdc5f1bb3..aada2b17ce 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -22004,6 +22004,46 @@ (define-public emacs-org-brain
>  wiki.")
>      (license license:expat)))
>  
> +(define-public emacs-rec-mode
> +  ;; Compilation issues with latest release.  When updating to a
> proper
> +  ;; version, we should change the origin to elpa.
> +  (let ((commit "646962cff4f728cfa56c72ed43de8936713c8bb6")
> +        (revision "0"))
> +    (package
> +      (name "emacs-rec-mode")
> +      (version (git-version "1.8.1" revision commit))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "
> https://git.savannah.gnu.org/git/recutils/rec-mode.git";)
> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> +                  "1f5d5kf4rc84v8208qh0l8f5ac92fjqvrlgz0hhgj764v8w2a
> hpq"))
> +                (modules '((guix build utils)))
> +                (snippet '(begin (delete-file "rec-mode.info")))))
> +      (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
> +       `(("texinfo" ,texinfo)))
> +      (build-system emacs-build-system)
> +      (home-page "https://www.gnu.org/software/recutils/";)
> +      (synopsis "Major mode for viewing/editing rec files")
> +      (description "Rec Mode is a mode for browsing and editing
> recfiles,
> +which are text files containing data structured in fields and
> records.  It is
> +part of the GNU recutils suite.
> +
> +Recfiles are text-based databases which are easy to read and write
> manually
> +using a text editor.  At the same time they feature enough structure
> so they
> +can be read, edited and processed automatically by programs.")
> +      (license license:gpl3+))))
> +
>  (define-public emacs-recent-addresses
>    (let ((commit "afbbfdc43b81e620acf827ca20d297e0c517b6eb")
>          (revision "1"))
Rather than a new package, I think we can very well edit the existing
package in-place, so that we don't need to add a meaningless
deprecation.  For all intents and purposes, this still is emacs-
recutils -- it's still hosted alongside recutils even though it's no
longer bundled with it.

As a second patch, we could move it to emacs-xyz, but personally both
locations feel fine.  WDYT?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]