[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
101/295: gnu: Add emacs-libyaml.
From: |
guix-commits |
Subject: |
101/295: gnu: Add emacs-libyaml. |
Date: |
Mon, 27 Jul 2020 06:25:39 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit ba250300980a0408716c50a4656d9aaf85fcfca4
Author: Fredrik Salomonsson <plattfot@gmail.com>
AuthorDate: Sat Jun 27 14:26:57 2020 -0700
gnu: Add emacs-libyaml.
* gnu/packages/emacs-xyz.scm (emacs-libyaml): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/emacs-xyz.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 463cdab..46b546f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -142,6 +142,7 @@
#:use-module (gnu packages version-control)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages w3m)
+ #:use-module (gnu packages web)
#:use-module (gnu packages wget)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
@@ -19277,6 +19278,58 @@ processes for Emacs")
(lambda _
(copy-recursively "../extra" ".")))))))))
+(define-public emacs-libyaml
+ ;; Upstream made no release so far.
+ (let ((version "0")
+ (revision "1")
+ (commit "703e0d448c7ee24e25b513a3c65980c80e166805"))
+ (package
+ (name "emacs-libyaml")
+ (version (git-version version revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/syohex/emacs-libyaml")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "08l7pm9v50ykd3fkbm0bh2kcd57cadbc5i9r6rj51vd32w3pl2yl"))))
+ (build-system emacs-build-system)
+ (arguments
+ `(#:tests? #f ;no test
+ #:modules ((guix build emacs-build-system)
+ (guix build emacs-utils)
+ (guix build utils))
+ #:imported-modules (,@%emacs-build-system-modules
+ (guix build gnu-build-system))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'add-source-to-load-path 'substitute-libyaml-core-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (chmod "libyaml.el" #o644)
+ (substitute* "libyaml.el"
+ (("^\\(require 'libyaml-core\\)")
+ (string-append "(module-load \"" (assoc-ref outputs "out")
+ "/lib/libyaml-core.so\")")))
+ #t))
+ (add-after 'check 'make
+ ;; Run make.
+ (lambda* (#:key (make-flags '()) outputs #:allow-other-keys)
+ ;; Compile the shared object file.
+ (apply invoke "make" "all" "CPPFLAGS=" make-flags)
+ ;; Move the file into /lib.
+ (install-file "libyaml-core.so"
+ (string-append (assoc-ref outputs "out") "/lib"))
+ #t)))))
+ (native-inputs `(("libyaml" ,libyaml)))
+ (home-page "https://github.com/syohex/emacs-libyaml")
+ (synopsis "Libyaml bindings for Emacs")
+ (description
+ "This package implements bindings for LibYAML to be able to parse YAML
+files in Elisp.")
+ (license license:gpl3+))))
+
(define-public emacs-lsp-java
(package
(name "emacs-lsp-java")
- 82/295: gnu: Add rust-sha2-0.9., (continued)
- 82/295: gnu: Add rust-sha2-0.9., guix-commits, 2020/07/27
- 93/295: gnu: Rename rust-unicase-2.6 to rust-unicase-2., guix-commits, 2020/07/27
- 69/295: gnu: rust-block-padding-0.1: Don't skip build., guix-commits, 2020/07/27
- 67/295: gnu: Add rust-cpuid-bool-0.1., guix-commits, 2020/07/27
- 76/295: gnu: rust-block-buffer-0.7: Don't skip build., guix-commits, 2020/07/27
- 83/295: gnu: rust-sha2-0.8: Update to 0.8.2., guix-commits, 2020/07/27
- 84/295: gnu: rust-sha2-asm-0.5: Update to 0.5.4., guix-commits, 2020/07/27
- 88/295: gnu: Add rust-minisign., guix-commits, 2020/07/27
- 92/295: gnu: Remove rust-unicase-2.4., guix-commits, 2020/07/27
- 100/295: gnu: Remove rust-rustc-hash-1.0., guix-commits, 2020/07/27
- 101/295: gnu: Add emacs-libyaml.,
guix-commits <=
- 64/295: doc: Add progress display in 'dd' command lines., guix-commits, 2020/07/27
- 99/295: gnu: rust-bincode-1: Update to 1.3.1., guix-commits, 2020/07/27
- 109/295: gnu: Add portablexdr., guix-commits, 2020/07/27
- 115/295: gnu: at-spi2-core: Update package definition., guix-commits, 2020/07/27
- 94/295: gnu: Remove rust-memchr-2.2., guix-commits, 2020/07/27
- 96/295: gnu: rust-csv-core-0.1: Fix build., guix-commits, 2020/07/27
- 104/295: services: virtualization: Export hurd-vm-configuration accessors., guix-commits, 2020/07/27
- 110/295: gnu: Add libxmlb., guix-commits, 2020/07/27
- 119/295: gnu: font-cantarell: Update package definition., guix-commits, 2020/07/27
- 105/295: gnu: Add krb5-auth-dialog., guix-commits, 2020/07/27