gnu: python-cffi: Update phase style.
* gnu/packages/libffi.scm (python-cffi)[arguments]: Substitute INVOKE for SYSTEM*, end phases with #t, and remove unneeded bits from the ‘install-doc’ phase.
This commit is contained in:
parent
b737530569
commit
fc38e317cd
|
@ -122,7 +122,8 @@ conversions for values passed between the two languages.")
|
||||||
"linker_so='gcc -shared')")))
|
"linker_so='gcc -shared')")))
|
||||||
(substitute* "testing/cffi0/test_ownlib.py"
|
(substitute* "testing/cffi0/test_ownlib.py"
|
||||||
(("'cc testownlib") "'gcc testownlib"))
|
(("'cc testownlib") "'gcc testownlib"))
|
||||||
(zero? (system* "py.test" "-v" "c/" "testing/"))))
|
(invoke "py.test" "-v" "c/" "testing/")
|
||||||
|
#t))
|
||||||
(add-before 'check 'disable-failing-test
|
(add-before 'check 'disable-failing-test
|
||||||
;; This is assumed to be a libffi issue:
|
;; This is assumed to be a libffi issue:
|
||||||
;; https://bitbucket.org/cffi/cffi/issues/312/tests-failed-with-armv8
|
;; https://bitbucket.org/cffi/cffi/issues/312/tests-failed-with-armv8
|
||||||
|
@ -131,15 +132,14 @@ conversions for values passed between the two languages.")
|
||||||
(("ret.left") "ownlib.left"))
|
(("ret.left") "ownlib.left"))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install 'install-doc
|
(add-after 'install 'install-doc
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
|
||||||
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
(let* ((doc (string-append (assoc-ref outputs "doc")
|
||||||
(doc (string-append data "/doc/" ,name "-" ,version))
|
"/share/doc/" ,name "-" ,version))
|
||||||
(html (string-append doc "/html")))
|
(html (string-append doc "/html")))
|
||||||
(with-directory-excursion "doc"
|
(with-directory-excursion "doc"
|
||||||
(system* "make" "html")
|
(apply invoke "make" "html" make-flags)
|
||||||
(mkdir-p html)
|
(mkdir-p html)
|
||||||
(copy-recursively "build/html" html))
|
(copy-recursively "build/html" html))
|
||||||
(copy-file "LICENSE" (string-append doc "/LICENSE"))
|
|
||||||
#t))))))
|
#t))))))
|
||||||
(home-page "https://cffi.readthedocs.org")
|
(home-page "https://cffi.readthedocs.org")
|
||||||
(synopsis "Foreign function interface for Python")
|
(synopsis "Foreign function interface for Python")
|
||||||
|
|
Loading…
Reference in New Issue