blob: 81de83078744e434d99d618517aa1c1b0c5ec602 (
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
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Firmware Test Suite"
HOMEPAGE="https://wiki.ubuntu.com/Kernel/Reference/fwts https://github.com/fwts/fwts"
SRC_URI="https://github.com/fwts/fwts/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
# https://bugs.launchpad.net/fwts/+bug/2047906 (bug #795051)
#KEYWORDS="~amd64"
DEPEND="dev-libs/glib:2
>=dev-libs/json-c-0.10-r1
dev-libs/libbsd
dev-libs/libpcre
sys-apps/dmidecode
sys-apps/dtc
sys-apps/pciutils
sys-power/iasl
sys-power/pmtools
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${PN}-22.03.00-werror.patch"
)
src_prepare() {
default
sed -e 's:/usr/bin/lspci:'$(type -p lspci)':' \
-e 's:/usr/sbin/dmidecode:'$(type -p dmidecode)':' \
-e 's:/usr/bin/iasl:'$(type -p iasl)':' \
-i src/lib/include/fwts_binpaths.h || die
eautoreconf
}
src_compile() {
# https://github.com/fwts/fwts/issues/7 (bug #870109)
emake -j1 --shuffle=none
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|