blob: 45bbff51590355c46c5f63a764f62e27aa4e5bdd (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit toolchain-funcs
DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
HOMEPAGE="https://people.redhat.com/anderson/"
SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
IUSE=""
# there is no "make test" target, but there is a test.c so the automatic
# make rules catch it and tests fail
RESTRICT="test"
src_prepare() {
sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die
default
}
src_compile() {
emake \
CC="$(tc-getCC)" \
AR="$(tc-getAR)" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
|