diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-28 16:38:52 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-02-28 19:08:17 +0100 |
commit | 8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb (patch) | |
tree | f44769313765bcf7252d726b2705a32f86b30842 | |
parent | dev-libs/mongo-c-driver: Cleanup old, EAPI5--, EAPI6-- (diff) | |
download | gentoo-8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb.tar.gz gentoo-8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb.tar.bz2 gentoo-8e7e20dc8ed8c3dfb78189ee614e609a60bf12fb.zip |
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@gentoo.org>
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-1.17.0.ebuild | 20 |
1 files 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 72b58f751ba6..f58927b7e0fe 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 } |