From patchwork Thu Nov 21 00:50:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Runciter X-Patchwork-Id: 70615 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 A9FCB27BBEA; Thu, 21 Nov 2024 00:51:30 +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 5C4DC27BBE2 for ; Thu, 21 Nov 2024 00:51:30 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDvPX-0004Mn-K5; Wed, 20 Nov 2024 19:51:07 -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 1tDvPU-0004L6-Ca for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:04 -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 1tDvPU-0006vq-4D for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:04 -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=cP7TwCi20WYvMl+V8vl72RNvfzaCyMORVKA1qOQ58NM=; b=gEEbfy4yMHbDLRmVO3wC971zd2Yhpxwn6XYghUV2fIpDRShSvzPDgCm2bIyCRgNUpSqEQYanp700M0b62DxM/XXET2Mdg3pMmADOCAXalpjwh6GTXVeMbBqWvHXBU5C+tcsJlcFPHSrSmmPC0Z6SBXlJCBCbCzXyDeowrsg5e5dnvLRvbLO0uJoYyKqBFbVWAzTVCGFOveBs0DsGhaRITWQBxi1EPz7K0uFsAoOzitlP9LEpElTpjPEKzhKJrcR5yiXMf4DHphoYmt2zmAj4/p4QmnB2PJhSk3SeVaYbMbPXDOzAp6mxR/cRJVPx7l7QUePcDIOZBIOmNAGptUT+tw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tDvPT-0001ro-Ue for guix-patches@gnu.org; Wed, 20 Nov 2024 19:51:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74411] [PATCH v2 4/5] gnu: Add freedict-dictionaries. 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.17321502217090 (code B ref 74411); Thu, 21 Nov 2024 00:51:03 +0000 Received: (at 74411) by debbugs.gnu.org; 21 Nov 2024 00:50:21 +0000 Received: from localhost ([127.0.0.1]:48423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDvOm-0001qH-Vy for submit@debbugs.gnu.org; Wed, 20 Nov 2024 19:50:21 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:14035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tDvOk-0001po-P3 for 74411@debbugs.gnu.org; Wed, 20 Nov 2024 19:50:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org; s=protonmail; t=1732150212; x=1732409412; bh=cP7TwCi20WYvMl+V8vl72RNvfzaCyMORVKA1qOQ58NM=; 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=fUcvFwlQoGcjfA1Lg1EssRQtvWiIHYk3qaJOPH4lZ+Nwc7aUne5fYbCcUgpxRLnog vk1kUvRpGXhptHfSF6sqpYC4J864tpHAT5EVSoE0Bq1vxDN/e4xkNer80fC9ekFcqj OrQR/lSqRqEY7FlmIy1bt2GgaE21Wj24vWeTT00L6BwJG7uab+zbDilg27PD93CHgK h9Ig1KyweaMCplUi8XpxPUUCzVaqAdULIWYYg4hAGWWerneJW1G0NRAuLsf5eEvUhZ Nn87LGm6Z+v6wLk75S5ULMUwe61ICXfUUqGmdyiElB6UYt3tLNny4SYGubtXq8TQss GeyQRqXSB/+7w== Date: Thu, 21 Nov 2024 00:50:10 +0000 Message-ID: <1dcd87131c679a4d7e80d9d4c9c44807fb00cf0a.1732150157.git.runciter@whispers-vpn.org> In-Reply-To: References: Feedback-ID: 119317227:user:proton X-Pm-Message-ID: c0bee939c1a6952a9d4f098d90834a3296d58c37 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 (freedict-dictionaries): New variable. Signed-off-by: Runciter --- gnu/packages/dictionaries.scm | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 3470d8d945..3e5d991890 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2019 Pierre Langlois ;;; Copyright © 2020 Lu hux ;;; Copyright © 2022 ROCKTAKEY +;;; Copyright © 2022 Runciter ;;; ;;; This file is part of GNU Guix. ;;; @@ -519,3 +520,50 @@ (define-public freedict-tools-0.6.0 Guix package is installed.") (home-page "https://freedict.org") (license license:gpl2+))) + +(define-public freedict-dictionaries + (package + (name "freedict-dictionaries") + (version "914b5f7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/freedict/fd-dictionaries") + (commit "914b5f754b695e9422bf951837b0682a077e244e"))) + (sha256 + (base32 "0a8k5rq94rl1nmz0354sx2gmyqica0yjavirh5v5wdybkfq8nv83")))) + (inputs (list espeak-ng + python + perl + gzip + tar + libxslt + dictd-1.13.1 + perl-libxml + freedict-tools-0.6.0)) + (arguments + (list + #:tests? #f + #:make-flags #~(list (string-append "PREFIX=" + #$output)) + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'set-tools-prefix-in-makefile + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("FREEDICT_TOOLS \\?= ../tools") + (string-append "export FREEDICT_TOOLS = " + #$(file-append + freedict-tools-0.6.0 + "/share/freedict"))))))))) + (build-system gnu-build-system) + (synopsis "Freedict multilingual dictionaries compiled to the dictd +format") + (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.") + (home-page "https://freedict.org") + (license license:gpl2+)))