From patchwork Sun Dec 1 21:00:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Runciter X-Patchwork-Id: 34364 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 CDD2B27BBEA; Sun, 1 Dec 2024 21:01:23 +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 7244927BBE2 for ; Sun, 1 Dec 2024 21:01:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHr46-0000GK-KW; Sun, 01 Dec 2024 16:01:16 -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 1tHr3v-0000Fk-HP for guix-patches@gnu.org; Sun, 01 Dec 2024 16:01:06 -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-00060x-U2 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=KA7MoKEu5zZGMzujDHwzyBZla8mbyNRRI/zqtc541aQ=; b=jcGytOn42LHvyB7kFQe2erDC3g9WVVGs74NQVHu/EgIWxJQqOjctEStLj0fn8NxuznL7z6MWwMAoXVu8I4a0I3oQacQ2IBnZQO5bwZQk1jwNcSAxVJmmjvf7jilqmxKwVvjZ7j4Ta07Lr6LLnuGELhwqmulT4OVMlZmpBDRT5gHxwDg40/dRbHAp6QIaWuxjQbt0Y7WHqdthhjAU/+AJUjUZD/oKHpR95+t4C3tuMTiCvrz2iWOpQrx9BF4EeR+xFeL1MXKtu165xAbaHqt3o1Kwp5Pt2yC7ov6bEfPnkr+wijVmHdwZVeyV2GnAPrHiwqZOTv8WTFvZ7qqXLsZH5w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHr3u-0008Rm-P3 for guix-patches@gnu.org; Sun, 01 Dec 2024 16:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74411] [PATCH v3 4/5] gnu: Add freedict-dictionaries. 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.173308682932375 (code B ref 74411); Sun, 01 Dec 2024 21:01:02 +0000 Received: (at 74411) by debbugs.gnu.org; 1 Dec 2024 21:00:29 +0000 Received: from localhost ([127.0.0.1]:53265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHr3M-0008Q7-Py for submit@debbugs.gnu.org; Sun, 01 Dec 2024 16:00:29 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:32971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHr3K-0008Ps-6R for 74411@debbugs.gnu.org; Sun, 01 Dec 2024 16:00:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org; s=protonmail; t=1733086820; x=1733346020; bh=KA7MoKEu5zZGMzujDHwzyBZla8mbyNRRI/zqtc541aQ=; 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=gtVZuxrqAP6sikMxQEkznP01xrxRPEUoTZweMrAjsfwgfoqaN+jG3Ydb5WJ0egDEm XnodgnoLZaTy2+wOfofVS+x0pXjudWSuKu2b6iY/f67mqtocyoK5hJqy4oEgocBZEi lPuBJRtAcWcZFBD88+gGBrnV9HhFimoeiGfC3rllmUMkdzw9vAecjPs+lEaSV7PEhI eWV59xW7rV1hcCVjDDFBcin+17yOcwJRlUebqIBSxNYzETfXmQCwsLlxwgzk1enuep a9SRtR5WmNU4hdhx0UkJbb4X/lYGEobo9mCV7H+lsWhptMv2iqR52V/POb0202h5tU 3Sd5igiUQTY0Q== Date: Sun, 01 Dec 2024 21:00:16 +0000 Message-ID: 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: 62e30861744716e1a8cd4c3a29c27bd023fc20fd 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 | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 3141d6d46d..e6f9f7f5a8 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. ;;; @@ -518,3 +519,44 @@ (define-public freedict-tools 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 libxslt dictd perl-libxml freedict-tools)) + (native-inputs (list python perl)) + (arguments + (list + ;; "validation" target fails because of hardcoded + ;; path /usr/bin/xmllint in freedict-tools + #: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 + "/share/freedict"))))))))) + (build-system gnu-build-system) + (synopsis "Multilingual dictionaries compiled to the DICT 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+)))