commit:     33af7fb4ab345f190deec29d8967467e3c7436e4
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 29 08:24:20 2024 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Fri Mar 29 08:24:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33af7fb4

dev-libs/cglm: add 0.9.3

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 dev-libs/cglm/Manifest          |  1 +
 dev-libs/cglm/cglm-0.9.3.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-libs/cglm/Manifest b/dev-libs/cglm/Manifest
index 5d9022d1c4cc..703c95f3b3e6 100644
--- a/dev-libs/cglm/Manifest
+++ b/dev-libs/cglm/Manifest
@@ -1 +1,2 @@
 DIST cglm-0.9.2.tar.gz 672575 BLAKE2B 
82f119f4eeeb2dadee1b18f41e10e4f47db02cbd9b4d6548fa0b47592973f571bf95294fbbcafaf17bf8b09ebe452f72a93a8882f15479fbce92db3d6e1f2b2e
 SHA512 
d5de879b2510f534dbc82c88b6f4f324088468af7218a635aff08cc3327787f95b0dc896816b9610e5a319cd071bf2443923d3c1d426fd58509f39867d684e5f
+DIST cglm-0.9.3.tar.gz 688608 BLAKE2B 
f72468f320426d1c0a540c805bef741ccccacd86c061b7b07636ed0221b2acc59efa467c5c91470fb376abcfce68d4d2bceb6aa77fecfbca3acd6f6790d434c4
 SHA512 
0d773dec44e8246600a53e3c4b117d2eca7f2ebb5855bf113186d4a33a92fe5ccbb3c3a7c7a52a369bb7db37d157b3142af76b569f86cacefc5eb0ab269e9c9c

diff --git a/dev-libs/cglm/cglm-0.9.3.ebuild b/dev-libs/cglm/cglm-0.9.3.ebuild
new file mode 100644
index 000000000000..4c21cab228fa
--- /dev/null
+++ b/dev-libs/cglm/cglm-0.9.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="sphinx"
+DOCS_AUTODOC=1
+DOCS_DEPEND="dev-python/sphinx-rtd-theme"
+DOCS_DIR="${S}/docs/source"
+
+PYTHON_COMPAT=( python3_{9..12} )
+inherit python-any-r1 docs meson
+
+DESCRIPTION="OpenGL Mathematics (glm) for C"
+HOMEPAGE="https://github.com/recp/cglm";
+SRC_URI="https://github.com/recp/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+src_prepare() {
+       default
+       # DOCS_DEPEND needs DOCS_AUTODOC which needs the extension
+       sed -i -e "/^extensions/s/$/ 'sphinx.ext.autodoc',/" 
docs/source/conf.py || die
+}
+src_configure() {
+       local emesonargs=(
+               $(meson_use test build_tests)
+       )
+       meson_src_configure
+}
+
+src_compile() {
+       meson_src_compile
+       docs_compile
+}

Reply via email to