From patchwork Tue May 26 23:44:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marcin Karpezo X-Patchwork-Id: 22393 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 31ED327BBE3; Wed, 27 May 2020 00:45:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 8BBBB27BBE1 for ; Wed, 27 May 2020 00:45:10 +0100 (BST) Received: from localhost ([::1]:53948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdjFu-00063r-3N for patchwork@mira.cbaines.net; Tue, 26 May 2020 19:45:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdjFm-000633-N8 for guix-patches@gnu.org; Tue, 26 May 2020 19:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35873) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdjFm-00050a-ED for guix-patches@gnu.org; Tue, 26 May 2020 19:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdjFm-0000gd-BI for guix-patches@gnu.org; Tue, 26 May 2020 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41550] [PATCH v2] gnu: Add Polish hunspell dictionary. References: <20200526233502.4557-1-sirmacik@wioo.waw.pl> In-Reply-To: <20200526233502.4557-1-sirmacik@wioo.waw.pl> Resent-From: Marcin Karpezo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 May 2020 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41550@debbugs.gnu.org Cc: Marcin Karpezo Received: via spool by 41550-submit@debbugs.gnu.org id=B41550.15905366832591 (code B ref 41550); Tue, 26 May 2020 23:45:02 +0000 Received: (at 41550) by debbugs.gnu.org; 26 May 2020 23:44:43 +0000 Received: from localhost ([127.0.0.1]:47419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdjFH-0000fT-SZ for submit@debbugs.gnu.org; Tue, 26 May 2020 19:44:43 -0400 Received: from mail.freearts.agency ([51.68.137.137]:42374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdjFF-0000fJ-EX for 41550@debbugs.gnu.org; Tue, 26 May 2020 19:44:31 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E54D740FCB; Wed, 27 May 2020 01:44:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wioo.waw.pl; s=dkim; t=1590536666; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iwXBPrM8ooyNn80haBftJ7AVp6KIgGLcKdUe7ygWikY=; b=hCDAkWuebRLVk0jUreXnIdC7vc2Z6AD/DX10/qLNp2QaOSnChhgxH6bwfgJVkkbu1Fvn8Z R+mDo7niOV8Kcl9sJmvuk30Tb9W+9mvlRuSOr3Fd9m0FU0m2/eTtMUyDH64Zs7t/SrzNZw C4uw7/r+PFLakdmYb5mU9J8giQxrrNUvU1YnDaUfc2RTOTso8qnv4GDIXMmVwouvIwfvOy zYHeba9wX6KIx0+aOQ19qcoo8udRHMeym5UNMzXhQM9okMzCjUaHaIS4Lr4KH5dyuM1nQm ZdW5YQEWZvsUztLzGO+IDnhhNV6GCzlXEnR/EulrXz5i7PByPZIFfj4frbmqIQ== From: Marcin Karpezo Date: Wed, 27 May 2020 01:44:23 +0200 Message-Id: <20200526234423.5568-1-sirmacik@wioo.waw.pl> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 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 * gnu/packages/libreoffice.scm (hunspell-dict-pl): New variable. --- gnu/packages/libreoffice.scm | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index a3a6ea5d1a..0f824bd29e 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2018, 2019 Ricardo Wurmus ;;; Copyright © 2018 Jonathan Brielmaier ;;; Copyright © 2019 Chris Marusich +;;; Copyright © 2020 Marcin Karpezo ;;; ;;; 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://qsjp.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")