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 F122913835A for ; Thu, 13 May 2021 18:51:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08219E07AE; Thu, 13 May 2021 18:51:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 E2ED8E07AE for ; Thu, 13 May 2021 18:51:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 577F6340DED for ; Thu, 13 May 2021 18:51:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4BD275B for ; Thu, 13 May 2021 18:50:58 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1620921438.d288205bf81177e99b2e867052db04c774f800dd.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/vexcl/files/, dev-cpp/vexcl/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild X-VCS-Directories: dev-cpp/vexcl/files/ dev-cpp/vexcl/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d288205bf81177e99b2e867052db04c774f800dd X-VCS-Branch: master Date: Thu, 13 May 2021 18:50:58 +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: 5714debb-32a0-4239-bc19-3a8656d576a3 X-Archives-Hash: 770d71e6769481e3e41f7fef0b2fbaaa commit: d288205bf81177e99b2e867052db04c774f800dd Author: Alessandro Barbieri gmail com> AuthorDate: Thu May 13 15:56:53 2021 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Thu May 13 15:57:18 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d288205b dev-cpp/vexcl: improve docs WIP Signed-off-by: Alessandro Barbieri gmail.com> dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch | 11 +++++++++++ dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild | 11 +++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch b/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch new file mode 100644 index 000000000..405376cf9 --- /dev/null +++ b/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch @@ -0,0 +1,11 @@ +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -45,7 +45,7 @@ + # Add any Sphinx extension module names here, as strings. They can be + # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom + # ones. +-extensions = ['breathe', 'sphinx.ext.mathjax', ++extensions = ['breathe', 'sphinx.ext.mathjax', 'sphinx.ext.autodoc', + 'matplotlib.sphinxext.plot_directive'] + + breathe_projects = {'VEXCL' : 'xml'} diff --git a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild index a2599bbb7..b3c196c69 100644 --- a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild +++ b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild @@ -3,9 +3,11 @@ EAPI=7 -#DOCS_AUTODOC=0 DOCS_BUILDER="sphinx" -DOCS_DEPEND="dev-python/sphinx-bootstrap-theme" +DOCS_DEPEND=" + dev-python/breathe + dev-python/sphinx-bootstrap-theme +" DOCS_DIR="docs" PYTHON_COMPAT=( python3_{7..9} ) @@ -29,9 +31,10 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" ) + src_prepare() { - default - sed -e "s|git_version()|${PV}|g" -i docs/conf.py || die + sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die cmake_src_prepare }