From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uA1kEiqozV4XagAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 23:37:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CIZKDiqozV62PQAA1q6Kng (envelope-from ) for ; Tue, 26 May 2020 23:37:14 +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 95969940365 for ; Tue, 26 May 2020 23:37:13 +0000 (UTC) Received: from localhost ([::1]:51826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdj8A-0003PZ-TC for larch@yhetil.org; Tue, 26 May 2020 19:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdj83-0003PG-Ej for guix-patches@gnu.org; Tue, 26 May 2020 19:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdj83-0002KP-5r for guix-patches@gnu.org; Tue, 26 May 2020 19:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdj82-0000UP-2v for guix-patches@gnu.org; Tue, 26 May 2020 19:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41550] [PATCH] gnu: Add Polish hunspell dictionary. Resent-From: Marcin Karpezo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 May 2020 23:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41550@debbugs.gnu.org Cc: Marcin Karpezo X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15905361721823 (code B ref -1); Tue, 26 May 2020 23:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2020 23:36:12 +0000 Received: from localhost ([127.0.0.1]:47408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdj7A-0000TI-CJ for submit@debbugs.gnu.org; Tue, 26 May 2020 19:36:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:54098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdj78-0000TA-1d for submit@debbugs.gnu.org; Tue, 26 May 2020 19:36:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdj77-0002iu-Qz for guix-patches@gnu.org; Tue, 26 May 2020 19:36:05 -0400 Received: from mail.freearts.agency ([51.68.137.137]:43228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdj73-0001nm-1u for guix-patches@gnu.org; Tue, 26 May 2020 19:36:05 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 449BA40F75; Wed, 27 May 2020 01:35:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wioo.waw.pl; s=dkim; t=1590536135; 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=+DXbFPLapk0GzFid9M29nXamURF5oYhmXG26DByLoKA=; b=VGm5ETOH5tpO5W8bpdNY5Oc1JDYmOUcu8Y8BGXO9chczYOShEcQax0cN42F0j++W1eKmp7 Y+1Ws3j7xiUvozfHy084J32uNMwaPhySZ7BB61Z5jLJdp/x9SKHLx6pjU8fSLA8DC66hQ4 2TAC63x3gQKawPKHRMcep8fDy6KHMuZ9c15EQPWnKrZ2d8zVCrJqr8bbOU4fS2A9YzHSiB qrv63qYEpMUHBLJy68vG3GoEhJ+i8gZyChqq9nhZZfBLyfMVvPQxr3tPJbwHbFhaCplKgo zhEIHJvdtYgr3s4jFYcZe8v1LYv0ep/S2pYpyCP5liN+GplTtG220WWYRe4mIQ== From: Marcin Karpezo Date: Wed, 27 May 2020 01:35:03 +0200 Message-Id: <20200526233502.4557-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 Received-SPF: pass client-ip=51.68.137.137; envelope-from=sirmacik@wioo.waw.pl; helo=mail.freearts.agency X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/26 19:35:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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=VGm5ETOH; 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: 7H4opjzTPnJ5 * 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..6c1ce2a0f9 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