mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-03 13:27:28 -08:00
69 lines
1.3 KiB
Bash
69 lines
1.3 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit dot-a autotools
|
|
|
|
DESCRIPTION="implement a crash-reporting system."
|
|
HOMEPAGE="https://chromium.googlesource.com/breakpad/breakpad/"
|
|
SRC_URI="https://github.com/google/${PN}/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD BSD-4"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test tools"
|
|
|
|
RDEPEND="
|
|
net-misc/curl
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
dev-libs/linux-syscall-support
|
|
dev-embedded/libdisasm
|
|
"
|
|
BDEPEND="test? ( dev-cpp/gtest )"
|
|
RESTRICT="!test? ( test )"
|
|
REQUIRED_USE="elibc_musl? ( !tools )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-2023.06.01-gentoo.patch
|
|
"${FILESDIR}"/${PN}-2023.06.01-reinterpret.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i \
|
|
-e 's|"third_party/lss\(.*\)"|<lss\1>|' \
|
|
$(find src -name '*.cc' -o -name '*.h') \
|
|
|| die
|
|
sed -i \
|
|
-e '/includelss/d' \
|
|
-e '/third_party\/curl/d' \
|
|
Makefile.am \
|
|
|| die
|
|
sed -i \
|
|
-e "/AC_INIT/s:0.1:${PVR}:" \
|
|
-e "/AS_VAR_APPEND/d" \
|
|
configure.ac \
|
|
|| die
|
|
sed -i \
|
|
-e 's|reinterpret_cast|static_cast|g' \
|
|
src/processor/minidump_processor_unittest.cc \
|
|
|| die
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
lto-guarantee-fat
|
|
econf \
|
|
--enable-system-test-libs \
|
|
$(use_enable tools) \
|
|
|| die
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
strip-lto-bytecode
|
|
}
|