gnu: asymptote: Fix GUI.
Fixes bug#39147. * gnu/packages/plotutils.scm (asymptote)[inputs]: Add missing inputs. [arguments]: Wrap GUI executable "xasy".master
parent
07c8177b88
commit
1b4c5af29c
|
@ -37,7 +37,9 @@
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-xyz)
|
||||||
#:use-module (gnu packages readline)
|
#:use-module (gnu packages readline)
|
||||||
|
#:use-module (gnu packages qt)
|
||||||
#:use-module (gnu packages texinfo)
|
#:use-module (gnu packages texinfo)
|
||||||
#:use-module (gnu packages tex)
|
#:use-module (gnu packages tex)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
@ -214,6 +216,8 @@ colors, styles, options and details.")
|
||||||
("gsl" ,gsl)
|
("gsl" ,gsl)
|
||||||
("libgc" ,libgc)
|
("libgc" ,libgc)
|
||||||
("python" ,python)
|
("python" ,python)
|
||||||
|
("python-cson" ,python-cson)
|
||||||
|
("python-pyqt" ,python-pyqt)
|
||||||
("readline" ,readline)
|
("readline" ,readline)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -271,6 +275,14 @@ colors, styles, options and details.")
|
||||||
(for-each (cut install-file <> lisp-dir)
|
(for-each (cut install-file <> lisp-dir)
|
||||||
(find-files "." "\\.el$"))
|
(find-files "." "\\.el$"))
|
||||||
(emacs-generate-autoloads ,name lisp-dir))
|
(emacs-generate-autoloads ,name lisp-dir))
|
||||||
|
#t))
|
||||||
|
(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 "PYTHONPATH")))
|
||||||
|
(wrap-program (string-append out "/share/asymptote/GUI/xasy.py")
|
||||||
|
`("PYTHONPATH" ":" prefix (,path))))
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "http://asymptote.sourceforge.net")
|
(home-page "http://asymptote.sourceforge.net")
|
||||||
(synopsis "Script-based vector graphics language")
|
(synopsis "Script-based vector graphics language")
|
||||||
|
|
Reference in New Issue