From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AKhUF22rzV6EcwAA0tVLHw (envelope-from ) for ; Tue, 26 May 2020 23:51:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QGYUE22rzV5tLAAAbx9fmQ (envelope-from ) for ; Tue, 26 May 2020 23:51:09 +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 BC39F9403EA for ; Tue, 26 May 2020 23:51:08 +0000 (UTC) Received: from localhost ([::1]:56444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdjLe-00083R-RI for larch@yhetil.org; Tue, 26 May 2020 19:51:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdjLa-00082o-BG for guix-patches@gnu.org; Tue, 26 May 2020 19:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdjLa-00076D-0w for guix-patches@gnu.org; Tue, 26 May 2020 19:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdjLZ-0000pH-Vr for guix-patches@gnu.org; Tue, 26 May 2020 19:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41550] [PATCH v3] 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:51:01 +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.15905370333140 (code B ref 41550); Tue, 26 May 2020 23:51:01 +0000 Received: (at 41550) by debbugs.gnu.org; 26 May 2020 23:50:33 +0000 Received: from localhost ([127.0.0.1]:47424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdjL6-0000oa-VQ for submit@debbugs.gnu.org; Tue, 26 May 2020 19:50:33 -0400 Received: from mail.freearts.agency ([51.68.137.137]:43486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdjL5-0000oP-BB for 41550@debbugs.gnu.org; Tue, 26 May 2020 19:50:32 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 646E040FCA; Wed, 27 May 2020 01:50:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wioo.waw.pl; s=dkim; t=1590537028; 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=cObHtO/FsBpbL/GsUkbeA2APNferMfpFSsB5z8I/zFs=; b=mgwKyhhHzwPD+gztw8v0QyAUdPMxwP8UZcaO/MY7KyPhWWwehCEaeWhDL08o9z7OhHl86F iD2KKbVYQgnnz8QiJ1AM9kXCDo6LGHSKCWmSSw+ChKCerhj03nzunz4pM6h7WiXCklkId9 M3eQjlTfWrjGnD0IF3d8O2qOf1Z/ZjPNYsWkXRs+3NkqbheOaGtB44T71yDbCWz04bHLtp OWKuzEgBXGKLoLCF2Tk0Ny4yf8sndBmnC9iFS4kWVW7L+/d2in2TmWAseNcWxhC4LZoaFG YUabHfh/1DdmxxGywW8a7Hg0+1iJ6KObXT8Ug/GLgfdZbGg/G8z9J2NU5Rjklw== From: Marcin Karpezo Date: Wed, 27 May 2020 01:50:20 +0200 Message-Id: <20200526235019.5971-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=mgwKyhhH; 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: J6pEkMAayAj6 * 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 ;;; 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://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