From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 5/5] gnu: python-acme: Generate and install documentation. Date: Wed, 17 Feb 2016 22:53:53 -0500 Message-ID: <482da9ee97c7605e078a3e089a6c475c72570a34.1455767577.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWFfH-0007od-IH for guix-devel@gnu.org; Wed, 17 Feb 2016 22:54:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWFfF-0003nD-7b for guix-devel@gnu.org; Wed, 17 Feb 2016 22:54:03 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:60562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWFfF-0003mn-4B for guix-devel@gnu.org; Wed, 17 Feb 2016 22:54:01 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 0E8E26800FB for ; Wed, 17 Feb 2016 22:54:00 -0500 (EST) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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