From 7218e1b46bceac05841e90472501742d905fb3fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 Mar 2021 21:55:15 +0000 Subject: gentoo resync : 12.03.2021 --- sci-libs/libspatialindex/Manifest | 2 ++ .../libspatialindex-1.9.3-use-system-gtest.patch | 12 +++++++ .../libspatialindex-1.9.3-r1.ebuild | 37 ++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 sci-libs/libspatialindex/files/libspatialindex-1.9.3-use-system-gtest.patch create mode 100644 sci-libs/libspatialindex/libspatialindex-1.9.3-r1.ebuild (limited to 'sci-libs/libspatialindex') diff --git a/sci-libs/libspatialindex/Manifest b/sci-libs/libspatialindex/Manifest index 08197d7adc5d..055c66d77c4d 100644 --- a/sci-libs/libspatialindex/Manifest +++ b/sci-libs/libspatialindex/Manifest @@ -1,4 +1,6 @@ AUX libspatialindex-1.9.3-respect-compiler-flags.patch 526 BLAKE2B 25ab85c15666fce87c42513c22eab503f2e6617fb45484a7beef69690e4affac2607506f3ffad87878e6791004717aefc43468d50263dfd21a16a176ad008045 SHA512 bbc71df1e53f35415ce8e88c3003a88920f526f96113da2dfa99eda3a3a49b0913d839aae3d95cf7a51d2e93332e49410b214494d7467f3d07025c7fb5551b87 +AUX libspatialindex-1.9.3-use-system-gtest.patch 382 BLAKE2B 113e93e5d5f1524929c07f483f9df53d7b2b7b44bb104ae10564da0a9570be28b0da50ba12c8ed8879be782ff1df9124c85ff3884a4a683f098ebf7db83490dc SHA512 2eeb7f48e7adda39da8338d370d7278b9294f402ccd5506db22c94a5ab561e09429ef0f14df0d1befe9423d18413223814f86122810deb23b7b5e06459841e60 DIST spatialindex-src-1.9.3.tar.bz2 520817 BLAKE2B 89bbb4ef76f620042cbaa2822daad1459bb8a3801fcdedaa73fdc666efcae0e5329e15e79607e3a31ef9a651fbbf9d3657f5bada19b229eaf37fe232935b8dae SHA512 7922807a2f7026542a014d3d7943da5410429b291cf469267ffea5b8075eab2a94e68b6c013425615d221b930fd319c403f3bf43404c9b1d2c92d0e2baae3066 +EBUILD libspatialindex-1.9.3-r1.ebuild 795 BLAKE2B 9b2905bb029c7cc09f229a02a7fb6b947ecf1ac7745530eca2e9a5e6ed5774689d557c6027261f3cc9fc5569cef472e62fdbfbae79ee155e1bdbcf6bb51db476 SHA512 1fa70787f80d81b4d891a6a2713f784a1f5995e27e0662fe35d55fe8d8c82ead8817f1fa7fb895922f707e3209e93ca13104e8a334078c2487cb5e3d9ddaee44 EBUILD libspatialindex-1.9.3.ebuild 703 BLAKE2B 15acede08c365069b469837f8f028e49227484c870e6ac356097493dc80bb2422a6d37777fbed4a391515b4adcc84f9bc3e15c7ad3b8350c35e8d4f2255ea917 SHA512 242dda9ea1180a15e468383ba6c49e4828b77c5e443337655e8927c6cb125fa9e4cb398098c04207db07771a8712b66a357c1c331386be44805c01a7ff080d23 MISC metadata.xml 508 BLAKE2B 4e8acedee7f5bb2118b52544713de9d97559fd6a622d4bdb95ac95fa4028fb0bb880c5a0ebf8c8969bf6b1cc68f4c6186b840017cad59c625eec9995145228c4 SHA512 5542e14bc46471e81273c7a79e074db945a488b65937ccad106980b0826d30d930b02046f1247cb8eeab542e42561738b5dc2f00225b611b4148df1acd747dc2 diff --git a/sci-libs/libspatialindex/files/libspatialindex-1.9.3-use-system-gtest.patch b/sci-libs/libspatialindex/files/libspatialindex-1.9.3-use-system-gtest.patch new file mode 100644 index 000000000000..996fc9b96921 --- /dev/null +++ b/sci-libs/libspatialindex/files/libspatialindex-1.9.3-use-system-gtest.patch @@ -0,0 +1,12 @@ +diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt +--- a/test/gtest/CMakeLists.txt (revision 5a08124d541319d39886710afc1d61dfff5575a1) ++++ b/test/gtest/CMakeLists.txt (date 1615011059253) +@@ -1,8 +1,5 @@ + set (GOOGLETEST_VERSION "1.10.0") + +-add_subdirectory(gtest-1.10.0) +-include_directories(./gtest-1.10.0/include) +- + set (SOURCES + test.h + sidx_api_test.h diff --git a/sci-libs/libspatialindex/libspatialindex-1.9.3-r1.ebuild b/sci-libs/libspatialindex/libspatialindex-1.9.3-r1.ebuild new file mode 100644 index 000000000000..bee01dbe1971 --- /dev/null +++ b/sci-libs/libspatialindex/libspatialindex-1.9.3-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~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_configure() { + local mycmakeargs=( + -DSIDX_BUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} -- cgit v1.2.3