commit: 5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> AuthorDate: Sat May 1 15:35:48 2021 +0000 Commit: Theo Anderson <telans <AT> posteo <DOT> de> CommitDate: Sat May 1 15:35:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e0f19d8
dev-libs/cglm: new ebuild Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> dev-libs/cglm/Manifest | 1 + dev-libs/cglm/cglm-0.8.2.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++ dev-libs/cglm/cglm-9999.ebuild | 41 +++++++++++++++++++++++++++++++++++++++++ dev-libs/cglm/metadata.xml | 16 ++++++++++++++++ 4 files changed, 99 insertions(+) diff --git a/dev-libs/cglm/Manifest b/dev-libs/cglm/Manifest new file mode 100644 index 000000000..1b93ded5f --- /dev/null +++ b/dev-libs/cglm/Manifest @@ -0,0 +1 @@ +DIST cglm-0.8.2.tar.gz 231038 BLAKE2B 138a3aec9446e0588b0fc43462f05caf901ac8d03337120e477ec91df2bb0f65aea43921384eeb3d07d63dc4cd8b6ec016d55d6a40ab1e8db4fd6c74131817b9 SHA512 9ed9661f69fc46c7f0fe8468ec7cdf4071118adaa06b97f99134f5d04a0f7b21158df479f678f78e927c6e4a5d2e6f38c2e8d38ef40ab1f04b2b721af3e7a152 diff --git a/dev-libs/cglm/cglm-0.8.2.ebuild b/dev-libs/cglm/cglm-0.8.2.ebuild new file mode 100644 index 000000000..b3201d57d --- /dev/null +++ b/dev-libs/cglm/cglm-0.8.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/recp/cglm.git" +else + SRC_URI="https://github.com/recp/cglm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="OpenGL Mathematics (glm) for C" +HOMEPAGE="https://github.com/recp/cglm" +LICENSE="MIT" +SLOT="0" + +IUSE="doc" + +BDEPEND="dev-util/meson + doc? ( dev-python/sphinx )" + +src_compile() { + default + meson_src_compile + if use doc; then + einfo "Building documentation ..." + local doc_dir="${S}/docs" + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" + sphinx-build -b html source build || die "Building documentation failed!" + fi +} + +src_install() { + use doc && local HTML_DOCS=( "${S}/docs/build/." ) + default + meson_src_install +} diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild new file mode 100644 index 000000000..b3201d57d --- /dev/null +++ b/dev-libs/cglm/cglm-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/recp/cglm.git" +else + SRC_URI="https://github.com/recp/cglm/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="OpenGL Mathematics (glm) for C" +HOMEPAGE="https://github.com/recp/cglm" +LICENSE="MIT" +SLOT="0" + +IUSE="doc" + +BDEPEND="dev-util/meson + doc? ( dev-python/sphinx )" + +src_compile() { + default + meson_src_compile + if use doc; then + einfo "Building documentation ..." + local doc_dir="${S}/docs" + cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" + sphinx-build -b html source build || die "Building documentation failed!" + fi +} + +src_install() { + use doc && local HTML_DOCS=( "${S}/docs/build/." ) + default + meson_src_install +} diff --git a/dev-libs/cglm/metadata.xml b/dev-libs/cglm/metadata.xml new file mode 100644 index 000000000..b063dadad --- /dev/null +++ b/dev-libs/cglm/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>o.freyerm...@googlemail.com</email> + <name>Oliver Freyermuth</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/recp/cglm/issues</bugs-to> + <changelog>https://github.com/recp/cglm/releases</changelog> + <remote-id type="github">recp/cglm</remote-id> + </upstream> + <longdescription lang="en"> + 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. + </longdescription> +</pkgmetadata>