summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2023-08-02 21:33:13 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2023-08-02 21:35:17 +0200
commit3ce003b7dab9faed62758ef0a278ad97eebb4277 (patch)
treeb87fca6ddd5a854bcdd629f832d96cc123454cee /dev-libs
parentdev-libs/cglm: drop 0.8.9 (diff)
downloadgentoo-3ce003b7dab9faed62758ef0a278ad97eebb4277.tar.gz
gentoo-3ce003b7dab9faed62758ef0a278ad97eebb4277.tar.bz2
gentoo-3ce003b7dab9faed62758ef0a278ad97eebb4277.zip
dev-libs/cglm: add 0.9.0
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/cglm/Manifest1
-rw-r--r--dev-libs/cglm/cglm-0.9.0.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/cglm/Manifest b/dev-libs/cglm/Manifest
index 4b9a3c5baa8c..3d173ba9f040 100644
--- a/dev-libs/cglm/Manifest
+++ b/dev-libs/cglm/Manifest
@@ -1 +1,2 @@
DIST cglm-0.8.9.tar.gz 631331 BLAKE2B 17f6f8d379aa81ee9327315b121cc7629fcc394fe032c1e1540e5153b2d3b0a2129f27eb46a8ae4323aa826b2bfff310b9039f78953d52d0bd994ba493fcdbd9 SHA512 ac0a042d61c60eac7d6616e5bc0f5c3e77b1a45f58f6732b34edc9a0d714046777e4b490200a3b54c6325ddad5b5faeb3648a299685f748f8b0618ce66a9a7f4
+DIST cglm-0.9.0.tar.gz 642861 BLAKE2B d02cb83abeeea793e5ab7b9473a9a26dcaf3e15209b555c34b6981e3becd6edbd94f0687126114a8917d9f4958575f2cf37a846b7fc54fd236d30198d1fe7aaf SHA512 23ad89df9cd80d69caf0fcf59d6acfbea710d9b6ae50634d4a32718d0214d1624df3bf8f874a76a93c3952e97f94ff48b65103035e87519bb9dbfce7fd2af427
diff --git a/dev-libs/cglm/cglm-0.9.0.ebuild b/dev-libs/cglm/cglm-0.9.0.ebuild
new file mode 100644
index 000000000000..8adee7688d32
--- /dev/null
+++ b/dev-libs/cglm/cglm-0.9.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2023 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..11} )
+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
+}