gnu: emacs-flycheck-grammalecte: Update to 1.3.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Update to 1.3. [source]: Change upstream URL. [arguments]: Remove phase for symlinks since it is now possible to circumvent it with configuration. Configure accordingly. [home-page]: Update URL.master
parent
ba3e25bbf2
commit
ad6c8887b4
|
@ -4666,18 +4666,19 @@ for Flow files.")
|
||||||
(define-public emacs-flycheck-grammalecte
|
(define-public emacs-flycheck-grammalecte
|
||||||
(package
|
(package
|
||||||
(name "emacs-flycheck-grammalecte")
|
(name "emacs-flycheck-grammalecte")
|
||||||
(version "1.2")
|
(version "1.3")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://git.deparis.io/"
|
(uri (git-reference
|
||||||
"flycheck-grammalecte/snapshot/"
|
(url "https://git.umaneti.net/flycheck-grammalecte/")
|
||||||
"flycheck-grammalecte-" version ".tar.xz"))
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1mzmzyik843r4j0ibpwqrxmb0g4xmirrf3lxr010bddkmmxf749a"))))
|
(base32 "1f1gapvs9j89qr474103dqgsiyb96phlnsmq5hiv4ba242blg9lb"))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:include '("\\.(el|py)$")
|
`(#:include (cons "\\.py$" %default-include)
|
||||||
#:exclude '("^test-profile.el$")
|
#:exclude '("^test-profile.el$")
|
||||||
#:emacs ,emacs ;need libxml support
|
#:emacs ,emacs ;need libxml support
|
||||||
#:phases
|
#:phases
|
||||||
|
@ -4692,28 +4693,22 @@ for Flow files.")
|
||||||
(substitute* '("conjugueur.py" "flycheck-grammalecte.py")
|
(substitute* '("conjugueur.py" "flycheck-grammalecte.py")
|
||||||
(("/usr/bin/env python3?") python3))
|
(("/usr/bin/env python3?") python3))
|
||||||
#t)))
|
#t)))
|
||||||
(add-before 'build 'link-to-grammalecte
|
(add-after 'unpack 'specify-grammalecte-location
|
||||||
;; XXX: The Python part of the package requires grammalecte, but
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; the library is not specified in PYTHONPATH, since we're not
|
(make-file-writable "flycheck-grammalecte.el")
|
||||||
;; using Python build system. As a workaround, we symlink
|
(emacs-substitute-variables "flycheck-grammalecte.el"
|
||||||
;; grammalecte libraries here.
|
("flycheck-grammalecte--grammalecte-directory"
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(string-append (assoc-ref inputs "grammalecte")
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
"/lib/python"
|
||||||
(grammalecte (assoc-ref inputs "grammalecte"))
|
,(version-major+minor (package-version python))
|
||||||
(version ,(version-major+minor (package-version python))))
|
"/site-packages/grammalecte")))
|
||||||
(with-directory-excursion
|
#t)))))
|
||||||
(string-append out "/share/emacs/site-lisp")
|
|
||||||
(symlink (string-append grammalecte "/lib/"
|
|
||||||
"python" version "/site-packages/"
|
|
||||||
"grammalecte")
|
|
||||||
"grammalecte"))
|
|
||||||
#t))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("grammalecte" ,grammalecte)
|
`(("grammalecte" ,grammalecte)
|
||||||
("python" ,python)))
|
("python" ,python)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("emacs-flycheck" ,emacs-flycheck)))
|
`(("emacs-flycheck" ,emacs-flycheck)))
|
||||||
(home-page "https://git.deparis.io/flycheck-grammalecte/")
|
(home-page "https://git.umaneti.net/flycheck-grammalecte/")
|
||||||
(synopsis "Integrate Grammalecte with Flycheck")
|
(synopsis "Integrate Grammalecte with Flycheck")
|
||||||
(description
|
(description
|
||||||
"Integrate the French grammar and typography checker Grammalecte with
|
"Integrate the French grammar and typography checker Grammalecte with
|
||||||
|
|
Reference in New Issue