2024-06-22 00:56:22 +02:00
|
|
|
# Copyright 1999-2024 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
|
|
|
DESCRIPTION="C library for Client Side and Queryable Encryption in MongoDB"
|
|
|
|
HOMEPAGE="https://github.com/mongodb/libmongocrypt"
|
|
|
|
SRC_URI="https://github.com/mongodb/libmongocrypt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
|
|
|
|
IUSE="static-libs test"
|
|
|
|
REQUIRED_USE="test? ( static-libs )"
|
|
|
|
|
|
|
|
RDEPEND="
|
2024-06-25 23:24:35 +02:00
|
|
|
>=dev-libs/libbson-1.27.1[static-libs?]
|
2024-06-22 00:56:22 +02:00
|
|
|
dev-libs/openssl:=
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
test? (
|
|
|
|
dev-libs/libbson[static-libs]
|
|
|
|
)"
|
|
|
|
|
2024-07-06 02:18:49 +02:00
|
|
|
PATCHES=(
|
2024-07-09 08:10:43 +02:00
|
|
|
"${FILESDIR}/${P}-static.patch"
|
2024-07-06 02:18:49 +02:00
|
|
|
)
|
2024-06-22 00:56:22 +02:00
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
2024-06-23 18:14:23 +02:00
|
|
|
-DCMAKE_SKIP_RPATH=ON
|
2024-06-22 00:56:22 +02:00
|
|
|
-DUSE_SHARED_LIBBSON=ON
|
|
|
|
-DMONGOCRYPT_MONGOC_DIR=USE-SYSTEM
|
|
|
|
-DENABLE_ONLINE_TESTS=OFF
|
|
|
|
-DBUILD_VERSION=${PV}
|
|
|
|
-DENABLE_STATIC="$(usex static-libs ON OFF)"
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|