all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Attila Lendvai <attila@lendvai.name>
Cc: 58436-done@debbugs.gnu.org
Subject: bug#58436: [PATCH] gnu: Add hunspell-dict-hu.
Date: Mon, 17 Oct 2022 10:44:53 +0200	[thread overview]
Message-ID: <878rlehm9m.fsf@gnu.org> (raw)
In-Reply-To: <20221011120218.22347-1-attila@lendvai.name> (Attila Lendvai's message of "Tue, 11 Oct 2022 14:02:19 +0200")

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

Hi,

Attila Lendvai <attila@lendvai.name> 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:
<https://issues.guix.gnu.org/53147>.

Is this problem gone for you?

Thanks,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 3597 bytes --]

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.")

  reply	other threads:[~2022-10-17  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 12:02 [bug#58436] [PATCH] gnu: Add hunspell-dict-hu Attila Lendvai
2022-10-17  8:44 ` Ludovic Courtès [this message]
2022-10-17 14:39   ` Attila Lendvai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rlehm9m.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=58436-done@debbugs.gnu.org \
    --cc=attila@lendvai.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.