gnu: python-matplotlib: Use 'modify-phases' syntax.
* gnu/packages/python.scm (python-matplotlib)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
9a8acd00da
commit
42b7009a00
|
@ -3723,8 +3723,8 @@ transcendental functions).")
|
||||||
("texinfo" ,texinfo)))
|
("texinfo" ,texinfo)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(alist-cons-before
|
(modify-phases %standard-phases
|
||||||
'build 'configure-environment
|
(add-before 'build 'configure-environment
|
||||||
(lambda* (#:key outputs inputs #:allow-other-keys)
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
||||||
(let ((cairo (assoc-ref inputs "cairo"))
|
(let ((cairo (assoc-ref inputs "cairo"))
|
||||||
(gtk+ (assoc-ref inputs "gtk+")))
|
(gtk+ (assoc-ref inputs "gtk+")))
|
||||||
|
@ -3740,9 +3740,8 @@ basedirlist = ~a,~a~%
|
||||||
[rc_options]~%
|
[rc_options]~%
|
||||||
backend = TkAgg~%"
|
backend = TkAgg~%"
|
||||||
(assoc-ref inputs "tcl")
|
(assoc-ref inputs "tcl")
|
||||||
(assoc-ref inputs "tk"))))))
|
(assoc-ref inputs "tk")))))))
|
||||||
(alist-cons-after
|
(add-after 'install 'install-doc
|
||||||
'install 'install-doc
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
||||||
(doc (string-append data "/doc/" ,name "-" ,version))
|
(doc (string-append data "/doc/" ,name "-" ,version))
|
||||||
|
@ -3777,8 +3776,7 @@ backend = TkAgg~%"
|
||||||
(copy-file "build/texinfo/matplotlib.info"
|
(copy-file "build/texinfo/matplotlib.info"
|
||||||
(string-append info "/matplotlib.info"))
|
(string-append info "/matplotlib.info"))
|
||||||
(copy-file "build/latex/Matplotlib.pdf"
|
(copy-file "build/latex/Matplotlib.pdf"
|
||||||
(string-append doc "/Matplotlib.pdf")))))
|
(string-append doc "/Matplotlib.pdf")))))))))
|
||||||
%standard-phases))))
|
|
||||||
(home-page "http://matplotlib.org")
|
(home-page "http://matplotlib.org")
|
||||||
(synopsis "2D plotting library for Python")
|
(synopsis "2D plotting library for Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue