[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] gnu: python-acme: Generate and install documentation.
From: |
Leo Famulari |
Subject: |
[PATCH 5/5] gnu: python-acme: Generate and install documentation. |
Date: |
Wed, 17 Feb 2016 22:53:53 -0500 |
* gnu/packages/tls.scm (acme)[arguments]: Add 'docs' phase.
[native-inputs]: Add python-sphinx, python-sphinxcontrib-programoutput,
python-sphinx-rtd-theme, python-setuptools, texinfo.
---
gnu/packages/tls.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 00d4805..dc6f9b4 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -340,11 +340,24 @@ security, and applying best practice development
processes.")
(display "\n[easy_install]\nzip_ok = 0\n"
port)
(close-port port)
- #t))))))
- ;; TODO: Add optional inputs for testing and building documentation.
+ #t)))
+ (add-after 'install 'docs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (man (string-append out "/share/man/man1"))
+ (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/man/acme-python.1" man))))))))
+ ;; TODO: Add optional inputs for testing.
(native-inputs
`(("python-mock" ,python-mock)
- ("python-setuptools" ,python-setuptools)))
+ ;; For documentation
+ ("python-sphinx" ,python-sphinx)
+ ("python-sphinxcontrib-programoutput"
,python-sphinxcontrib-programoutput)
+ ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
+ ("python-setuptools" ,python-setuptools)
+ ("texinfo" ,texinfo)))
(propagated-inputs
`(("python-ndg-httpsclient" ,python-ndg-httpsclient)
("python-werkzeug" ,python-werkzeug)
--
2.6.3
- [PATCH 0/5] Install docs for Let's Encrypt, Leo Famulari, 2016/02/17
- [PATCH 5/5] gnu: python-acme: Generate and install documentation.,
Leo Famulari <=
- [PATCH 4/5] gnu: letsencrypt: Generate and install documentation., Leo Famulari, 2016/02/17
- [PATCH 2/5] licenses: Add repoze license., Leo Famulari, 2016/02/17
- [PATCH 3/5] gnu: Add python-sphinx-repoze-autointerface., Leo Famulari, 2016/02/17
- [PATCH 1/5] gnu: Add python-sphinxcontrib-programoutput., Leo Famulari, 2016/02/17
- Re: [PATCH 0/5] Install docs for Let's Encrypt, Leo Famulari, 2016/02/20