public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glm/
Date: Sat,  1 Aug 2020 14:59:57 +0000 (UTC)	[thread overview]
Message-ID: <1596293955.b13b2f98879179773c114256350c5a2d21f4c15d.tupone@gentoo> (raw)

commit:     b13b2f98879179773c114256350c5a2d21f4c15d
Author:     Karlson2k (Evgeny Grin) <k2k <AT> narod <DOT> ru>
AuthorDate: Wed Jul 29 12:12:50 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Aug  1 14:59:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b13b2f98

media-libs/glm-0.9.9.8: fixes Fixed installation of provided CMake configuration module Skipped build when `test` is not used (header-only library)

Bug: https://bugs.gentoo.org/714778
Closes: https://bugs.gentoo.org/717004

Signed-off-by: Karlson2k (Evgeny Grin) <k2k <AT> narod.ru>
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-libs/glm/glm-0.9.9.8-r1.ebuild | 59 ++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/media-libs/glm/glm-0.9.9.8-r1.ebuild b/media-libs/glm/glm-0.9.9.8-r1.ebuild
new file mode 100644
index 00000000000..d247d9fdf8e
--- /dev/null
+++ b/media-libs/glm/glm-0.9.9.8-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="OpenGL Mathematics"
+HOMEPAGE="http://glm.g-truc.net/"
+SRC_URI="https://github.com/g-truc/glm/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( HappyBunny MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="test cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_avx cpu_flags_x86_avx2"
+RESTRICT="!test? ( test )"
+
+RDEPEND=""
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.9.9.6-simd.patch
+	"${FILESDIR}"/${P}-clang.patch
+)
+
+src_configure() {
+	# Header-only library
+	if use test; then
+		local mycmakeargs=(
+			-DGLM_TEST_ENABLE=ON
+			-DGLM_TEST_ENABLE_SIMD_SSE2="$(usex cpu_flags_x86_sse2 ON OFF)"
+			-DGLM_TEST_ENABLE_SIMD_SSE3="$(usex cpu_flags_x86_sse3 ON OFF)"
+			-DGLM_TEST_ENABLE_SIMD_AVX="$(usex cpu_flags_x86_avx ON OFF)"
+			-DGLM_TEST_ENABLE_SIMD_AVX2="$(usex cpu_flags_x86_avx2 ON OFF)"
+		)
+		cmake_src_configure
+	fi
+
+	sed \
+		-e "s:@CMAKE_INSTALL_PREFIX@:${EPREFIX}/usr:" \
+		-e "s:@GLM_VERSION@:$(ver_cut 1-3):" \
+		"${FILESDIR}"/glm.pc.in \
+		> "${BUILD_DIR}/glm.pc" || die
+}
+
+src_compile() {
+	# Header-only library
+	if use test; then
+		cmake_src_compile
+	fi
+}
+
+src_install() {
+	doheader -r glm
+	insinto /usr/share/pkgconfig
+	doins "${BUILD_DIR}/glm.pc"
+	insinto /usr/share
+	doins -r cmake
+	dodoc readme.md manual.md
+}


             reply	other threads:[~2020-08-01 15:00 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-01 14:59 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-13  9:45 [gentoo-commits] repo/gentoo:master commit in: media-libs/glm/ Alfredo Tupone
2024-03-10 12:49 Arthur Zamarin
2024-03-10 12:13 Arthur Zamarin
2024-03-10 12:04 Arthur Zamarin
2024-03-10 12:04 Arthur Zamarin
2024-03-10 12:04 Arthur Zamarin
2024-03-10 12:04 Arthur Zamarin
2024-03-10 12:04 Arthur Zamarin
2024-03-02 19:50 Alfredo Tupone
2024-02-27 20:33 Alfredo Tupone
2024-01-27 18:24 Ionen Wolkens
2022-08-12 12:26 WANG Xuerui
2022-05-17  1:16 Sam James
2021-12-17 10:06 Andreas Sturmlechner
2021-12-11  3:29 Sam James
2021-12-08  5:01 Sam James
2021-10-29 19:39 Alfredo Tupone
2021-08-12  3:10 Yixun Lan
2021-02-25  9:46 Sam James
2021-02-07 18:19 Sergei Trofimovich
2021-02-07  9:22 Sam James
2021-01-04  3:33 Sam James
2021-01-04  3:31 Sam James
2020-12-03 13:19 Sam James
2020-11-21 21:48 Sergei Trofimovich
2020-08-09 12:32 Sergei Trofimovich
2020-07-02 13:56 Alfredo Tupone
2020-06-17 19:23 Alfredo Tupone
2020-03-31 17:51 Mart Raudsepp
2020-02-18 11:22 Alfredo Tupone
2020-02-18  7:55 Alfredo Tupone
2020-02-17 12:21 Agostino Sarubbo
2020-02-17 12:13 Agostino Sarubbo
2020-02-17 11:45 Agostino Sarubbo
2020-01-11  8:23 Alfredo Tupone
2020-01-10 18:00 Alfredo Tupone
2019-11-18  8:12 Alfredo Tupone
2019-09-09 18:28 Alfredo Tupone
2019-09-09 12:56 Alfredo Tupone
2019-08-01 13:09 Aaron Bauman
2019-04-14 19:31 Alfredo Tupone
2019-04-08 16:27 Alexey Shvetsov
2019-04-02  6:31 Alfredo Tupone
2019-03-21  9:30 Lars Wendler
2019-03-20 21:20 Mikle Kolyada
2019-03-16 21:39 Agostino Sarubbo
2018-11-02 15:39 Lars Wendler
2018-11-02 15:39 Lars Wendler
2018-09-21 18:53 Alfredo Tupone
2018-09-10  9:45 Lars Wendler
2018-08-28 12:17 Alfredo Tupone
2018-06-01 14:11 Lars Wendler
2018-06-01 14:11 Lars Wendler
2018-04-16  9:27 Alfredo Tupone
2018-02-04 19:57 Alfredo Tupone
2017-08-18  8:44 Lars Wendler
2017-08-18  8:44 Lars Wendler
2017-01-26 23:36 Lars Wendler
2017-01-26 23:36 Lars Wendler
2016-11-16 21:30 Lars Wendler
2016-11-16 21:30 Lars Wendler
2016-11-04  9:04 Lars Wendler
2016-10-17  9:05 Lars Wendler
2016-10-17  9:05 Lars Wendler
2016-07-22 20:42 Alfredo Tupone
2016-02-17 21:15 Alfredo Tupone
2015-09-16  8:59 Justin Lecher
2015-09-16  8:59 Justin Lecher
2015-09-16  8:53 Justin Lecher
2015-09-16  8:53 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1596293955.b13b2f98879179773c114256350c5a2d21f4c15d.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox