mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 19:49:25 -05:00
gnu: Add mecab-ipadic.
* gnu/packages/language.scm (mecab-ipadic): New variable.
This commit is contained in:
parent
55f9bfeda9
commit
5d2273aaa0
1 changed files with 27 additions and 0 deletions
|
@ -977,3 +977,30 @@ (define-public mecab
|
||||||
collaboration between the Kyoto university and Nippon Telegraph and Telephone
|
collaboration between the Kyoto university and Nippon Telegraph and Telephone
|
||||||
Corporation. The engine is independent of any language, dictionary or corpus.")
|
Corporation. The engine is independent of any language, dictionary or corpus.")
|
||||||
(license (list license:gpl2+ license:lgpl2.1+ license:bsd-3))))
|
(license (list license:gpl2+ license:lgpl2.1+ license:bsd-3))))
|
||||||
|
|
||||||
|
(define-public mecab-ipadic
|
||||||
|
(package
|
||||||
|
(name "mecab-ipadic")
|
||||||
|
(version "2.7.0")
|
||||||
|
(source (package-source mecab))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:configure-flags
|
||||||
|
(list (string-append "--with-dicdir=" (assoc-ref %outputs "out")
|
||||||
|
"/lib/mecab/dic")
|
||||||
|
"--with-charset=utf8")
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _
|
||||||
|
(chdir "mecab-ipadic")))
|
||||||
|
(add-before 'configure 'set-mecab-dir
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(setenv "MECAB_DICDIR" (string-append (assoc-ref outputs "out")
|
||||||
|
"/lib/mecab/dic")))))))
|
||||||
|
(native-inputs (list mecab)); for mecab-config
|
||||||
|
(home-page "https://taku910.github.io/mecab")
|
||||||
|
(synopsis "Dictionary data for MeCab")
|
||||||
|
(description "This package contains dictionnary data derived from
|
||||||
|
ipadic for use with MeCab.")
|
||||||
|
(license (license:non-copyleft "mecab-ipadic/COPYING"))))
|
||||||
|
|
Loading…
Reference in a new issue