From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libspatialindex/
Date: Mon, 13 Feb 2023 04:48:40 +0000 (UTC) [thread overview]
Message-ID: <1676263559.2b2af459dee16a8edbbcba4791d7c2b37f04db51.sam@gentoo> (raw)
commit: 2b2af459dee16a8edbbcba4791d7c2b37f04db51
Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Sun Feb 12 20:09:08 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 13 04:45:59 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b2af459
sci-libs/libspatialindex: Fix bug-894054 and bump EAPI
The latest gtest now requires being built with the C++14 dialect or later.
Change the reference of C++11 to C++14 in the affected CMakeLists.txt.
Closes: https://bugs.gentoo.org/894054
Closes: https://github.com/gentoo/gentoo/pull/29562
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../libspatialindex-1.9.3-r2.ebuild | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/sci-libs/libspatialindex/libspatialindex-1.9.3-r2.ebuild b/sci-libs/libspatialindex/libspatialindex-1.9.3-r2.ebuild
new file mode 100644
index 000000000000..d4063f6d21df
--- /dev/null
+++ b/sci-libs/libspatialindex/libspatialindex-1.9.3-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MY_P="spatialindex-src-${PV}"
+
+DESCRIPTION="C++ implementation of R*-tree, an MVR-tree and a TPR-tree with C API"
+HOMEPAGE="https://libspatialindex.org/
+ https://github.com/libspatialindex/libspatialindex"
+SRC_URI="https://github.com/libspatialindex/${PN}/releases/download/${PV}/${MY_P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0/6"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=""
+DEPEND="test? ( >=dev-cpp/gtest-1.10.0 )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-respect-compiler-flags.patch
+ "${FILESDIR}"/${P}-use-system-gtest.patch
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -i -e 's/CMAKE_CXX_STANDARD 11/CMAKE_CXX_STANDARD 14/' \
+ CMakeLists.txt || die "sed failed"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSIDX_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
next reply other threads:[~2023-02-13 4:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 4:48 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-24 15:31 [gentoo-commits] repo/gentoo:master commit in: sci-libs/libspatialindex/ Michał Górny
2023-05-14 10:29 Andreas Sturmlechner
2023-05-14 8:51 Sam James
2023-05-14 8:48 Sam James
2022-02-19 7:19 Arthur Zamarin
2021-08-13 13:32 Marek Szuba
2021-07-22 19:10 Dennis Lamm
2021-07-22 17:39 Sam James
2021-07-22 5:49 Sam James
2021-02-07 23:57 Dennis Lamm
2021-01-07 5:09 Sam James
2021-01-07 5:09 Sam James
2020-07-22 19:25 Dennis Lamm
2019-02-22 11:34 Mikle Kolyada
2019-02-15 0:39 Thomas Deutschmann
2017-03-26 18:32 Michael Orlitzky
2016-07-07 22:50 Austin English
2016-05-22 19:35 Pacho Ramos
2015-08-14 21:17 Julian Ospald
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=1676263559.2b2af459dee16a8edbbcba4791d7c2b37f04db51.sam@gentoo \
--to=sam@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