From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2OjTBrjOTGdpxAAAe85BDQ:P1 (envelope-from ) for ; Sun, 01 Dec 2024 21:01:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2OjTBrjOTGdpxAAAe85BDQ (envelope-from ) for ; Sun, 01 Dec 2024 22:01:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Kxp8LnU6; dkim=fail ("headers rsa verify failed") header.d=whispers-vpn.org header.s=protonmail header.b=kCD5xoPs; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733086904; a=rsa-sha256; cv=none; b=Xq8EOutojCpfXekS+CXHSSdL/aZqy+kzzmnfyKSrPQ04ucG39Q87hUuUa4rE9a8eeTAG4Q 1jq/rGmIv0y71Z4XJ/AC8w8/BQvPrTHacnptsykwFIv3efeqxDI4kounVd88j7bdyYwGXR 8zui4VaTXJC0+GRybtyKVcMRtBghyWCEKt/Ab0EZJrXzLATbAikwnKSdw1iTLjwUx6lWgX PjJ1QrZOOEelJGrV6nqf18zW9s0WJEdPfVjlCpUdXkDxfHwl1VqADbtaqQUdzlsAK1SgXP opfD9BKIfSMvJE9ouOE+ivNep3BPIStQT7hW4o0M0iu2Ks1Qzu42ihufccll3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Kxp8LnU6; dkim=fail ("headers rsa verify failed") header.d=whispers-vpn.org header.s=protonmail header.b=kCD5xoPs; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733086904; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=uG0dDk/raJ3grzOOJUWMfN4KhjjzZnSK/cNbzS/BspU=; b=QplHjHULXjcKc9sY905dOHwUo4nK3Pan4hSMg65asRmHRq1olsfZwBBJCu6kohRd1sJWzB w1ce7M38ubsueAQtukFGtJRjxm2gv3lY9ZO+yCazMGK+vdZ1BBu6kq4GLmUKbzKICSK3j6 MsO74M0+i+xk+6oDcACrPdeWCOj4vT853Tzidu4uMG0Gu7fWL8Dnwo79umBbQyfl0zeBsc Q/a5acMhy57sL+llC2g6ZNQmGMG4GCEsv9FwURa/+h1oFj9jGqbC80UNyvCeESjdNTwNNL 9gPHADU8Z/MHArR/M578Ep+v7fQazUl54cvAeHiZ5wtfeSBafA/0vW/3Cqg2ig== 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 DE1C018B9 for ; Sun, 01 Dec 2024 22:01:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHr4E-0000IG-U0; Sun, 01 Dec 2024 16:01:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHr3u-0000FV-N1 for guix-patches@gnu.org; Sun, 01 Dec 2024 16:01:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHr3u-00060k-E0 for guix-patches@gnu.org; Sun, 01 Dec 2024 16:01:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=uG0dDk/raJ3grzOOJUWMfN4KhjjzZnSK/cNbzS/BspU=; b=Kxp8LnU6Fj/8UDQBS0VKxHEUQPQkeei4Cbt61pxA2leziLM9omEJps0Gnh9Cg6HC/FqS94YwL6PzcwZjOmyQbzpbGLKORKfECaj76DS5XfuunZDTKOcak/L1c+FzCgyZmaxEnBJ8YP7kdvHCjtryPqSFKh1g7YTgPJ7MAlN3z4dyCRrd5OZQX9SOVCKAcXjDlrThsONMni1//YdA6qli8BRkO5+W1gOVaP4ht/rJfrW74gSiKHmZu3jN3VrmEgkqUL6TJIh1ezq2JcsyJS9RYuWNyKA7afKMNrSfRi1K22ogE75q1ExJnAN0Sn+/132DgmcecGwIr8IhE3WpOll+bA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHr3u-0008Rf-9I for guix-patches@gnu.org; Sun, 01 Dec 2024 16:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74411] [PATCH v3 3/5] gnu: Add freedict-tools. Resent-From: Runciter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Dec 2024 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74411 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74411@debbugs.gnu.org Cc: Runciter Received: via spool by 74411-submit@debbugs.gnu.org id=B74411.173308681932350 (code B ref 74411); Sun, 01 Dec 2024 21:01:02 +0000 Received: (at 74411) by debbugs.gnu.org; 1 Dec 2024 21:00:19 +0000 Received: from localhost ([127.0.0.1]:53261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHr3D-0008Pd-9G for submit@debbugs.gnu.org; Sun, 01 Dec 2024 16:00:19 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:43843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHr3B-0008O0-3U for 74411@debbugs.gnu.org; Sun, 01 Dec 2024 16:00:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org; s=protonmail; t=1733086811; x=1733346011; bh=uG0dDk/raJ3grzOOJUWMfN4KhjjzZnSK/cNbzS/BspU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=kCD5xoPsnSrCDY3Kwn+sT8WEcfMQ1uhZM1BavbbV8oKKWEmS24HUuj8jpB9TcCDhX zjPADOLMUgk9qhR2toVon39E4A+S79RH3tizjrJ4z0EJTiRRhKN+chnY+mjOGElqFc hgCm8dfvuX0B6+TL3czVwiEP2UqE8vEsxqkTJdi6QcaMHLdlVSIRtl2yvrNptgt5eV Iac+HQQWm5ZfVoF8+4rchTp6s7H0dmMBrNvGyAj0mfsYsC4LJ0V1OXDIsRWjHf55zz AumZ7Vc/Yyi8DIqJwEHfo8eSaxAxBvzVYmzEIQMhFNmdo3PLslqFe8ey6lDkP36ME7 lqByhcrtOjUEQ== Date: Sun, 01 Dec 2024 21:00:05 +0000 Message-ID: <8e0e8a272dfabae8164a9662089f6370dc6f51ad.1733086737.git.runciter@whispers-vpn.org> In-Reply-To: <5aeac28fdf163ab55801c6185c0dc47f35e649ef.1733086737.git.runciter@whispers-vpn.org> References: <5aeac28fdf163ab55801c6185c0dc47f35e649ef.1733086737.git.runciter@whispers-vpn.org> Feedback-ID: 119317227:user:proton X-Pm-Message-ID: 2e2fcd3ccaad0f4ceeb8b61c497f4a8748d7440a MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-to: Runciter X-ACL-Warn: , Runciter via Guix-patches From: Runciter via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: DE1C018B9 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.62 X-Spam-Score: -3.62 X-TUID: s2KB13ewj3YF * gnu/packages/dictionaries.scm (freedict-tools-0.6.0): New variable. Signed-off-by: Runciter --- gnu/packages/dictionaries.scm | 54 ++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 3f9b59c960..3141d6d46d 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -28,6 +28,7 @@ (define-module (gnu packages dictionaries) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) @@ -55,7 +56,10 @@ (define-module (gnu packages dictionaries) #:use-module (gnu packages compression) #:use-module (gnu packages tcl) #:use-module (gnu packages web) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages dictd) + #:use-module (gnu packages speech) + #:use-module (gnu packages perl)) =20 =20 (define-public vera @@ -466,3 +470,51 @@ (define-public skk-jisyo for SKK Japanese input systems, and various dictionary files. @file{SKK-JISYO.L} can be used with @code{emacs-ddskk} or @code{uim} packa= ge.") (license license:gpl2+)))) + +(define-public freedict-tools + (package + (name "freedict-tools") + (version "0.6.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/freedict/tools") + (commit "3596640e6e0582cc5fb76a342e5d8e7413aa4b34"))) + (sha256 + (base32 "1raayynvn1j8x0ck8pnbbljl6zxnsyzzil7y54xz03dpj7k9w7mk")))) + (inputs (list espeak-ng + python + perl + gzip + tar + libxslt + dictd + perl-libxml)) + (arguments + (list + #:tests? #f + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'set-prefix-in-makefile + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("PREFIX \\?=3D.*") + (string-append "PREFIX =3D " + #$output "\n"))) + (substitute* "mk/dicts.mk" + (("available_platforms :=3D src dictd slob") + "available_platforms :=3D dictd"))))))) + (build-system gnu-build-system) + (synopsis "Build and manage FreeDict dictionaries") + (description + "FreeDict is a project that offers over 140 free +dictionaries in about 45 languages, with the right to study, change and +modify them. You can use them offline on your computer or mobile phone +and export them to any format and application. + +In order to limit store size and build complexity, only the build +targets that build dictionaries in dictd format are retained when this +Guix package is installed.") + (home-page "https://freedict.org") + (license license:gpl2+))) --=20 2.46.0