mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +01:00
gnu: python-matplotlib: Adjust path to figures in 'info' file.
* gnu/packages/python.scm (python-matplotlib): Do it.
This commit is contained in:
parent
5d26e542ee
commit
18b3151613
1 changed files with 12 additions and 2 deletions
|
@ -3276,13 +3276,23 @@ (define-public python-matplotlib
|
|||
;; The doc recommends to run the 'html' target twice.
|
||||
(system* "python" "make.py" "html")
|
||||
(system* "python" "make.py" "html")
|
||||
(copy-recursively "build/html" html)
|
||||
(system* "python" "make.py" "latex")
|
||||
(system* "python" "make.py" "texinfo")
|
||||
(symlink (string-append html "/_images")
|
||||
(string-append info "/matplotlib-figures"))
|
||||
(with-directory-excursion "build/texinfo"
|
||||
(substitute* "matplotlib.texi"
|
||||
(("@image\\{([^,]*)" all file)
|
||||
(string-append "@image{matplotlib-figures/" file)))
|
||||
(symlink (string-append html "/_images")
|
||||
"./matplotlib-figures")
|
||||
(system* "makeinfo" "--no-split"
|
||||
"-o" "matplotlib.info" "matplotlib.texi"))
|
||||
(copy-file "build/texinfo/matplotlib.info"
|
||||
(string-append info "/matplotlib.info"))
|
||||
(copy-file "build/latex/Matplotlib.pdf"
|
||||
(string-append doc "/Matplotlib.pdf"))
|
||||
(copy-recursively "build/html" html))))
|
||||
(string-append doc "/Matplotlib.pdf")))))
|
||||
%standard-phases))))
|
||||
(home-page "http://matplotlib.org")
|
||||
(synopsis "2D plotting library for Python")
|
||||
|
|
Loading…
Reference in a new issue