diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-03 20:14:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-03 20:14:29 +0100 |
commit | 56ef021c58088c79bc71257eb348ff6decc47607 (patch) | |
tree | 1dd58f8c1917d4338e207c3868b0360c9066e5b9 /dev-libs/cglm/cglm-0.9.4.ebuild | |
parent | a1d3b28d34c46d8e93a8286b1d3706a3e6c75fcc (diff) |
gentoo auto-resync : 03:04:2024 - 20:14:28
Diffstat (limited to 'dev-libs/cglm/cglm-0.9.4.ebuild')
-rw-r--r-- | dev-libs/cglm/cglm-0.9.4.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/cglm/cglm-0.9.4.ebuild b/dev-libs/cglm/cglm-0.9.4.ebuild new file mode 100644 index 000000000000..4c21cab228fa --- /dev/null +++ b/dev-libs/cglm/cglm-0.9.4.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 +} |