diff options
| author | Patrick McLean <chutzpah@gentoo.org> | 2022-05-04 15:52:40 -0700 |
|---|---|---|
| committer | Patrick McLean <chutzpah@gentoo.org> | 2022-05-04 15:52:40 -0700 |
| commit | 81cb2e5118409b59978f00d893ff6d115ff498a4 (patch) | |
| tree | 18b4388d85d9f154037d51a46c0d4cb8ef2ecd5e /dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild | |
| parent | a601b8787b0ad44663bf96ee465dcf5d0ae3a918 (diff) | |
| download | gentoo-81cb2e5118409b59978f00d893ff6d115ff498a4.tar.gz gentoo-81cb2e5118409b59978f00d893ff6d115ff498a4.tar.bz2 gentoo-81cb2e5118409b59978f00d893ff6d115ff498a4.zip | |
dev-cpp/opentelemetry-cpp: Revbump add thrift dep (bug #842555)
Closes: https://bugs.gentoo.org/842555
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild')
| -rw-r--r-- | dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild new file mode 100644 index 000000000000..79659a7b0210 --- /dev/null +++ b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.3.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 2022 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" +IUSE="+jaeger prometheus test" + +RDEPEND=" + net-misc/curl:= + dev-libs/thrift:= +" +DEPEND=" + ${RDEPEND} + 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 -a 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 +} |
