From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DE6FC1382C5 for ; Sat, 27 Feb 2021 11:09:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13DBEE091D; Sat, 27 Feb 2021 11:09:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CDA98E091D for ; Sat, 27 Feb 2021 11:09:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 88130341116 for ; Sat, 27 Feb 2021 11:09:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C93014DC for ; Sat, 27 Feb 2021 11:09:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1614424126.0fded558b9338ebfee35a6abcee1d15fd9364252.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgdev/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/pkgdev/pkgdev-9999.ebuild X-VCS-Directories: dev-util/pkgdev/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0fded558b9338ebfee35a6abcee1d15fd9364252 X-VCS-Branch: master Date: Sat, 27 Feb 2021 11:09:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c44064fe-1ca2-44a9-aa33-df38f18e1548 X-Archives-Hash: c3c931562d0a8b8f275b1ac80ad3d1a1 commit: 0fded558b9338ebfee35a6abcee1d15fd9364252 Author: Sam James gentoo org> AuthorDate: Sat Feb 27 11:08:28 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Feb 27 11:08:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fded558 dev-util/pkgdev: add man page/doc generation Signed-off-by: Sam James gentoo.org> dev-util/pkgdev/pkgdev-9999.ebuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dev-util/pkgdev/pkgdev-9999.ebuild b/dev-util/pkgdev/pkgdev-9999.ebuild index bc60a9ad96a..0b934f899b7 100644 --- a/dev-util/pkgdev/pkgdev-9999.ebuild +++ b/dev-util/pkgdev/pkgdev-9999.ebuild @@ -26,3 +26,24 @@ if [[ ${PV} == *9999 ]]; then ~dev-python/snakeoil-9999[${PYTHON_USEDEP}] ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" fi + +distutils_enable_sphinx doc + +python_install_all() { + # We'll generate man pages ourselves + # Reevisit when a release is made + # so we can pregenerate some, making USE=doc + # for generating the real HTML docs only. + if use doc ; then + cd doc || die + emake man + doman _build/man/* + fi + + cd .. || die + + # HTML pages only + sphinx_compile_all + + distutils-r1_python_install_all +}