From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0ElBL9BCw2JiawAAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 21:43:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mCRDLdBCw2JfXwAAG6o9tA (envelope-from ) for ; Mon, 04 Jul 2022 21:43:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5066722071 for ; Mon, 4 Jul 2022 21:43:12 +0200 (CEST) Received: from localhost ([::1]:42494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8RyR-0000Uu-5j for larch@yhetil.org; Mon, 04 Jul 2022 15:43:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8RyI-0000O6-RA for guix-patches@gnu.org; Mon, 04 Jul 2022 15:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8RyI-0007PE-IZ for guix-patches@gnu.org; Mon, 04 Jul 2022 15:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o8RyI-0007s6-Gp for guix-patches@gnu.org; Mon, 04 Jul 2022 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56386] [PATCH 3/3] gnu: Add mecab-unidic. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Jul 2022 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56386 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56386@debbugs.gnu.org Received: via spool by 56386-submit@debbugs.gnu.org id=B56386.165696375130204 (code B ref 56386); Mon, 04 Jul 2022 19:43:02 +0000 Received: (at 56386) by debbugs.gnu.org; 4 Jul 2022 19:42:31 +0000 Received: from localhost ([127.0.0.1]:48689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8Rxm-0007r0-Lp for submit@debbugs.gnu.org; Mon, 04 Jul 2022 15:42:30 -0400 Received: from lepiller.eu ([89.234.186.109]:42874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o8Rxe-0007qQ-QS for 56386@debbugs.gnu.org; Mon, 04 Jul 2022 15:42:23 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e4284eb2 for <56386@debbugs.gnu.org>; Mon, 4 Jul 2022 19:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=ozRQurRJvGKaK9p9OKjiDK2TW oWOj/ixDSOtLZyJqWs=; b=Y4KD1mYnG0jMKuHqGoCmIOkhGBnCM0K+GQZE5K4ua 4kQiq59eWi7y/gjRZU2YKUagThexZgNvtrZceMm1nvFUMXG3DDldcyR1KpjqRnRk iIWfG2no15Sq0kz9NtBJ/wgAGvOeqiWMaCEVnLYtjGREEu8tcgEFBCzzSsTO6TRr 7eoTjzEBYwXKpsr/raCmft12QOxOB5XbQjcIFO11eQOBwrqjiA5av5U7J9Tb0xkZ baG1f3oAcUcNWyny50Ijp13NYjZFDYazdqvpPj6uP8j8I9IprepXKY78CQOyQKdP /lgRjCN2fnt8ElbRbZ/kY/DXo91wjDBImd1jjtFG0eQBA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 6009996d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <56386@debbugs.gnu.org>; Mon, 4 Jul 2022 19:42:14 +0000 (UTC) From: Julien Lepiller Date: Mon, 4 Jul 2022 21:42:02 +0200 Message-Id: <20220704194202.30958-3-julien@lepiller.eu> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704194202.30958-1-julien@lepiller.eu> References: <20220704194202.30958-1-julien@lepiller.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656963792; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=sKWS4WOJAx/K/hObuqUggHZUyKdd6yG3h5TcS9umfWU=; b=fhQWmkNFF1o8NytohBGZtKtWnLNo2TkLKvstLR2JxNvFHUF7TB+0YjyCwi1Q38O1tjnlKr +XNhvwkLGLeBFLwyACffP9uhA5saQwl5DeaLCgTbWVnhuPkfBnP/nbUj99oCC7SwEC01we KOK8dV/vtaY3st6FcSbnbs8uYHDtUWqIVHMUMGH24Pym9+C/PKV1RK8VnxARUqrFQtUGCg yTbLWIJV82VV+BqYPZu7ZfOsjkOyjzy6mnJz9dF7slRc43XZ64au8nd/bh+RFZnkQUi7Zu IALSqvLBEgqsSd8rbhY8XakZhgbfL6AaQ3w/C2CiRGblhqHPJDNAL8rLz+6P3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656963792; a=rsa-sha256; cv=none; b=gXkmhIcSk181TWKeFxdpxh8SPMUWndLkrl95wtQ0n0Fp1tB/Ceb/bcoGHoNis3DHtMcGoE insgauZb9NxbLPutNuvV6LldiYYdGFwfQXynkKkcrQWLZ2kZYDZv5eodnSoVsbzNWTSsqD rWWTETQZccugqctU0WmUTGoC2JS5lKwN+VcCVtTn5+ljuPNsJs2jvJm2OmJbDSCwTAsMk7 u8iSxzcYniy22G8NwrE0Qwvxxb5F+UFmZw2KI8C1VW6hZwDG6WyjoX9JBK1UqnJZr504rB JIJxCmXFdYaKv1TfygnzmGOIm8WiB7pNSFINBOSXwX9DU9MnGs3vyb9r3HQP9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=Y4KD1mYn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=Y4KD1mYn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5066722071 X-Spam-Score: 7.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: TG4Oq31BepoH * gnu/packages/language.scm (mecab-unidic): New variable. --- gnu/packages/language.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm index 63654c544b..f97b982cb9 100644 --- a/gnu/packages/language.scm +++ b/gnu/packages/language.scm @@ -27,6 +27,7 @@ (define-module (gnu packages language) #:use-module (gnu packages autotools) #:use-module (gnu packages audio) #:use-module (gnu packages base) + #:use-module (gnu packages compression) #:use-module (gnu packages docbook) #:use-module (gnu packages emacs) #:use-module (gnu packages freedesktop) @@ -57,6 +58,7 @@ (define-module (gnu packages language) #:use-module (gnu packages xorg) #:use-module (guix packages) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) @@ -997,3 +999,27 @@ (define-public mecab-ipadic (description "This package contains dictionnary data derived from ipadic for use with MeCab.") (license (license:non-copyleft "mecab-ipadic/COPYING")))) + +(define-public mecab-unidic + (package + (name "mecab-unidic") + (version "3.1.0") + (source (origin + (method url-fetch) + (uri (string-append "https://clrd.ninjal.ac.jp/unidic_archive/cwj/" + version "/unidic-cwj-" version ".zip")) + (sha256 + (base32 + "1z132p2q3bgchiw529j2d7dari21kn0fhkgrj3vcl0ncg2m521il")))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("." "lib/mecab/dic" + #:include-regexp ("\\.bin$" "\\.def$" "\\.dic$" "dicrc"))))) + (native-inputs (list unzip)) + (home-page "https://clrd.ninjal.ac.jp/unidic/en/") + (synopsis "Dictionary data for MeCab") + (description "UniDic for morphological analysis is a dictionary for +analysis with the morphological analyser MeCab, where the short units exported +from the database are used as entries (heading terms).") + (license (list license:gpl2+ license:lgpl2.1 license:bsd-3)))) -- 2.36.1