[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/13: gnu: python-cairocffi: Use 'modify-phases' syntax.
From: |
Leo Famulari |
Subject: |
12/13: gnu: python-cairocffi: Use 'modify-phases' syntax. |
Date: |
Tue, 13 Dec 2016 22:04:52 +0000 (UTC) |
lfam pushed a commit to branch python-tests
in repository guix.
commit 6734c7bae34888756eb40ed13a8c16f3e35cc53d
Author: Marius Bakke <address@hidden>
Date: Tue Dec 13 19:28:27 2016 +0100
gnu: python-cairocffi: Use 'modify-phases' syntax.
* gnu/packages/python.scm (python-cairocffi)[arguments]: Use
'modify-phases'.
---
gnu/packages/python.scm | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bed8124..37a595f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4278,24 +4278,24 @@ support for Python 3 and PyPy. It is based on cffi.")
`(("python-xcffib" ,python-xcffib))) ; used at run time
(arguments
`(#:phases
- (alist-cons-after
- 'install 'install-doc
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
- (doc (string-append data "/doc/" ,name "-" ,version))
- (html (string-append doc "/html")))
- (setenv "LD_LIBRARY_PATH"
- (string-append (assoc-ref inputs "cairo") "/lib" ":"
- (assoc-ref inputs "gdk-pixbuf") "/lib"))
- (setenv "LANG" "en_US.UTF-8")
- (mkdir-p html)
- (for-each (lambda (file)
- (copy-file (string-append "." file)
- (string-append doc file)))
- '("/README.rst" "/CHANGES" "/LICENSE"))
- (system* "python" "setup.py" "build_sphinx")
- (copy-recursively "docs/_build/html" html)))
- %standard-phases)))
+ (modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (html (string-append doc "/html")))
+ (setenv "LD_LIBRARY_PATH"
+ (string-append (assoc-ref inputs "cairo") "/lib" ":"
+ (assoc-ref inputs "gdk-pixbuf") "/lib"))
+ (setenv "LANG" "en_US.UTF-8")
+ (mkdir-p html)
+ (for-each (lambda (file)
+ (copy-file (string-append "." file)
+ (string-append doc file)))
+ '("/README.rst" "/CHANGES" "/LICENSE"))
+ (system* "python" "setup.py" "build_sphinx")
+ (copy-recursively "docs/_build/html" html)
+ #t))))))
(home-page "https://github.com/SimonSapin/cairocffi")
(synopsis "Python bindings and object-oriented API for Cairo")
(description
- branch python-tests created (now a792e1a), Leo Famulari, 2016/12/13
- 01/13: build-system/python: Make sure 'check' returns failures., Leo Famulari, 2016/12/13
- 02/13: gnu: python-py: Disable tests., Leo Famulari, 2016/12/13
- 07/13: gnu: python-tornado: Disable tests., Leo Famulari, 2016/12/13
- 12/13: gnu: python-cairocffi: Use 'modify-phases' syntax.,
Leo Famulari <=
- 08/13: gnu: python-click: Fix tests., Leo Famulari, 2016/12/13
- 11/13: gnu: python-xcffib: Disable tests., Leo Famulari, 2016/12/13
- 06/13: gnu: python-sphinx: Disable tests., Leo Famulari, 2016/12/13
- 03/13: gnu: python-six: Fix test dependencies., Leo Famulari, 2016/12/13
- 04/13: gnu: python-coverage: Disable tests., Leo Famulari, 2016/12/13
- 09/13: gnu: python-requests: Disable tests., Leo Famulari, 2016/12/13
- 05/13: gnu: python-pygments: Disable tests., Leo Famulari, 2016/12/13
- 13/13: gnu: python-cairocffi: Disable tests., Leo Famulari, 2016/12/13
- 10/13: gnu: python-xcffib: Use 'modify-phases' syntax., Leo Famulari, 2016/12/13