From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:55027) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i60v9-000713-83 for guix-patches@gnu.org; Thu, 05 Sep 2019 19:12:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i60v6-0006Bb-NJ for guix-patches@gnu.org; Thu, 05 Sep 2019 19:12:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i60v4-0006AX-UD for guix-patches@gnu.org; Thu, 05 Sep 2019 19:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i60v4-0004uE-Ao for guix-patches@gnu.org; Thu, 05 Sep 2019 19:12:02 -0400 Subject: [bug#37317] [PATCH] Add emacs-flyspell-grammalecte Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:54866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i60uj-00070j-3k for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i60uf-0005t3-HL for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:39 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i60uc-0005ky-5P for guix-patches@gnu.org; Thu, 05 Sep 2019 19:11:35 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C29F4E0002 for ; Thu, 5 Sep 2019 23:11:30 +0000 (UTC) From: Nicolas Goaziou Date: Fri, 06 Sep 2019 01:11:29 +0200 Message-ID: <87mufipcda.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37317@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, The following patch adds emacs-flyspell-grammalecte. Feedback welcome. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-emacs-flycheck-grammalecte.patch Content-Description: Add emacs-flyspell-grammalecte >From d362da36f369d0bf98d49c484ce9fd6b0603b5b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 6 Sep 2019 01:10:10 +0200 Subject: [PATCH] gnu: Add emacs-flycheck-grammalecte. * gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): New variable. --- gnu/packages/emacs-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8f866fbc28..7ca3f8e4ca 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -88,6 +88,7 @@ #:use-module (gnu packages cmake) #:use-module (gnu packages code) #:use-module (gnu packages databases) + #:use-module (gnu packages dictionaries) #:use-module (gnu packages emacs) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) @@ -3076,6 +3077,59 @@ boundaries defined by syntax highlighting.") for Flow files.") (license license:gpl3+)))) +(define-public emacs-flycheck-grammalecte + (package + (name "emacs-flycheck-grammalecte") + (version "0.9") + (source (origin + (method url-fetch) + (uri (string-append "https://git.deparis.io/" + "flycheck-grammalecte/snapshot/" + "flycheck-grammalecte-" version ".tar.xz")) + (sha256 + (base32 + "0wjm9xyra870pci4bcrbnc9x66x18mi7iz08rkxa4clxv28xzryb")))) + (build-system emacs-build-system) + (arguments + `(#:include '("\\.(el|py)$") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-python + ;; Hardcode python3 executable in the Emacs library. + (lambda* (#:key inputs #:allow-other-keys) + (let ((python3 (string-append (assoc-ref inputs "python") + "/bin/python3"))) + (substitute* "flycheck-grammalecte.el" + (("python3") python3)) + #t))) + (add-after 'install 'link-to-grammalecte + ;; The package expects grammalecte to be in a sub-directory. + ;; Symlink it there from the store. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((grammalecte (assoc-ref inputs "grammalecte")) + (out (assoc-ref outputs "out")) + (version ,(version-major+minor (package-version python)))) + (with-directory-excursion + (string-append out + "/share/emacs/site-lisp/guix.d/" + "flycheck-grammalecte-" ,version) + (symlink (string-append grammalecte "/lib/" + "python" version "/site-packages/" + "grammalecte") + "grammalecte")))))))) + (inputs + `(("grammalecte" ,grammalecte) + ("python" ,python))) + (propagated-inputs + `(("emacs-flycheck" ,emacs-flycheck))) + (home-page "https://git.deparis.io/flycheck-grammalecte/") + (synopsis "Integrate Grammalecte with Flycheck") + (description "Integrate the French grammar and typography checker +Grammalecte with Flycheck to automatically look for mistakes in your +writings. It also provides an easy way to find synonyms and antonyms for +a given word (to avoid repetitions for example).") + (license license:gpl3+))) + (define-public emacs-elisp-demos (package (name "emacs-elisp-demos") -- 2.23.0 --=-=-=--