From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 94A361382C5 for ; Sat, 1 May 2021 15:35:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B636E0D0D; Sat, 1 May 2021 15:35:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DE16E0D0D for ; Sat, 1 May 2021 15:35:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 84195340A7F for ; Sat, 1 May 2021 15:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4DF15D2 for ; Sat, 1 May 2021 15:35:53 +0000 (UTC) From: "Oliver Freyermuth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Oliver Freyermuth" Message-ID: <1619883348.5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a.freyermuth@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/cglm/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/cglm/Manifest dev-libs/cglm/cglm-0.8.2.ebuild dev-libs/cglm/cglm-9999.ebuild dev-libs/cglm/metadata.xml X-VCS-Directories: dev-libs/cglm/ X-VCS-Committer: freyermuth X-VCS-Committer-Name: Oliver Freyermuth X-VCS-Revision: 5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a X-VCS-Branch: dev Date: Sat, 1 May 2021 15:35:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e2794745-cb19-4281-8513-8263ff411c3b X-Archives-Hash: 02e069a119af1afb7f4578c21294d994 commit: 5e0f19d8ba42207b76ff9d53cf9cfd2230ea717a Author: Oliver Freyermuth googlemail com> AuthorDate: Sat May 1 15:35:48 2021 +0000 Commit: Oliver Freyermuth googlemail com> 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 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 @@ + + + + + o.freyermuth@googlemail.com + Oliver Freyermuth + + + https://github.com/recp/cglm/issues + https://github.com/recp/cglm/releases + recp/cglm + + + 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. + +