Gentoo Archives: gentoo-commits

From: Oliver Freyermuth <o.freyermuth@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cglm/
Date: Sat, 01 May 2021 15:35:58
Message-Id: 1619883348.5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a.freyermuth@gentoo
1 commit: 5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat May 1 15:35:48 2021 +0000
4 Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
5 CommitDate: Sat May 1 15:35:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e0f19d8
7
8 dev-libs/cglm: new ebuild
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.2.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++
15 dev-libs/cglm/cglm-9999.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++
16 dev-libs/cglm/metadata.xml | 16 ++++++++++++++++
17 4 files changed, 99 insertions(+)
18
19 diff --git a/dev-libs/cglm/Manifest b/dev-libs/cglm/Manifest
20 new file mode 100644
21 index 000000000..1b93ded5f
22 --- /dev/null
23 +++ b/dev-libs/cglm/Manifest
24 @@ -0,0 +1 @@
25 +DIST cglm-0.8.2.tar.gz 231038 BLAKE2B 138a3aec9446e0588b0fc43462f05caf901ac8d03337120e477ec91df2bb0f65aea43921384eeb3d07d63dc4cd8b6ec016d55d6a40ab1e8db4fd6c74131817b9 SHA512 9ed9661f69fc46c7f0fe8468ec7cdf4071118adaa06b97f99134f5d04a0f7b21158df479f678f78e927c6e4a5d2e6f38c2e8d38ef40ab1f04b2b721af3e7a152
26
27 diff --git a/dev-libs/cglm/cglm-0.8.2.ebuild b/dev-libs/cglm/cglm-0.8.2.ebuild
28 new file mode 100644
29 index 000000000..b3201d57d
30 --- /dev/null
31 +++ b/dev-libs/cglm/cglm-0.8.2.ebuild
32 @@ -0,0 +1,41 @@
33 +# Copyright 2019-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit meson
39 +
40 +if [[ ${PV} == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/recp/cglm.git"
43 +else
44 + SRC_URI="https://github.com/recp/cglm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64"
46 +fi
47 +
48 +DESCRIPTION="OpenGL Mathematics (glm) for C"
49 +HOMEPAGE="https://github.com/recp/cglm"
50 +LICENSE="MIT"
51 +SLOT="0"
52 +
53 +IUSE="doc"
54 +
55 +BDEPEND="dev-util/meson
56 + doc? ( dev-python/sphinx )"
57 +
58 +src_compile() {
59 + default
60 + meson_src_compile
61 + if use doc; then
62 + einfo "Building documentation ..."
63 + local doc_dir="${S}/docs"
64 + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
65 + sphinx-build -b html source build || die "Building documentation failed!"
66 + fi
67 +}
68 +
69 +src_install() {
70 + use doc && local HTML_DOCS=( "${S}/docs/build/." )
71 + default
72 + meson_src_install
73 +}
74
75 diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild
76 new file mode 100644
77 index 000000000..b3201d57d
78 --- /dev/null
79 +++ b/dev-libs/cglm/cglm-9999.ebuild
80 @@ -0,0 +1,41 @@
81 +# Copyright 2019-2021 Gentoo Authors
82 +# Distributed under the terms of the GNU General Public License v2
83 +
84 +EAPI=7
85 +
86 +inherit meson
87 +
88 +if [[ ${PV} == *9999* ]]; then
89 + inherit git-r3
90 + EGIT_REPO_URI="https://github.com/recp/cglm.git"
91 +else
92 + SRC_URI="https://github.com/recp/cglm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
93 + KEYWORDS="~amd64"
94 +fi
95 +
96 +DESCRIPTION="OpenGL Mathematics (glm) for C"
97 +HOMEPAGE="https://github.com/recp/cglm"
98 +LICENSE="MIT"
99 +SLOT="0"
100 +
101 +IUSE="doc"
102 +
103 +BDEPEND="dev-util/meson
104 + doc? ( dev-python/sphinx )"
105 +
106 +src_compile() {
107 + default
108 + meson_src_compile
109 + if use doc; then
110 + einfo "Building documentation ..."
111 + local doc_dir="${S}/docs"
112 + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
113 + sphinx-build -b html source build || die "Building documentation failed!"
114 + fi
115 +}
116 +
117 +src_install() {
118 + use doc && local HTML_DOCS=( "${S}/docs/build/." )
119 + default
120 + meson_src_install
121 +}
122
123 diff --git a/dev-libs/cglm/metadata.xml b/dev-libs/cglm/metadata.xml
124 new file mode 100644
125 index 000000000..b063dadad
126 --- /dev/null
127 +++ b/dev-libs/cglm/metadata.xml
128 @@ -0,0 +1,16 @@
129 +<?xml version="1.0" encoding="UTF-8"?>
130 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
131 +<pkgmetadata>
132 + <maintainer type="person">
133 + <email>o.freyermuth@××××××××××.com</email>
134 + <name>Oliver Freyermuth</name>
135 + </maintainer>
136 + <upstream>
137 + <bugs-to>https://github.com/recp/cglm/issues</bugs-to>
138 + <changelog>https://github.com/recp/cglm/releases</changelog>
139 + <remote-id type="github">recp/cglm</remote-id>
140 + </upstream>
141 + <longdescription lang="en">
142 + cglm is an optimized 3D math library written in C99 (compatible with C89). It is similar to original glm library except this is mainly for C.
143 + </longdescription>
144 +</pkgmetadata>