mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: certbot, python-acme: Build documentation in separate phase.
* gnu/packages/tls.scm (python-acme)[arguments]<:phases>: Add 'build-documentation' phase. Rename 'docs' phase to 'install-documentation'. (certbot)[arguments]<:phases>: Adjust accordingly.
This commit is contained in:
parent
eea2f45369
commit
1fc8476d36
1 changed files with 12 additions and 12 deletions
|
@ -489,15 +489,17 @@ (define-public python-acme
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("'argparse',") ""))
|
(("'argparse',") ""))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'build 'docs
|
(add-after 'build 'build-documentation
|
||||||
|
(lambda _
|
||||||
|
(zero? (system* "make" "-C" "docs" "man" "info"))))
|
||||||
|
(add-after 'install 'install-documentation
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(man (string-append out "/share/man/man1"))
|
(man (string-append out "/share/man/man1"))
|
||||||
(info (string-append out "/info")))
|
(info (string-append out "/info")))
|
||||||
(and (zero? (system* "make" "-C" "docs" "man" "info"))
|
(install-file "docs/_build/texinfo/acme-python.info" info)
|
||||||
(install-file "docs/_build/texinfo/acme-python.info" info)
|
(install-file "docs/_build/man/acme-python.1" man)
|
||||||
(install-file "docs/_build/man/acme-python.1" man)
|
#t))))))
|
||||||
#t)))))))
|
|
||||||
;; TODO: Add optional inputs for testing.
|
;; TODO: Add optional inputs for testing.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-mock" ,python-mock)
|
`(("python-mock" ,python-mock)
|
||||||
|
@ -542,18 +544,16 @@ (define-public certbot
|
||||||
,@(substitute-keyword-arguments (package-arguments python-acme)
|
,@(substitute-keyword-arguments (package-arguments python-acme)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(replace 'docs
|
(replace 'install-documentation
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(man1 (string-append out "/share/man/man1"))
|
(man1 (string-append out "/share/man/man1"))
|
||||||
(man7 (string-append out "/share/man/man7"))
|
(man7 (string-append out "/share/man/man7"))
|
||||||
(info (string-append out "/info")))
|
(info (string-append out "/info")))
|
||||||
(and
|
(install-file "docs/_build/texinfo/Certbot.info" info)
|
||||||
(zero? (system* "make" "-C" "docs" "man" "info"))
|
(install-file "docs/_build/man/certbot.1" man1)
|
||||||
(install-file "docs/_build/texinfo/Certbot.info" info)
|
(install-file "docs/_build/man/certbot.7" man7)
|
||||||
(install-file "docs/_build/man/certbot.1" man1)
|
#t))))))))
|
||||||
(install-file "docs/_build/man/certbot.7" man7)
|
|
||||||
#t)))))))))
|
|
||||||
;; TODO: Add optional inputs for testing.
|
;; TODO: Add optional inputs for testing.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python2-nose" ,python2-nose)
|
`(("python2-nose" ,python2-nose)
|
||||||
|
|
Loading…
Reference in a new issue