From: Feng Shu <tumashu@163.com>
To: 60767@debbugs.gnu.org
Subject: [bug#60767] [PATCH] gnu: Add emacs-liberime.
Date: Fri, 13 Jan 2023 08:39:04 +0800 [thread overview]
Message-ID: <87ilhbcil6.fsf@163.com> (raw)
* gnu/packages/emacs-xyz.scm (emacs-liberime): 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 bd8675f63a..9ebbbca366 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31362,6 +31362,46 @@ REPL appropriate to the current major mode.")
"Rime is an Emacs input method built upon Rime input method engine.")
(license license:gpl3+)))
+(define-public emacs-liberime
+ (let ((commit "70ad2e6e1f0ff74fc8b9b5177b9aba645a18e546")
+ (revision "0"))
+ (package
+ (name "emacs-liberime")
+ (version (git-version "v0.0.6" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/merrickluo/liberime")
+ (commit commit)))
+ (sha256
+ (base32
+ "1y9a1khfyz262yarn7rd0hg5vxaz8j80mhad7mh01m6685nfw39b"))
+ (file-name (git-file-name name version))))
+ (build-system emacs-build-system)
+ (arguments
+ (list
+ #:include #~(cons "^src/liberime-core.so$" %default-include)
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-files-and-patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (delete-file-recursively "emacs-module")
+ (emacs-substitute-variables "liberime.el"
+ ("liberime-module-file"
+ (string-append #$output "/src/liberime-core.so"))
+ ("liberime-shared-data-dir"
+ (search-input-directory inputs "share/rime-data")))))
+ (add-before 'install 'build-emacs-module
+ (lambda _
+ (invoke "make"))))))
+ (inputs (list librime rime-data))
+ (home-page "https://github.com/merrickluo/liberime")
+ (synopsis "Librime Emacs Lisp Binding")
+ (description
+ "Liberime is an Emacs dynamic module provide librime bindings.")
+ (license license:gpl3+))))
+
(define-public emacs-bison-mode
(package
(name "emacs-bison-mode")
--
2.30.2
--
next reply other threads:[~2023-01-13 1:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 0:39 Feng Shu [this message]
2023-01-13 22:01 ` bug#60767: [PATCH] gnu: Add emacs-liberime Nicolas Goaziou
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=87ilhbcil6.fsf@163.com \
--to=tumashu@163.com \
--cc=60767@debbugs.gnu.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).