mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 14:38:43 +02:00
dev-cpp/prometheus-cpp is required but is never included in DEPEND! Closes: https://bugs.gentoo.org/843326 Closes: https://bugs.gentoo.org/885579 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41626 Signed-off-by: Sam James <sam@gentoo.org>
53 lines
1,011 B
Bash
53 lines
1,011 B
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="The OpenTelemetry C++ Client"
|
|
HOMEPAGE="
|
|
https://opentelemetry.io/
|
|
https://github.com/open-telemetry/opentelemetry-cpp
|
|
"
|
|
SRC_URI="https://github.com/open-telemetry/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64"
|
|
IUSE="+jaeger prometheus test"
|
|
|
|
RDEPEND="
|
|
net-misc/curl:=
|
|
dev-libs/thrift:=
|
|
dev-libs/boost:=
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
prometheus? (
|
|
dev-cpp/prometheus-cpp
|
|
)
|
|
test? (
|
|
dev-cpp/gtest
|
|
dev-cpp/benchmark
|
|
)
|
|
"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
PATCHES=(
|
|
# remove tests the need network
|
|
"${FILESDIR}/opentelemetry-cpp-1.3.0-tests.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
|
|
-DBUILD_SHARED_LIBS:BOOL=ON
|
|
-DBUILD_TESTING:BOOL=$(usex test)
|
|
-DWITH_JAEGER:BOOL=$(usex jaeger)
|
|
-DWITH_PROMETHEUS:BOOL=$(usex prometheus)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|