unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kkebreau@posteo.net>
To: 29079@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#29079] [PATCH] gnu: Add hunspell-en-US.
Date: Tue, 31 Oct 2017 10:47:50 -0400	[thread overview]
Message-ID: <20171031144750.14587-1-kkebreau@posteo.net> (raw)

* gnu/packages/dictionaries.scm (hunspell-en-US): New variable.
---
 gnu/packages/dictionaries.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm
index 062c29b66..0cc7df394 100644
--- a/gnu/packages/dictionaries.scm
+++ b/gnu/packages/dictionaries.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
+;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -252,3 +253,39 @@ translator powered by Google Translate (default), Bing Translator,
 Yandex.Translate and Apertium.  It gives you easy access to one of these
 translation engines from your terminal.")
     (license public-domain)))
+
+(define-public hunspell-en-US
+  (package
+    (name "hunspell-en-US")
+    (version "2017.01.22")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://launchpad.net/hunspell-en_US/trunk/"
+                                  version "/+download/hunspell-en_US-" version
+                                  ".zip"))
+              (sha256
+               (base32
+                "0svc3m09vz7q37481a0lrf6j2raw65zqg6lazic06s7f1vc6h92i"))))
+    (build-system trivial-build-system)
+    (arguments
+     '(#:builder (begin
+                   (use-modules (guix build utils))
+
+                   (let* ((dict (assoc-ref %build-inputs "source"))
+                          (out (assoc-ref %outputs "out"))
+                          (share (string-append out "/share/hunspell"))
+                          (unzip (string-append
+                                  (assoc-ref %build-inputs "unzip")
+                                  "/bin/unzip")))
+                     (mkdir-p share)
+                     (zero? (system* unzip dict "-d" share))))
+       #:modules ((guix build utils))))
+    (native-inputs
+     `(("source" ,source)
+       ("unzip" ,unzip)))
+    (home-page "http://wordlist.aspell.net/")
+    (synopsis "American English dictionary for use with hunspell")
+    (description
+     "This is an American English dictionary for use with the hunspell spell
+checker.")
+    (license (non-copyleft "file://README_en_US.txt"))))
-- 
2.14.3

             reply	other threads:[~2017-10-31 14:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-31 14:47 Kei Kebreau [this message]
2017-11-05 21:02 ` [bug#29079] [PATCH] gnu: Add hunspell-en-US Ludovic Courtès
2017-11-07  3:45   ` Kei Kebreau
2017-11-07  8:58     ` Ludovic Courtès
2017-11-09 22:53       ` Kei Kebreau
2017-11-10 10:22         ` Ludovic Courtès
2017-11-10 17:00           ` bug#29079: " Kei Kebreau

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=20171031144750.14587-1-kkebreau@posteo.net \
    --to=kkebreau@posteo.net \
    --cc=29079@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).