summary refs log tree commit diff
diff options
context:
space:
mode:
authorMorgan Smith <Morgan.J.Smith@outlook.com>2021-12-13 19:54:14 -0500
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2021-12-14 21:30:48 +0100
commitc41ccac45b738eb0777c51f4e4a7eb44e90a4281 (patch)
treeda51aa9c7cdc6ca71def00307d5cf4643af295c2
parentb484301f529e246df80380a641822f09a8775755 (diff)
downloadguix-c41ccac45b738eb0777c51f4e4a7eb44e90a4281.tar.gz
gnu: emacs-recutils: Update to 1.8.2.
* gnu/packages/databases.scm (emacs-recutils): Update to 1.8.2.
No longer inherit from recutils.
[source]: Add origin, fetching tarball from ELPA.
[native-inputs]: Add texinfo.
[arguments]: Add ‘make-info’ phase.
[home-page, license]: Fill in missing information no longer inherited.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r--gnu/packages/databases.scm25
1 files changed, 18 insertions, 7 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 00e26e4839..cb3ceda5a9 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -141,6 +141,7 @@
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages terminals)
+  #:use-module (gnu packages texinfo)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
@@ -1344,23 +1345,33 @@ types are supported, as is encryption.")
 
 (define-public emacs-recutils
   (package
-    (inherit recutils)
     (name "emacs-recutils")
+    (version "1.8.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://elpa.gnu.org/packages/"
+                                  "rec-mode-" version ".tar"))
+              (sha256
+               (base32
+                "06mjj1la2v8zdhsflj3mwcp7qnkj7gxzm8wbk2pli1h8vnq2zvd0"))
+              (snippet '(begin (delete-file "rec-mode.info")))))
     (build-system emacs-build-system)
     (arguments
      '(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'change-directory
+         (add-before 'install 'make-info
            (lambda _
-             (chdir "etc")
-             #t)))))
-    (native-inputs '())
-    (inputs '())
+             (invoke "makeinfo" "--no-split"
+                     "-o" "rec-mode.info" "rec-mode.texi"))))))
+    (native-inputs
+     `(("texinfo" ,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
 supports editing, navigation, and querying of recutils database files
-including field and record folding.")))
+including field and record folding.")
+    (license license:gpl3+)))
 
 (define-public rocksdb
   (package