From: Marcin Karpezo <sirmacik@wioo.waw.pl>
To: 41550@debbugs.gnu.org
Cc: Marcin Karpezo <sirmacik@wioo.waw.pl>
Subject: [bug#41550] [PATCH v3] gnu: Add Polish hunspell dictionary.
Date: Wed, 27 May 2020 01:50:20 +0200 [thread overview]
Message-ID: <20200526235019.5971-1-sirmacik@wioo.waw.pl> (raw)
In-Reply-To: <20200526233502.4557-1-sirmacik@wioo.waw.pl>
* gnu/packages/libreoffice.scm (hunspell-dict-pl): New variable.
---
Fixing another typo, sorry for that. Will pay more attention next time.
gnu/packages/libreoffice.scm | 47 ++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index a3a6ea5d1a..995ab410ea 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2018 Jonathan Brielmaier <jonathan.brielmaier@web.de>
;;; Copyright © 2019 Chris Marusich <cmmarusich@gmail.com>
+;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -920,6 +921,52 @@ library.")
"toutesvariantes"
(synopsis "Hunspell dictionary for all variants of French"))
+(define-public hunspell-dict-pl
+ (package
+ (name "hunspell-dict-pl")
+ (version "20200526")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://sjp.pl/slownik/ort/sjp-myspell-pl-"
+ version ".zip"))
+ (sha256 (base32
+ "1v8fc9ka18hs5vl7d515kgd0r4lcxl3pyk5075c5pg8ix9krzs4j"))))
+
+ (build-system trivial-build-system)
+ (native-inputs `(("unzip" ,unzip)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils)
+ (srfi srfi-26))
+
+ (let* ((out (assoc-ref %outputs "out"))
+ (hunspell (string-append out "/share/hunspell"))
+ (myspell (string-append out "/share/myspell"))
+ (doc (string-append out "/share/doc/"
+ ,name))
+ (unzip (string-append (assoc-ref %build-inputs "unzip")
+ "/bin/unzip")))
+ (invoke unzip "-j" "-o" (assoc-ref %build-inputs "source"))
+ (invoke unzip "-j" "-o" "pl_PL.zip")
+ (for-each (cut install-file <> hunspell)
+ (find-files "."
+ ,(string-append "pl_PL"
+ "\\.(dic|aff)$")))
+ (mkdir-p myspell)
+ (symlink hunspell (string-append myspell "/dicts"))
+ (for-each (cut install-file <> doc)
+ (find-files "." "\\.(txt|org|md)$"))
+ #t))))
+ (synopsis "Hunspell dictionary for Polish")
+ (description
+ "This package provides a dictionary for the Hunspell spell-checking
+library.")
+ (home-page "https://sjp.pl/slownik/ort/")
+ (license
+ (list license:gpl2 license:mpl1.1 license:cc-by4.0 license:lgpl2.1 license:asl2.0))))
+
(define-public hyphen
(package
(name "hyphen")
--
2.26.2
next prev parent reply other threads:[~2020-05-26 23:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 23:35 [bug#41550] [PATCH] gnu: Add Polish hunspell dictionary Marcin Karpezo
2020-05-26 23:44 ` [bug#41550] [PATCH v2] " Marcin Karpezo
2020-05-26 23:50 ` Marcin Karpezo [this message]
2020-05-29 16:07 ` [bug#41550] [PATCH v3] " Ludovic Courtès
2020-05-29 16:13 ` sirmacik
2020-05-29 16:53 ` Leo Famulari
2020-05-29 17:30 ` [bug#41550] [PATCH v4] " Marcin Karpezo
2020-06-03 15:57 ` bug#41550: " Ludovic Courtès
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=20200526235019.5971-1-sirmacik@wioo.waw.pl \
--to=sirmacik@wioo.waw.pl \
--cc=41550@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).