gnu: emacs-flycheck-grammalecte: Remove "/usr/bin/env" references.

* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte)[arguments]: Fix more
python3 locations.
This commit is contained in:
Nicolas Goaziou 2020-05-23 09:43:51 +02:00
parent b2d8118616
commit 28e9a1118b
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -3797,13 +3797,15 @@ (define-public emacs-flycheck-grammalecte
#:emacs ,emacs ;need libxml support
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-python-executable
;; Hardcode python3 executable in the Emacs library.
(add-after 'unpack 'specify-python-location
;; Hard-code python3 executable location in the library.
(lambda* (#:key inputs #:allow-other-keys)
(let ((python3 (string-append (assoc-ref inputs "python")
"/bin/python3")))
(substitute* "flycheck-grammalecte.el"
(("\"python3") (string-append "\"" python3)))
(substitute* '("conjugueur.py" "flycheck-grammalecte.py")
(("/usr/bin/env python3?") python3))
#t)))
(add-before 'build 'link-to-grammalecte
;; XXX: The Python part of the package requires grammalecte, but