From patchwork Sun Dec 1 21:00:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Runciter X-Patchwork-Id: 34365 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5A1E727BBE2; Sun, 1 Dec 2024 21:01:44 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CAABC27BBE2 for ; Sun, 1 Dec 2024 21:01:43 +0000 (GMT) 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 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 X-Patchwork-Original-From: Runciter via Guix-patches via From: Runciter Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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)) (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} package.") (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 \\?=.*") + (string-append "PREFIX = " + #$output "\n"))) + (substitute* "mk/dicts.mk" + (("available_platforms := src dictd slob") + "available_platforms := 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+)))