Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/efibootmgr-0.11.0.ebuild,v 1.4 2015/02/28 13:25:47 ago Exp $ |
4 |
|
5 |
EAPI=5 |
6 |
|
7 |
inherit eutils toolchain-funcs |
8 |
|
9 |
DESCRIPTION="User-space application to modify the EFI boot manager" |
10 |
HOMEPAGE="https://github.com/vathpela/efibootmgr" |
11 |
SRC_URI="https://github.com/vathpela/${PN}/releases/download/${P}/${P}.tar.bz2" |
12 |
|
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
15 |
KEYWORDS="amd64 ia64 x86" |
16 |
IUSE="" |
17 |
|
18 |
RDEPEND="sys-apps/pciutils |
19 |
sys-libs/efivar" |
20 |
DEPEND="${RDEPEND}" |
21 |
|
22 |
src_prepare() { |
23 |
epatch "${FILESDIR}/efibootmgr-use-linux-pci-header.patch" |
24 |
sed -i -e s/-Werror// Makefile || die |
25 |
} |
26 |
|
27 |
src_configure() { |
28 |
tc-export CC |
29 |
export EXTRA_CFLAGS=${CFLAGS} |
30 |
} |
31 |
|
32 |
src_install() { |
33 |
# build system uses perl, so just do it ourselves |
34 |
dosbin src/efibootmgr/efibootmgr |
35 |
doman src/man/man8/efibootmgr.8 |
36 |
dodoc AUTHORS README doc/ChangeLog doc/TODO |
37 |
} |