public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Oliver Freyermuth" <o.freyermuth@googlemail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cglm/
Date: Sun, 30 May 2021 15:04:41 +0000 (UTC)	[thread overview]
Message-ID: <1622387077.6affc71a3c6eede0e0a004f1dcf938fb34fe6c5e.freyermuth@gentoo> (raw)

commit:     6affc71a3c6eede0e0a004f1dcf938fb34fe6c5e
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun May 30 15:04:37 2021 +0000
Commit:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sun May 30 15:04:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6affc71a

dev-libs/cglm: use docs.eclass in most recent versions.

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 dev-libs/cglm/cglm-0.8.3.ebuild | 27 +++++++++------------------
 dev-libs/cglm/cglm-9999.ebuild  | 27 +++++++++------------------
 2 files changed, 18 insertions(+), 36 deletions(-)

diff --git a/dev-libs/cglm/cglm-0.8.3.ebuild b/dev-libs/cglm/cglm-0.8.3.ebuild
index 4009cf449..6fbdc797c 100644
--- a/dev-libs/cglm/cglm-0.8.3.ebuild
+++ b/dev-libs/cglm/cglm-0.8.3.ebuild
@@ -3,7 +3,14 @@
 
 EAPI=7
 
-inherit meson
+DOCS_BUILDER="sphinx"
+DOCS_AUTODOC=0
+DOCS_DIR="${S}/docs/source"
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit python-any-r1
+inherit docs meson
 
 if [[ ${PV} == *9999* ]]; then
 	inherit git-r3
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
 LICENSE="MIT"
 SLOT="0"
 
-IUSE="doc"
-
-BDEPEND="dev-util/meson
-	doc? ( dev-python/sphinx )"
-
 src_configure() {
 	local emesonargs=(
 		"-Dwerror=false"
@@ -33,16 +35,5 @@ src_configure() {
 src_compile() {
 	default
 	meson_src_compile
-	if use doc; then
-		einfo "Building documentation ..."
-		local doc_dir="${S}/docs"
-		cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
-		sphinx-build -b html source build || die "Building documentation failed!"
-	fi
-}
-
-src_install() {
-	use doc && local HTML_DOCS=( "${S}/docs/build/." )
-	default
-	meson_src_install
+	docs_compile
 }

diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild
index 4009cf449..6fbdc797c 100644
--- a/dev-libs/cglm/cglm-9999.ebuild
+++ b/dev-libs/cglm/cglm-9999.ebuild
@@ -3,7 +3,14 @@
 
 EAPI=7
 
-inherit meson
+DOCS_BUILDER="sphinx"
+DOCS_AUTODOC=0
+DOCS_DIR="${S}/docs/source"
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit python-any-r1
+inherit docs meson
 
 if [[ ${PV} == *9999* ]]; then
 	inherit git-r3
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
 LICENSE="MIT"
 SLOT="0"
 
-IUSE="doc"
-
-BDEPEND="dev-util/meson
-	doc? ( dev-python/sphinx )"
-
 src_configure() {
 	local emesonargs=(
 		"-Dwerror=false"
@@ -33,16 +35,5 @@ src_configure() {
 src_compile() {
 	default
 	meson_src_compile
-	if use doc; then
-		einfo "Building documentation ..."
-		local doc_dir="${S}/docs"
-		cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
-		sphinx-build -b html source build || die "Building documentation failed!"
-	fi
-}
-
-src_install() {
-	use doc && local HTML_DOCS=( "${S}/docs/build/." )
-	default
-	meson_src_install
+	docs_compile
 }


             reply	other threads:[~2021-05-30 15:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-30 15:04 Oliver Freyermuth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-25  0:02 [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cglm/ Anna Vyalkova
2023-02-04 19:26 Oliver Freyermuth
2023-02-04 19:26 Oliver Freyermuth
2022-12-15 21:24 Oliver Freyermuth
2022-12-15 21:24 Oliver Freyermuth
2022-10-30 14:08 Oliver Freyermuth
2022-10-26 20:27 Oliver Freyermuth
2022-10-26 20:27 Oliver Freyermuth
2022-10-23 17:46 Oliver Freyermuth
2022-10-23 17:46 Oliver Freyermuth
2022-06-01  5:03 Anna Vyalkova
2022-03-20 19:37 Oliver Freyermuth
2022-03-20 19:37 Oliver Freyermuth
2021-08-18 15:00 Oliver Freyermuth
2021-05-30 13:37 Oliver Freyermuth
2021-05-02 13:06 Oliver Freyermuth
2021-05-01 15:35 Oliver Freyermuth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1622387077.6affc71a3c6eede0e0a004f1dcf938fb34fe6c5e.freyermuth@gentoo \
    --to=o.freyermuth@googlemail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox