diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-08-23 21:57:30 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-08-23 22:05:51 +0100 |
commit | 85f96685aa2e5b7cf8f7d71b973cc68181830d81 (patch) | |
tree | d49c9e5e83dc75c26989b3a3e4f90c5f9f43b437 /dev-libs/sentry-native | |
parent | mail-mta/proton-mail-bridge: remove IUSE=gui from 3.1.3 (diff) | |
download | gentoo-85f96685aa2e5b7cf8f7d71b973cc68181830d81.tar.gz gentoo-85f96685aa2e5b7cf8f7d71b973cc68181830d81.tar.bz2 gentoo-85f96685aa2e5b7cf8f7d71b973cc68181830d81.zip |
dev-libs/sentry-native: make installed cmake modules handle USE=breakpad
Looks like upstream has only tested this for bundled breakpad.
Closes: https://bugs.gentoo.org/912886
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/sentry-native')
-rw-r--r-- | dev-libs/sentry-native/files/sentry-native-0.6.5_cmake-breakpad.patch | 14 | ||||
-rw-r--r-- | dev-libs/sentry-native/sentry-native-0.6.5-r1.ebuild (renamed from dev-libs/sentry-native/sentry-native-0.6.5.ebuild) | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/dev-libs/sentry-native/files/sentry-native-0.6.5_cmake-breakpad.patch b/dev-libs/sentry-native/files/sentry-native-0.6.5_cmake-breakpad.patch new file mode 100644 index 000000000000..cd54813c3528 --- /dev/null +++ b/dev-libs/sentry-native/files/sentry-native-0.6.5_cmake-breakpad.patch @@ -0,0 +1,14 @@ +--- a/sentry-config.cmake.in ++++ b/sentry-config.cmake.in +@@ -3,7 +3,10 @@ + set(SENTRY_BACKEND @SENTRY_BACKEND@) + set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@) + +-if(SENTRY_BACKEND STREQUAL "crashpad") ++if(SENTRY_BACKEND STREQUAL "breakpad") ++ find_package(PkgConfig REQUIRED) ++ pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client) ++elseif(SENTRY_BACKEND STREQUAL "crashpad") + if(@SENTRY_CRASHPAD_SYSTEM@) + find_package(crashpad REQUIRED) + else() diff --git a/dev-libs/sentry-native/sentry-native-0.6.5.ebuild b/dev-libs/sentry-native/sentry-native-0.6.5-r1.ebuild index c3aebc25ea41..1e3a691a642a 100644 --- a/dev-libs/sentry-native/sentry-native-0.6.5.ebuild +++ b/dev-libs/sentry-native/sentry-native-0.6.5-r1.ebuild @@ -17,12 +17,16 @@ IUSE="+breakpad +curl test" RESTRICT="!test? ( test )" RDEPEND=" - breakpad? ( dev-util/breakpad ) + breakpad? ( + dev-util/breakpad + virtual/pkgconfig + ) curl? ( net-misc/curl ) " DEPEND="${RDEPEND}" PATCHES=( + "${FILESDIR}"/${PN}-0.6.5_cmake-breakpad.patch "${FILESDIR}"/${PN}-0.6.5_no-fuzz-test.patch ) |