summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-01-21 10:57:36 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2024-01-22 00:20:49 +0100
commit119d1e5939cbe0545dc0800304cc9062fc9e0f9a (patch)
tree29fc68fbd756631a2f0204403806be2d6e75f6f5 /gnu
parent79fafbe33cffe7d4eaa35599957c9caa6ee1a5eb (diff)
downloadguix-119d1e5939cbe0545dc0800304cc9062fc9e0f9a.tar.gz
gnu: Add emacs-org-glossary.
* gnu/packages/emacs-xyz.scm (emacs-org-glossary): New variable.

Change-Id: Id087b723709ac5afb7dda0da15eac610c8ab218e
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index eb4146a9da..0407df62d6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36501,6 +36501,45 @@ opening Org Ref's @code{cite:} links.")
 org-mode templates.")
     (license license:gpl3+)))
 
+(define-public emacs-org-glossary
+  (let ((commit "1b9b7fd3d1e6c214c34463e568daaba6df00ec27")
+        (revision "0"))
+    (package
+      (name "emacs-org-glossary")
+      (version (git-version "0.0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://git.tecosaur.net/tec/org-glossary")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "09mg8aqxamnxx8kpdyk074wf2wkm4rx62z7q66azw70hjr1ggwa3"))))
+      (build-system emacs-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'install 'makeinfo
+              (lambda _
+                (invoke "emacs"
+                        "--batch"
+                        "--eval=(require 'ox-texinfo)"
+                        "--eval=(find-file \"org-glossary.org\")"
+                        "--eval=(org-texinfo-export-to-info)")
+                (install-file "org-glossary.info"
+                              (string-append #$output "/share/info")))))))
+      (native-inputs (list texinfo))
+      (home-page "https://git.tecosaur.net/tec/org-glossary")
+      (synopsis "Interact with glossary-like structures in Org documents")
+      (description
+       "Org Glossary defines a flexible model for working with glossary-like
+constructs (glossaries, acronyms, indices, etc.) within Org documents, with
+support for in-buffer highlighting of defined terms and high-quality exports
+across all Org export back-ends.")
+      (license license:gpl3+))))
+
 (define-public emacs-uml-mode
   ;; Package has no release.  Version is extracted from "Version:" keyword in
   ;; main file.