summaryrefslogtreecommitdiff
path: root/gnu/packages/emacs-xyz.scm
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-07-25 21:31:40 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-07-25 21:31:40 +0200
commit1bcf2da57065a352d2806fa7737a4f5f4de5cb20 (patch)
treefa6d1940b4f6b0b0af7cef6ded59f9a51014c4d3 /gnu/packages/emacs-xyz.scm
parentb81ab18404a684817166dbac260e5a8c68b35389 (diff)
gnu: emacs-flycheck-grammalecte: Update to 2.0.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Update to 2.0.
Diffstat (limited to 'gnu/packages/emacs-xyz.scm')
-rw-r--r--gnu/packages/emacs-xyz.scm31
1 files changed, 14 insertions, 17 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 61a0fa1e5e..c40d41a90d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5486,7 +5486,7 @@ for Flow files.")
(define-public emacs-flycheck-grammalecte
(package
(name "emacs-flycheck-grammalecte")
- (version "1.4")
+ (version "2.0")
(source
(origin
(method git-fetch)
@@ -5495,7 +5495,7 @@ for Flow files.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "18yiv09hzbclf9rjp61lxlia2m1qbvmwkiqxxs9jjpac28x7ypjf"))))
+ (base32 "040mb9djj4cxpjsjch9i30pi36a2z7grkhnsnfdi5qyh341p4pq0"))))
(build-system emacs-build-system)
(arguments
`(#:include (cons "\\.py$" %default-include)
@@ -5508,29 +5508,26 @@ for Flow files.")
(lambda* (#:key inputs #:allow-other-keys)
(let ((python3 (string-append (assoc-ref inputs "python")
"/bin/python3")))
- (substitute* "flycheck-grammalecte.el"
+ (substitute* '("flycheck-grammalecte.el" "grammalecte.el")
(("\"python3") (string-append "\"" python3)))
- (substitute* '("conjugueur.py" "flycheck-grammalecte.py")
- (("/usr/bin/env python3?") python3))
- #t)))
+ (substitute* '("conjugueur.py" "flycheck_grammalecte.py")
+ (("/usr/bin/env python3?") python3)))))
(add-after 'unpack 'specify-grammalecte-location
+ ;; Use our own Grammalecte.
(lambda* (#:key inputs #:allow-other-keys)
- (make-file-writable "flycheck-grammalecte.el")
- (emacs-substitute-variables "flycheck-grammalecte.el"
- ("flycheck-grammalecte-grammalecte-directory"
+ (make-file-writable "grammalecte.el")
+ (emacs-substitute-variables "grammalecte.el"
+ ("grammalecte-python-package-directory"
(string-append (assoc-ref inputs "grammalecte")
"/lib/python"
,(version-major+minor (package-version python))
- "/site-packages/grammalecte")))
- #t))
+ "/site-packages/grammalecte")))))
(add-after 'unpack 'do-not-phone-home
- ;; The package wants to check upstream Grammalecte version to
- ;; decide if an update is in order. Always return version
- ;; installed so it doesn't phone home and doesn't install anything.
+ ;; Do not check for Grammalecte updates, ever.
(lambda _
- (substitute* "flycheck-grammalecte.el"
- (("\\(flycheck-grammalecte--grammalecte-upstream-version\\)")
- ,(format #f "\"~a\"" (package-version grammalecte)))))))))
+ (make-file-writable "grammalecte.el")
+ (emacs-substitute-variables "grammalecte.el"
+ ("grammalecte-check-upstream-version-delay" 0)))))))
(inputs
`(("grammalecte" ,grammalecte)
("python" ,python)))