Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/cglm/
Date: Fri, 03 Mar 2023 22:38:43
Message-Id: 1677883113.232ad96fbe44a9d02a022fba1e09b407a6eba790.voyageur@gentoo
1 commit: 232ad96fbe44a9d02a022fba1e09b407a6eba790
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 21:32:56 2023 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 22:38:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232ad96f
7
8 dev-libs/cglm: restore doc build (was in guru overlay)
9
10 Also remove now useless "-Dwerror=false"
11
12 Closes: https://bugs.gentoo.org/897714
13 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
14
15 dev-libs/cglm/cglm-0.8.9-r1.ebuild | 40 ++++++++++++++++++++++++++++++++++++++
16 1 file changed, 40 insertions(+)
17
18 diff --git a/dev-libs/cglm/cglm-0.8.9-r1.ebuild b/dev-libs/cglm/cglm-0.8.9-r1.ebuild
19 new file mode 100644
20 index 000000000000..8adee7688d32
21 --- /dev/null
22 +++ b/dev-libs/cglm/cglm-0.8.9-r1.ebuild
23 @@ -0,0 +1,40 @@
24 +# Copyright 2023 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +DOCS_BUILDER="sphinx"
30 +DOCS_AUTODOC=1
31 +DOCS_DEPEND="dev-python/sphinx-rtd-theme"
32 +DOCS_DIR="${S}/docs/source"
33 +
34 +PYTHON_COMPAT=( python3_{9..11} )
35 +inherit python-any-r1 docs meson
36 +
37 +DESCRIPTION="OpenGL Mathematics (glm) for C"
38 +HOMEPAGE="https://github.com/recp/cglm"
39 +SRC_URI="https://github.com/recp/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
44 +IUSE="test"
45 +
46 +RESTRICT="!test? ( test )"
47 +
48 +src_prepare() {
49 + default
50 + # DOCS_DEPEND needs DOCS_AUTODOC which needs the extension
51 + sed -i -e "/^extensions/s/$/ 'sphinx.ext.autodoc',/" docs/source/conf.py || die
52 +}
53 +src_configure() {
54 + local emesonargs=(
55 + $(meson_use test build_tests)
56 + )
57 + meson_src_configure
58 +}
59 +
60 +src_compile() {
61 + meson_src_compile
62 + docs_compile
63 +}