GNU bug report logs -
#51950
[PATCH 1/1] gnu: Add emacs-ddskk-with-nicola
Previous Next
Reported by: Taiju HIGASHI <higashi <at> taiju.info>
Date: Thu, 18 Nov 2021 14:51:03 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Am Donnerstag, den 18.11.2021, 23:01 +0900 schrieb Taiju HIGASHI:
> ---
> gnu/packages/emacs-xyz.scm | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index e141c390d8..0ca2bbc066 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -28635,6 +28635,35 @@ (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
> + (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)
> + (let ((out (assoc-ref outputs "out")))
> + (substitute* "Makefile"
> + (("PREFIX = NONE")
> + (string-append "PREFIX = " out))
> + (("LISPDIR = NONE")
> + (string-append "LISPDIR = " out
> "/share/emacs/site-lisp"))))
> + (make-file-writable "NICOLA-DDSKK-CFG")
> + (emacs-substitute-sexps "NICOLA-DDSKK-CFG"
> + ("setq NICOLA-DDSKK_PREFIX" ""))
> + #t))
You don't need to patch the Makefile to set those variables, use
#:make-flags instead.
> + (delete 'check)))))))
Again, use #:tests? and provide a comment as to why you're setting it
to #f.
Cheers
This bug report was last modified 3 years and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.