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 CI6zHx5H0V7/MAAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 17:32: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 mp1 with LMTPS id 4Pd1Gx5H0V4/IwAAbx9fmQ (envelope-from ) for ; Fri, 29 May 2020 17:32: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 CB88C940997 for ; Fri, 29 May 2020 17:32:13 +0000 (UTC) Received: from localhost ([::1]:59588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeirb-0003j7-0s for larch@yhetil.org; Fri, 29 May 2020 13:32:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeirS-0003id-E8 for guix-patches@gnu.org; Fri, 29 May 2020 13:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeirS-00065J-3P for guix-patches@gnu.org; Fri, 29 May 2020 13:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeirS-0001gW-15 for guix-patches@gnu.org; Fri, 29 May 2020 13:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41550] [PATCH v4] 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: Fri, 29 May 2020 17:32: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.15907735176464 (code B ref 41550); Fri, 29 May 2020 17:32:01 +0000 Received: (at 41550) by debbugs.gnu.org; 29 May 2020 17:31:57 +0000 Received: from localhost ([127.0.0.1]:56146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeirM-0001gC-NF for submit@debbugs.gnu.org; Fri, 29 May 2020 13:31:57 -0400 Received: from mail.freearts.agency ([51.68.137.137]:38484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeirK-0001g2-1m for 41550@debbugs.gnu.org; Fri, 29 May 2020 13:31:55 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4732340F93; Fri, 29 May 2020 19:31:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wioo.waw.pl; s=dkim; t=1590773500; 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=CpWPjXqjIoJ1rXA7p+aACR/Q0dPM2QIcSRnnuG2JgZ0=; b=C8o3hLVW4Ukg92H9RPalconNatqyJpZOfeXc7KjRoJHuNVcqKzF1hnOnFqZLFftGkbYNbq lukvuIIhNhb5jGcXOqPO6OkzX3ghvl48RK6Jpwh4sxwTJb4csBkdAULaQ1h+KIVdG8vh8d yZkE94PuNtqkLG7T0Ha3lFI9IkbSMyoPawqqI9zvCqqjnCQ62NvplJMvdxv/pQVWdXak0+ 89iLaWcOPqWl7hWlo09DzO69xN3qgfpR2KIxGjB0uw5U3nANtCbidi2Y7rAl4Earqpbek+ eFF/FaHhMaJ42hHhkzEmOnvlKNm9HkEkW12rkADStX2UisuZb6F5aOI/vVdVjg== From: Marcin Karpezo Date: Fri, 29 May 2020 19:30:12 +0200 Message-Id: <20200529173011.7946-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=C8o3hLVW; 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: 5wTouKvE7LG3 * gnu/packages/libreoffice.scm (hunspell-dict-pl): New variable. --- Based on Leo's suggestion I've changed source to last version mirrored by Arch Linux and version number accordingly. gnu/packages/libreoffice.scm | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index a3a6ea5d1a..0873072a64 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,56 @@ library.") "toutesvariantes" (synopsis "Hunspell dictionary for all variants of French")) +(define-public hunspell-dict-pl + (package + (name "hunspell-dict-pl") + (version "20200327") + (source + (origin + (method url-fetch) + ;; Since creators of dictionary host only the latest daily release, + ;; we're using version mirrored by Arch Linux, which seems good + ;; enough. They're mirroring hunspell-pl releases since 2011. + (uri (string-append "https://sources.archlinux.org/other/community/" + "hunspell-pl/sjp-myspell-pl-" + version ".zip")) + (sha256 (base32 + "14mzf8glxkp2775dcqisb1zv6r8ncm3bvzl46q352rwyl2dg1c59")))) + + (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