[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
370/416: gnu: Add mecab-ipadic.
From: |
guix-commits |
Subject: |
370/416: gnu: Add mecab-ipadic. |
Date: |
Fri, 14 Apr 2023 15:26:27 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 04688c56e1817fc036273f2bd13fa9fad4371d51
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Mon Jul 4 21:42:01 2022 +0200
gnu: Add mecab-ipadic.
* gnu/packages/language.scm (mecab-ipadic): New variable.
---
gnu/packages/language.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 88fb43b9bc..f643136873 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -979,3 +979,30 @@ fi")))))))
collaboration between the Kyoto university and Nippon Telegraph and Telephone
Corporation. The engine is independent of any language, dictionary or
corpus.")
(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"))))
- 415/416: gnu: ansible: Update to 7.4.0., (continued)
- 415/416: gnu: ansible: Update to 7.4.0., guix-commits, 2023/04/14
- 401/416: gnu: python-afdko: Update to 3.9.4., guix-commits, 2023/04/14
- 402/416: gnu: python-statmake: Update to 0.6.0., guix-commits, 2023/04/14
- 395/416: gnu: heimdal: Apply patch to fix CVE-2022-45142., guix-commits, 2023/04/14
- 345/416: gnu: Add rust-base64-0.21., guix-commits, 2023/04/14
- 344/416: gnu: rust-futures-sink-0.3: Update to 0.3.26., guix-commits, 2023/04/14
- 367/416: gnu: python-gst: Update to 1.22.2., guix-commits, 2023/04/14
- 358/416: gnu: python-trio-typing: Switch to pyproject-build-system., guix-commits, 2023/04/14
- 331/416: gnu: rust-macrotest-1: Update to 1.0.9., guix-commits, 2023/04/14
- 355/416: gnu: python-pyopenssl: Update to 23.1.1., guix-commits, 2023/04/14
- 370/416: gnu: Add mecab-ipadic.,
guix-commits <=
- 384/416: news: Add 'de' translation., guix-commits, 2023/04/14
- 380/416: gnu: go-1.18: Adjust patch-gcclib phase., guix-commits, 2023/04/14
- 389/416: gnu: gerbil: Update to 0.17.0., guix-commits, 2023/04/14
- 383/416: news: Add entry for 'guix shell --container --nesting'., guix-commits, 2023/04/14
- 392/416: gnu: opendht: Update to 2.5.2., guix-commits, 2023/04/14
- 381/416: gnu: go-1.17: Fix test suite on powerpc64le-linux., guix-commits, 2023/04/14
- 412/416: gnu: xsettingsd: Use cmake-build-system., guix-commits, 2023/04/14
- 408/416: gnu: psautohint: Disable a failing test., guix-commits, 2023/04/14