From patchwork Tue Oct 11 12:02:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Attila Lendvai X-Patchwork-Id: 43322 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 6F7DB27BBEA; Tue, 11 Oct 2022 14:08:27 +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 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 A3E4427BBE9 for ; Tue, 11 Oct 2022 14:08:26 +0100 (BST) Received: from localhost ([::1]:46486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiEzh-00030F-QH for patchwork@mira.cbaines.net; Tue, 11 Oct 2022 09:08:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiE0M-0006dc-Lk for guix-patches@gnu.org; Tue, 11 Oct 2022 08:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiE0M-0002ww-5k for guix-patches@gnu.org; Tue, 11 Oct 2022 08:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiE0L-0000al-S6 for guix-patches@gnu.org; Tue, 11 Oct 2022 08:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58436] [PATCH] gnu: Add hunspell-dict-hu. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Oct 2022 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58436 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58436@debbugs.gnu.org Cc: Attila Lendvai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16654898652228 (code B ref -1); Tue, 11 Oct 2022 12:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Oct 2022 12:04:25 +0000 Received: from localhost ([127.0.0.1]:51289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiDzl-0000Zs-Dy for submit@debbugs.gnu.org; Tue, 11 Oct 2022 08:04:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:40440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiDzg-0000Zg-Lp for submit@debbugs.gnu.org; Tue, 11 Oct 2022 08:04:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiDzM-00061k-UO for guix-patches@gnu.org; Tue, 11 Oct 2022 08:04:09 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:34324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiDzK-0002no-9s for guix-patches@gnu.org; Tue, 11 Oct 2022 08:04:00 -0400 Received: by mail-ej1-x630.google.com with SMTP id ot12so30917446ejb.1 for ; Tue, 11 Oct 2022 05:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=lHTocMcgnktRJm4ysIuWpNw4wJpMAKNiNLCz5SmDmIg=; b=j6lpkxvG6GJasEoD1gIKQikcfm/tYsBLUKpQo6ME3kIEzq7tHdLkFjInjlUOvJEiIQ rNiUUt7LfLWJQ3eQTLEyZ7Q63+LWk5Oermyjcrh0adakTvE75fxIrm6fi+gOMI1lczyx 3NrLbO2VEJFAkjpdmIm/Ui+T+q1evI9QCt7GgAb9MwMvCXoZjWLnZBXMzEFnXzYc/7Of FPnKGSzJYYsSQuxOHYh5RcmXvAUQpA/DfU8SxZVJvTnXTNDBEXlLzbnzD/NJyhzMphhA eQM/Ql7rqx0mRcg2ika79Aqm6xUOLoR6/ZcP+FDoIzW3Ks/YOwHSDBw3lVkvbAIRgNt0 vN9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lHTocMcgnktRJm4ysIuWpNw4wJpMAKNiNLCz5SmDmIg=; b=xwGtP5EwXZlkMehBQob8++oQOdLaA3/dVv9uVQH/uLasNfhq4u9ql2meMErxuQOO/J S6zFENeKm8FPVhCwoukMFC51tm3gwCsbU/MTp38exdm9s/OduFsnuHNqEtcxEsCTmwdF xWPus79X90EVElJeN+6o17p8LhEZK7hen+s+SsYCtFfmodOtvhV7Uuev3ecvexB93hbc t4ao3+rBNKKIn5LgHA82lwQ545ns1jdDUmPPOWN6dqSVHyyQ4Mpkd3BFYQfW9OnCGpax QwOmfVcPHmVxMa3uGyaG2gdn5AndiUzmKlFrkGdCjFt2isqVw8f3CVIgdJKzGXGTnREx FgSA== X-Gm-Message-State: ACrzQf3+zoGTulmMNHXdC9zVVGIUeB1uTP64N7KoF4ACfd2QsTzftGnJ g7bdgqeNDUitk0DbC3vjDeRmqoSLs/I= X-Google-Smtp-Source: AMsMyM7LaEZER7ZPeAWeguGsQu21a184GfvOBdvatYK94xZvIDSyt7AjJ6oSF0N5CTWOHnZy1lI6QA== X-Received: by 2002:a17:907:968b:b0:78d:c3cb:8b9b with SMTP id hd11-20020a170907968b00b0078dc3cb8b9bmr6129212ejc.252.1665489835138; Tue, 11 Oct 2022 05:03:55 -0700 (PDT) Received: from lelap.lan (catv-86-101-126-246.catv.fixed.vodafone.hu. [86.101.126.246]) by smtp.gmail.com with ESMTPSA id d6-20020a50f686000000b00459e3a3f3ddsm9158538edn.79.2022.10.11.05.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 05:03:53 -0700 (PDT) From: Attila Lendvai Date: Tue, 11 Oct 2022 14:02:19 +0200 Message-Id: <20221011120218.22347-1-attila@lendvai.name> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=attila.lendvai@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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 --- builds it from source. testing method: after including this in the profile, LibreOffice Writer started to underline typos in hungarian paragraphs. gnu/packages/libreoffice.scm | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 46eba12431..1991be9193 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -46,6 +46,7 @@ (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) @@ -60,6 +61,7 @@ (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) @@ -73,6 +75,7 @@ (define-module (gnu packages libreoffice) #:use-module (gnu packages java) #:use-module (gnu packages linux) #:use-module (gnu packages logging) + #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages nss) #:use-module (gnu packages openldap) @@ -83,6 +86,7 @@ (define-module (gnu packages libreoffice) #:use-module (gnu packages python) #:use-module (gnu packages rdf) #:use-module (gnu packages scanner) + #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages xml) @@ -996,6 +1000,52 @@ (define-public hyphen (license (list license:mpl1.1 license:mpl2.0 license:gpl2+ license:lgpl2.1+)))) +(define-public hunspell-dict-hu + (let ((revision "2") + (major+minor "1.7")) + (package + (name "hunspell-dict-hu") + (version (string-append major+minor "-" revision)) + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/magyarispell/Magyar Ispell/" + major+minor + "/magyarispell-" version ".tar.gz")) + (sha256 + (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 + (native-inputs + (list bash-minimal gawk hunspell m4 recode)) + (synopsis "Hunspell dictionary for Hungarian (hu_HU)") + (description "This package provides a dictionary for the Hunspell +spell-checking library.") + (home-page "http://magyarispell.sourceforge.net/") + (license (list license:gpl2 license:gpl3))))) + (define-public mythes (package (name "mythes")