blob: 8cc0565a27d12853651430dc95ef5242dd8fcb69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="C library that may be linked into a C/C++ program to produce symbolic backtraces"
HOMEPAGE="https://github.com/ianlancetaylor/libbacktrace"
COMMITHASH="8602fda64e78f1f46563220f2ee9f7e70819c51d"
SRC_URI="https://github.com/ianlancetaylor/libbacktrace/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMITHASH}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~riscv ~x86"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/libbacktrace-1.0_p20220709-teststatic.patch"
)
BDEPEND="
test? (
app-arch/xz-utils
sys-libs/zlib
)
"
src_prepare() {
default
eautoreconf
}
src_configure() {
econf --enable-shared \
$(use_enable static{-libs,})
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
|