gnu: asymptote: Use G-expressions.

* gnu/packages/plotutils.scm (asymptote)[arguments]<#:phases>: Use
G-expressions.
This commit is contained in:
Nicolas Goaziou 2022-02-15 13:29:55 +01:00
parent d1cc373033
commit 85f026f36a
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -345,7 +345,7 @@ (define-public asymptote
#$output
"/share/texmf/tex/context/third"))
#:phases
`(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-after 'unpack 'locate-tirpc
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (list "configure.ac")
@ -395,17 +395,17 @@ (define-public asymptote
(add-after 'install 'install-Emacs-data
(lambda* (#:key outputs #:allow-other-keys)
;; Install related Emacs libraries into an appropriate location.
(let* ((out (assoc-ref outputs "out"))
(lisp-dir (string-append out "/share/emacs/site-lisp")))
(let ((lisp-dir
(string-append #$output "/share/emacs/site-lisp")))
(for-each (cut install-file <> lisp-dir)
(find-files "." "\\.el$"))
(emacs-generate-autoloads ,name lisp-dir))))
(emacs-generate-autoloads #$name lisp-dir))))
(add-after 'install-Emacs-data 'wrap-python-script
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Make sure 'xasy' runs with the correct PYTHONPATH.
(let* ((out (assoc-ref outputs "out"))
(path (getenv "GUIX_PYTHONPATH")))
(wrap-program (string-append out "/share/asymptote/GUI/xasy.py")
(let ((path (getenv "GUIX_PYTHONPATH")))
(wrap-program
(string-append #$output "/share/asymptote/GUI/xasy.py")
`("GUIX_PYTHONPATH" ":" prefix (,path)))))))))
(home-page "http://asymptote.sourceforge.net")
(synopsis "Script-based vector graphics language")