gentoo/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.16.1.ebuild
Yiyang Wu 6adc7de020
dev-cpp/opentelemetry-cpp: add 1.16.1
IUSE=jager and dev-libs/thrift dependency is removed by
https://github.com/open-telemetry/opentelemetry-cpp/pull/2031

Add remote-id to metadata

Bug: https://bugs.gentoo.org/900707
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-12-01 12:50:34 +00:00

49 lines
912 B
Bash

# Copyright 2022-2024 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 ~ppc64"
IUSE="prometheus test"
RDEPEND="
net-misc/curl:=
dev-libs/boost:=
"
DEPEND="
${RDEPEND}
test? (
dev-cpp/gtest
dev-cpp/benchmark
)
"
RESTRICT="!test? ( test )"
PATCHES=(
# remove tests the need network
"${FILESDIR}/opentelemetry-cpp-1.5.0-tests.patch"
)
src_configure() {
local mycmakeargs=(
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=$(usex test)
-DWITH_PROMETHEUS:BOOL=$(usex prometheus)
)
cmake_src_configure
}