me
/
guix
Archived
1
0
Fork 0

gnu: emacs-flycheck-grammalecte: Update to 1.2.

* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Update to 1.2.
[arguments]: Exclude "test-profile.el", build with full Emacs for libxml
support.
[inputs]: Remove curl as dependency.
master
Nicolas Goaziou 2020-05-15 17:56:48 +02:00 committed by Tobias Geerinckx-Rice
parent 97a92ab2ad
commit 33a7d947ca
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 22 additions and 21 deletions

View File

@ -3759,7 +3759,7 @@ 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.0") (version "1.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -3767,30 +3767,31 @@ for Flow files.")
"flycheck-grammalecte/snapshot/" "flycheck-grammalecte/snapshot/"
"flycheck-grammalecte-" version ".tar.xz")) "flycheck-grammalecte-" version ".tar.xz"))
(sha256 (sha256
(base32 "02wxaw228dia8cps0v02327hrrribfqb4601qggjpi4l4ms1lf8b")))) (base32 "1mzmzyik843r4j0ibpwqrxmb0g4xmirrf3lxr010bddkmmxf749a"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
`(#:include '("\\.(el|py)$") `(#:include '("\\.(el|py)$")
#:exclude '("^test-profile.el$")
#:emacs ,emacs ;need libxml support
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'set-external-executables (add-after 'unpack 'fix-python-executable
;; Hardcode python3 and curl executables in the Emacs library. ;; Hardcode python3 executable in the Emacs library.
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((python3 (string-append (assoc-ref inputs "python") (let ((python3 (string-append (assoc-ref inputs "python")
"/bin/python3")) "/bin/python3")))
(curl (string-append (assoc-ref inputs "curl")
"/bin/curl")))
(substitute* "flycheck-grammalecte.el" (substitute* "flycheck-grammalecte.el"
(("\"python3?") (string-append "\"" python3)) (("\"python3") (string-append "\"" python3)))
(("\"curl") (string-append "\"" curl)))
#t))) #t)))
(add-after 'install 'link-to-grammalecte (add-before 'build 'link-to-grammalecte
;; The package expects grammalecte to be in a sub-directory. ;; XXX: The Python part of the package requires grammalecte, but
;; Symlink it there from the store. ;; the library is not specified in PYTHONPATH, since we're not
;; using Python build system. As a workaround, we symlink
;; grammalecte libraries here.
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((grammalecte (assoc-ref inputs "grammalecte")) (let* ((out (assoc-ref outputs "out"))
(out (assoc-ref outputs "out")) (grammalecte (assoc-ref inputs "grammalecte"))
(version ,(version-major+minor (package-version python)))) (version ,(version-major+minor (package-version python))))
(with-directory-excursion (with-directory-excursion
(string-append out "/share/emacs/site-lisp") (string-append out "/share/emacs/site-lisp")
(symlink (string-append grammalecte "/lib/" (symlink (string-append grammalecte "/lib/"
@ -3799,17 +3800,17 @@ for Flow files.")
"grammalecte")) "grammalecte"))
#t)))))) #t))))))
(inputs (inputs
`(("curl" ,curl) `(("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.deparis.io/flycheck-grammalecte/")
(synopsis "Integrate Grammalecte with Flycheck") (synopsis "Integrate Grammalecte with Flycheck")
(description "Integrate the French grammar and typography checker (description
Grammalecte with Flycheck to automatically look for mistakes in your writings. "Integrate the French grammar and typography checker Grammalecte with
It also provides an easy way to find synonyms and antonyms for a given Flycheck to automatically look for mistakes in your writings. It also
word (to avoid repetitions for example).") provides an easy way to find synonyms and antonyms for a given word (to avoid
repetitions for example).")
(license license:gpl3+))) (license license:gpl3+)))
(define-public emacs-flycheck-rust (define-public emacs-flycheck-rust