Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/cglm/
Date: Sun, 30 May 2021 14:47:15
Message-Id: 1622381863.0947a2e5486efd520c3f1217ebd330f38ceed314.andrewammerlaan@gentoo
1 commit: 0947a2e5486efd520c3f1217ebd330f38ceed314
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sun May 30 13:37:43 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun May 30 13:37:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0947a2e5
7
8 dev-libs/cglm: version bump to 0.8.3.
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
12
13 dev-libs/cglm/Manifest | 1 +
14 dev-libs/cglm/cglm-0.8.3.ebuild | 48 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 49 insertions(+)
16
17 diff --git a/dev-libs/cglm/Manifest b/dev-libs/cglm/Manifest
18 index 1b93ded5f..0f5c7fae7 100644
19 --- a/dev-libs/cglm/Manifest
20 +++ b/dev-libs/cglm/Manifest
21 @@ -1 +1,2 @@
22 DIST cglm-0.8.2.tar.gz 231038 BLAKE2B 138a3aec9446e0588b0fc43462f05caf901ac8d03337120e477ec91df2bb0f65aea43921384eeb3d07d63dc4cd8b6ec016d55d6a40ab1e8db4fd6c74131817b9 SHA512 9ed9661f69fc46c7f0fe8468ec7cdf4071118adaa06b97f99134f5d04a0f7b21158df479f678f78e927c6e4a5d2e6f38c2e8d38ef40ab1f04b2b721af3e7a152
23 +DIST cglm-0.8.3.tar.gz 246664 BLAKE2B 70e89d8926b3470c32ef847d2076fb1d8cbce0b0aa726f84c0bcf0207419b3ee7d70f1bfb40b1598827cd74c1b3482d86d0bb4cb3c77c3667ae341829580cca6 SHA512 71062814637e2523b2632980384fa58a639cdc1bbe8b647e7826fe334a53cd880bd5b29baac7d5eaff2bb009a97830c76b239e7273af46908ad7ab52cc8b8173
24
25 diff --git a/dev-libs/cglm/cglm-0.8.3.ebuild b/dev-libs/cglm/cglm-0.8.3.ebuild
26 new file mode 100644
27 index 000000000..4009cf449
28 --- /dev/null
29 +++ b/dev-libs/cglm/cglm-0.8.3.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 2019-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit meson
37 +
38 +if [[ ${PV} == *9999* ]]; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://github.com/recp/cglm.git"
41 +else
42 + SRC_URI="https://github.com/recp/cglm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 + KEYWORDS="~amd64"
44 +fi
45 +
46 +DESCRIPTION="OpenGL Mathematics (glm) for C"
47 +HOMEPAGE="https://github.com/recp/cglm"
48 +LICENSE="MIT"
49 +SLOT="0"
50 +
51 +IUSE="doc"
52 +
53 +BDEPEND="dev-util/meson
54 + doc? ( dev-python/sphinx )"
55 +
56 +src_configure() {
57 + local emesonargs=(
58 + "-Dwerror=false"
59 + )
60 + meson_src_configure
61 +}
62 +
63 +src_compile() {
64 + default
65 + meson_src_compile
66 + if use doc; then
67 + einfo "Building documentation ..."
68 + local doc_dir="${S}/docs"
69 + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
70 + sphinx-build -b html source build || die "Building documentation failed!"
71 + fi
72 +}
73 +
74 +src_install() {
75 + use doc && local HTML_DOCS=( "${S}/docs/build/." )
76 + default
77 + meson_src_install
78 +}