From patchwork Mon Oct 17 08:44:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 43462 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 5405527BBEA; Mon, 17 Oct 2022 09:48:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 9EC5527BBE9 for ; Mon, 17 Oct 2022 09:48:58 +0100 (BST) Received: from localhost ([::1]:36528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLnt-0000cy-Cr for patchwork@mira.cbaines.net; Mon, 17 Oct 2022 04:48:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLl4-000858-NX for guix-patches@gnu.org; Mon, 17 Oct 2022 04:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okLl4-0004ke-FP for guix-patches@gnu.org; Mon, 17 Oct 2022 04:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okLl4-0004gt-3c for guix-patches@gnu.org; Mon, 17 Oct 2022 04:46:02 -0400 Subject: bug#58436: [PATCH] gnu: Add hunspell-dict-hu. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 17 Oct 2022 08:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58436 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai Cc: 58436-done@debbugs.gnu.org Mail-Followup-To: 58436@debbugs.gnu.org, ludo@gnu.org, attila@lendvai.name Received: via spool by 58436-done@debbugs.gnu.org id=D58436.166599630417948 (code D ref 58436); Mon, 17 Oct 2022 08:46:01 +0000 Received: (at 58436-done) by debbugs.gnu.org; 17 Oct 2022 08:45:04 +0000 Received: from localhost ([127.0.0.1]:47247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLk8-0004fP-D9 for submit@debbugs.gnu.org; Mon, 17 Oct 2022 04:45:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okLk6-0004ec-8k for 58436-done@debbugs.gnu.org; Mon, 17 Oct 2022 04:45:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLk0-0004OO-JU; Mon, 17 Oct 2022 04:44:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ieFrFyqMSCsw1wi5yuwyVfd7yWM4E/e8rEjFQsyvhww=; b=h6PwXn0FzRiw4864lDCQ +x05uzet+eNOW9RLVpIoV6CW7y0rdxml7FFag1gOjGsEGrzcc+bdEul6XcWIvzRSMwWvwYuX7xqoa qSnajeun3n59d7foY+QcGg5YTCJQKAIDu/NoexN0RWRgu+++pCCY04tXfdT7MZFCM3RxOdzPHDCQo J/UDISctvzakkfnQoPQZaH/HetRCY7HieuyIs1KKQSwUvibfHJvyE9K7Xx8Upv4bUK4g2i3X95U7q drXNjK7J2Eza5R6Lv5crqesH9uqeS1XNulccs1ckOkVbZbYG7gF3SD/Sxue2StHBVf9dreys1dY85 wXqkwxEydrhSgQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=52990 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLk0-0001TD-14; Mon, 17 Oct 2022 04:44:56 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: <20221011120218.22347-1-attila@lendvai.name> Date: Mon, 17 Oct 2022 10:44:53 +0200 In-Reply-To: <20221011120218.22347-1-attila@lendvai.name> (Attila Lendvai's message of "Tue, 11 Oct 2022 14:02:19 +0200") Message-ID: <878rlehm9m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, Attila Lendvai skribis: > --- > > builds it from source. Applied with the simplifications below and a commit log. > testing method: after including this in the profile, LibreOffice Writer started to underline typos in hungarian paragraphs. Last time I tried, Hunspell dictionaries were not found in LibreOffice: . Is this problem gone for you? Thanks, Ludo’. diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index fdb987af59..8343f8ffc6 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -46,7 +46,6 @@ (define-module (gnu packages libreoffice) #:use-module (gnu packages aspell) #:use-module (gnu packages autotools) #:use-module (gnu packages base) - #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages check) @@ -61,7 +60,6 @@ (define-module (gnu packages libreoffice) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages game-development) - #:use-module (gnu packages gawk) #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) #:use-module (gnu packages glib) @@ -1016,30 +1014,31 @@ (define-public hunspell-dict-hu (base32 "0r22rvqrp5bzgr9sqyap82kibi5z9n6xy5b06si28idqijw7c772")))) (build-system gnu-build-system) (arguments - (list - #:make-flags - #~(list - "myspell" - "--jobs=1" ; the Makefile is not ready for parallelism - (string-append "SH=" (search-input-file %build-inputs "/bin/bash")) - (string-append "AWK=" (search-input-file %build-inputs "/bin/awk"))) - #:phases - #~(modify-phases %standard-phases - (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "config" - (("/usr/bin/awk") - (search-input-file %build-inputs "/bin/awk"))))) - (replace 'install ;no install target - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (share (string-append out "/share/hunspell/"))) - (install-file "hu_HU.aff" share) - (install-file "hu_HU.dic" share) - #t)))) - #:tests? #f)) ; no tests + (list #:make-flags + #~(list "myspell" + "--jobs=1" ;the Makefile is not ready for parallelism + (string-append "SH=" + (search-input-file %build-inputs + "/bin/bash")) + (string-append "AWK=" + (search-input-file %build-inputs + "/bin/awk"))) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "config" + (("/usr/bin/awk") + (which "awk"))))) + (replace 'install ;no install target + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share/hunspell/"))) + (install-file "hu_HU.aff" share) + (install-file "hu_HU.dic" share))))) + #:tests? #f)) ; no tests (native-inputs - (list bash-minimal gawk hunspell m4 recode)) + (list hunspell m4 recode)) (synopsis "Hunspell dictionary for Hungarian (hu_HU)") (description "This package provides a dictionary for the Hunspell spell-checking library.")