diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
commit | d5ee59790ee8298b8599b0aa0fa21a98b972a44d (patch) | |
tree | 2cc4393cdcfae28879cee110e5975f6e6b798f91 /dev-libs/sentry-native/sentry-native-0.7.6.ebuild | |
parent | d855918b46ba8714cf1320fe63b55fd0ed1748a6 (diff) |
gentoo auto-resync : 30:06:2024 - 08:00:50
Diffstat (limited to 'dev-libs/sentry-native/sentry-native-0.7.6.ebuild')
-rw-r--r-- | dev-libs/sentry-native/sentry-native-0.7.6.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/sentry-native/sentry-native-0.7.6.ebuild b/dev-libs/sentry-native/sentry-native-0.7.6.ebuild new file mode 100644 index 000000000000..df891d8fbfba --- /dev/null +++ b/dev-libs/sentry-native/sentry-native-0.7.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Sentry SDK for C, C++ and native applications" +HOMEPAGE="https://sentry.io/ https://github.com/getsentry/sentry-native" +SRC_URI="https://github.com/getsentry/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+breakpad +curl test" +RESTRICT="!test? ( test )" + +RDEPEND=" + breakpad? ( dev-util/breakpad ) + curl? ( + net-misc/curl + sys-libs/zlib + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.6.5_no-fuzz-test.patch +) + +src_configure() { + local mycmakeargs=( + -DSENTRY_BUILD_EXAMPLES=OFF + -DSENTRY_BACKEND=$(usex breakpad "breakpad" "inproc") + -DSENTRY_BUILD_TESTS=$(usex test) + -DSENTRY_TRANSPORT=$(usex curl "curl" "none") + -DSENTRY_TRANSPORT_COMPRESSION=$(usex curl) + ) + # Avoid "not used by the project" warnings when USE=-breakpad + if use breakpad; then + mycmakeargs+=( -DSENTRY_BREAKPAD_SYSTEM=ON ) + fi + + cmake_src_configure +} |