commit:     8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 28 15:38:52 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 28 18:08:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e7e20dc

dev-libs/mongo-c-driver: Switch to cmake.eclass

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

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
index 72b58f751ba..f58927b7e0f 100644
--- 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
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit cmake-utils
+inherit cmake
 
 DESCRIPTION="Client library written in C for MongoDB"
 HOMEPAGE="https://github.com/mongodb/mongo-c-driver";
@@ -15,6 +15,11 @@ KEYWORDS="~amd64 ~hppa ~s390 ~x86"
 IUSE="debug examples icu libressl sasl ssl static-libs test"
 REQUIRED_USE="test? ( static-libs )"
 
+# No tests on x86 because tests require dev-db/mongodb which don't support
+# x86 anymore (bug #645994)
+RESTRICT="x86? ( test )
+       !test? ( test )"
+
 RDEPEND="app-arch/snappy:=
        app-arch/zstd:=
        >=dev-libs/libbson-${PV}[static-libs?]
@@ -32,11 +37,6 @@ DEPEND="${RDEPEND}
                dev-libs/libbson[static-libs]
        )"
 
-# No tests on x86 because tests require dev-db/mongodb which don't support
-# x86 anymore (bug #645994)
-RESTRICT="x86? ( test )
-       !test? ( test )"
-
 PATCHES=(
        "${FILESDIR}/${PN}-1.14.0-no-docs.patch"
        "${FILESDIR}/${PN}-1.16.2-enable-tests.patch" # enable tests with 
system libbson
@@ -44,7 +44,7 @@ PATCHES=(
 )
 
 src_prepare() {
-       cmake-utils_src_prepare
+       cmake_src_prepare
 
        # copy private headers for tests since we don't build libbson
        if use test; then
@@ -72,7 +72,7 @@ src_configure() {
                -DENABLE_ZSTD=ON
        )
 
-       cmake-utils_src_configure
+       cmake_src_configure
 }
 
 # FEATURES="test -network-sandbox" USE="static-libs" emerge 
dev-libs/mongo-c-driver
@@ -90,5 +90,5 @@ src_install() {
                dodoc src/libmongoc/examples/*.c
        fi
 
-       cmake-utils_src_install
+       cmake_src_install
 }

Reply via email to