summaryrefslogtreecommitdiff
blob: 9b139a6f696dccca3ddd8ca8ddd2de0bf0845b9f (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_P="linuxfirmwarekit"
S=${WORKDIR}/${MY_P}

DESCRIPTION="The Linux-ready Firmware Developer Kit is a tool to test how well
Linux works together with the firmware (BIOS or EFI) of your machine."
HOMEPAGE="http://www.linuxfirmwarekit.org/"
SRC_URI="http://www.linuxfirmwarekit.org/download/${PN}-r${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="1"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-libs/glib-2
	sys-libs/slang
	dev-libs/newt"

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch ${FILESDIR}/Makefile-no-externals.diff
	epatch ${FILESDIR}/main.c-fix-plugins-dir.diff
}

src_compile() {
	emake
}

src_install() {
	dolib.so libstandalone.so
	dobin biostest

	exeinto /usr/libexec/firmwarekit/plugins
	doexe plugins/*

	insinto /usr/libexec/firmwarekit/shelltools
	doins shelltools/*

	dodoc Documentation/*
	docinto TestsInfo
	dodoc Documentation/TestsInfo/*
}