From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YBnuLgaqzV6jAgAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 23:45:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cFntKgaqzV4RcAAAB5/wlQ (envelope-from ) for ; Tue, 26 May 2020 23:45:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1B494940983 for ; Tue, 26 May 2020 23:45:10 +0000 (UTC) Received: from localhost ([::1]:53948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdjFs-00063r-EM for larch@yhetil.org; Tue, 26 May 2020 19:45:08 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=wioo.waw.pl header.s=dkim header.b=hCDAkWue; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wioo.waw.pl (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: XRLWLWvFYcMI * 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") -- 2.26.2