From patchwork Thu Nov 21 00:50:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Runciter X-Patchwork-Id: 70614 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 7A0F827BBEA; Thu, 21 Nov 2024 00:51:16 +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 2E26427BBE2 for ; Thu, 21 Nov 2024 00:51:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDvPU-0004LG-UM; Wed, 20 Nov 2024 19:51:04 -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 1tDvPT-0004Kk-Ow for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:03 -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 1tDvPT-0006vi-GO for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:03 -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=wKEn7CY3lfEDwh/9XpQT4BZR9A4XdZSE8/w0vx4cpk4=; b=oOqN/HT2LwdbwJfFhUkVbc1bDep4Pf+p7lhiiREErlxOkdYBTtORZ0kylvcFCeB2O3FAbgtLogF3goPoBGzW32vQc6SoH+CaXewlkbtO7ckD4mbbaPNcrJAFLJeroCGsCgioDaSTdEKaN7+dCAo7uiygjuLlCrc8lF/G5/pFtJT0DqClaEVqIDJ9lSvMPqgAvYPnANvxdKdqUnGUIyMmuN0ho7nE4/ALXLUvszWmIL1NS68AqrrCEbTGa62PXBX50+PCTsYPCd5DSrUD7HH+nr5Mu2E4tb2mZNkw01cM17fvlGy3UCP5/iahhfK4kmHr4QKMvoFslIW9a5oxr69knw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDvPT-0001rh-Bq for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74411] [PATCH v2 3/5] gnu: Add freedict-tools-0.6.0. Resent-From: Runciter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Nov 2024 00:51:03 +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.17321502167070 (code B ref 74411); Thu, 21 Nov 2024 00:51:03 +0000 Received: (at 74411) by debbugs.gnu.org; 21 Nov 2024 00:50:16 +0000 Received: from localhost ([127.0.0.1]:48419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDvOh-0001py-EE for submit@debbugs.gnu.org; Wed, 20 Nov 2024 19:50:15 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:37397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDvOf-0001mI-Pw for 74411@debbugs.gnu.org; Wed, 20 Nov 2024 19:50:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org; s=protonmail; t=1732150207; x=1732409407; bh=wKEn7CY3lfEDwh/9XpQT4BZR9A4XdZSE8/w0vx4cpk4=; 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=JP4MGM5f57dkE5S0dKY7CBu8F2ixxXMzxtuelvJ9DhsB66Y5zjswIPK7U87HBTj+P 5QgfYG7mF1TtwvHciA9YslpL1l+Wh9GHznlAbl4/xCNRhvjn3iHC5cL68lzSLAr+D6 qQN1JoQqABAB90BYjwgaMJhjyUgPPQpK+snxkejP/I3hcVZKMuH5aDAZ+SfWT0kYGI 2I6TTnjClQVhes86F/rDZ5raYxz7Lz5wHNo4vrxzsYkABpZgt2AiDPP4ALug/Ypanw J88OKRx51PGatuzytGf3zyDqHGfb6GhXrTn6cdCdTjn+OKOt7jb7mrLx9WRFHs3sA7 A6ZZreuptYcaQ== Date: Thu, 21 Nov 2024 00:50:05 +0000 Message-ID: <97e68e5bd9933f46b34309dc6dccda8ce9cec646.1732150157.git.runciter@whispers-vpn.org> In-Reply-To: References: Feedback-ID: 119317227:user:proton X-Pm-Message-ID: 86aaf9292c1d27c044a04a67c6f57c674d03d669 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 | 55 ++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 3f9b59c960..3470d8d945 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,52 @@ (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-0.6.0 + (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-1.13.1 + 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 "FreeDict tools to import, export (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+)))