Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mongo-c-driver/
Date: Sun, 28 Feb 2021 18:08:50
Message-Id: 1614535697.8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb.asturm@gentoo
1 commit: 8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 15:38:52 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 18:08:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e7e20dc
7
8 dev-libs/mongo-c-driver: Switch to cmake.eclass
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild | 20 ++++++++++----------
14 1 file changed, 10 insertions(+), 10 deletions(-)
15
16 diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild
17 index 72b58f751ba..f58927b7e0f 100644
18 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild
19 +++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild
20 @@ -1,9 +1,9 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26
27 -inherit cmake-utils
28 +inherit cmake
29
30 DESCRIPTION="Client library written in C for MongoDB"
31 HOMEPAGE="https://github.com/mongodb/mongo-c-driver"
32 @@ -15,6 +15,11 @@ KEYWORDS="~amd64 ~hppa ~s390 ~x86"
33 IUSE="debug examples icu libressl sasl ssl static-libs test"
34 REQUIRED_USE="test? ( static-libs )"
35
36 +# No tests on x86 because tests require dev-db/mongodb which don't support
37 +# x86 anymore (bug #645994)
38 +RESTRICT="x86? ( test )
39 + !test? ( test )"
40 +
41 RDEPEND="app-arch/snappy:=
42 app-arch/zstd:=
43 >=dev-libs/libbson-${PV}[static-libs?]
44 @@ -32,11 +37,6 @@ DEPEND="${RDEPEND}
45 dev-libs/libbson[static-libs]
46 )"
47
48 -# No tests on x86 because tests require dev-db/mongodb which don't support
49 -# x86 anymore (bug #645994)
50 -RESTRICT="x86? ( test )
51 - !test? ( test )"
52 -
53 PATCHES=(
54 "${FILESDIR}/${PN}-1.14.0-no-docs.patch"
55 "${FILESDIR}/${PN}-1.16.2-enable-tests.patch" # enable tests with system libbson
56 @@ -44,7 +44,7 @@ PATCHES=(
57 )
58
59 src_prepare() {
60 - cmake-utils_src_prepare
61 + cmake_src_prepare
62
63 # copy private headers for tests since we don't build libbson
64 if use test; then
65 @@ -72,7 +72,7 @@ src_configure() {
66 -DENABLE_ZSTD=ON
67 )
68
69 - cmake-utils_src_configure
70 + cmake_src_configure
71 }
72
73 # FEATURES="test -network-sandbox" USE="static-libs" emerge dev-libs/mongo-c-driver
74 @@ -90,5 +90,5 @@ src_install() {
75 dodoc src/libmongoc/examples/*.c
76 fi
77
78 - cmake-utils_src_install
79 + cmake_src_install
80 }