[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51950] [PATCH v2] gnu: Add emacs-ddskk-with-nicola
From: |
Taiju HIGASHI |
Subject: |
[bug#51950] [PATCH v2] gnu: Add emacs-ddskk-with-nicola |
Date: |
Mon, 22 Nov 2021 11:58:34 +0900 |
---
gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d3338d45bd..7f82bace7b 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -28631,6 +28631,34 @@ (define-public emacs-ddskk
conversion program}, a Japanese input method on Emacs.")
(license license:gpl2+))))
+(define-public emacs-ddskk-with-nicola
+ (package
+ (inherit emacs-ddskk)
+ (name "emacs-ddskk-with-nicola")
+ (synopsis "Simple Kana to Kanji conversion program (with NICOLA)")
+ (propagated-inputs
+ `(("emacs-ddskk" ,emacs-ddskk)))
+ (arguments
+ `(#:make-flags
+ (let ((out (assoc-ref %outputs "out")))
+ (append
+ (list (string-append "PREFIX=" out)
+ (string-append "LISPDIR=" out "/share/emacs/site-lisp"))))
+ #:tests? #f ; no test
+ ,@(substitute-keyword-arguments (package-arguments emacs-ddskk)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "nicola")
+ #t))
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (make-file-writable "NICOLA-DDSKK-CFG")
+ (emacs-substitute-sexps "NICOLA-DDSKK-CFG"
+ ("setq NICOLA-DDSKK_PREFIX" ""))
+ #t)))))))))
+
(define-public emacs-objed
(package
(name "emacs-objed")
--
2.33.1