unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonathan Brielmaier <jonathan.brielmaier@web.de>
To: 42474@debbugs.gnu.org
Cc: Jonathan Brielmaier <jonathan.brielmaier@web.de>
Subject: [bug#42474] [PATCH v2 3/3] WIP: gnu: Add hunspell-dict-de.
Date: Sat, 25 Jul 2020 00:38:38 +0200	[thread overview]
Message-ID: <20200724223838.12444-4-jonathan.brielmaier@web.de> (raw)
In-Reply-To: <20200724223838.12444-1-jonathan.brielmaier@web.de>

* gnu/packages/libreoffice.scm (hunspell-dict-de): New variable.
---
 gnu/packages/libreoffice.scm | 38 +++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index ebe4fd7246..98d81587c5 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -10,7 +10,7 @@
 ;;; Copyright © 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
 ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
-;;; Copyright © 2018 Jonathan Brielmaier <jonathan.brielmaier@web.de>
+;;; Copyright © 2018, 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
 ;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
 ;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
 ;;;
@@ -42,6 +42,7 @@
   #:use-module (ice-9 match)
   #:use-module (gnu packages)
   #:use-module (gnu packages aidc)
+  #:use-module (gnu packages aspell)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bison)
@@ -971,6 +972,41 @@ library.")
     (license
      (list license:gpl2 license:mpl1.1 license:cc-by4.0 license:lgpl2.1 license:asl2.0))))

+(define-public hunspell-dict-de
+  (package
+    (name "hunspell-dict-de")
+    (version "20161207")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://www.j3e.de/ispell/igerman98/dict/"
+                           "igerman98-" version ".tar.bz2"))
+       (sha256 (base32
+                "1a3055hp2bc4q4nlg3gmg0147p3a1zlfnc65xiv2v9pyql1nya8p"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:make-flags '("hunspell/de_DE.dic")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'install              ;no install target
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (share (string-append out "/share/hunspell/")))
+               (mkdir-p share)
+               (copy-file "hunspell/de_DE.aff" (string-append share "de_DE.aff"))
+               (copy-file "hunspell/de_DE.dic" (string-append share "de_DE.dic"))))))
+       #:tests? #f))                    ;no tests
+    (native-inputs
+     `(("hunspell" ,hunspell)
+       ("ispell" ,ispell)
+       ("perl" ,perl)))
+    (synopsis "Hunspell dictionary for German (de_DE)")
+    (description "This package provides a dictionary for the Hunspell
+spell-checking library.")
+    (home-page "https://www.j3e.de/ispell/igerman98/")
+    (license (list license:gpl2 license:gpl3))))
+
 (define-public hyphen
   (package
     (name "hyphen")
--
2.27.0





      parent reply	other threads:[~2020-07-24 22:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 12:26 [bug#42474] [PATCH 0/3] WIP: Add hunspell-dict-de Jonathan Brielmaier
2020-07-22 12:30 ` [bug#42474] [PATCH 1/3] gnu: Add byacc Jonathan Brielmaier
2020-07-22 12:30   ` [bug#42474] [PATCH 2/3] WIP: gnu: Add ispell Jonathan Brielmaier
2020-07-22 12:30   ` [bug#42474] [PATCH 3/3] WIP: gnu: Add hunspell-dict-de Jonathan Brielmaier
2020-07-23  7:56 ` [bug#42474] [PATCH 0/3] WIP: " Efraim Flashner
2020-07-24 22:38 ` [bug#42474] [PATCH v2 0/3] " Jonathan Brielmaier
2020-07-24 22:38   ` [bug#42474] [PATCH v2 1/3] gnu: Add byacc Jonathan Brielmaier
2020-07-24 22:38   ` [bug#42474] [PATCH v2 2/3] WIP: gnu: Add ispell Jonathan Brielmaier
2020-07-28 11:36     ` [bug#42474] [PATCH v3 1/2] " Jakub Kądziołka
2020-07-28 12:51       ` Jonathan Brielmaier
2020-07-28 11:36     ` [bug#42474] [PATCH v3 2/2] gnu: Add hunspell-dict-de Jakub Kądziołka
2020-08-27 20:15       ` Jonathan Brielmaier
2020-10-15 20:07         ` Jonathan Brielmaier
2020-10-18  9:20           ` bug#42474: " Efraim Flashner
2020-07-24 22:38   ` Jonathan Brielmaier [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20200724223838.12444-4-jonathan.brielmaier@web.de \
    --to=jonathan.brielmaier@web.de \
    --cc=42474@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).