blob: f3abd9488f1cda2362e8c76ccaa4b3bb11404d2b (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit autotools-utils
if [[ ${PV} == *9999* ]]; then
inherit git-2
KEYWORDS=""
EGIT_REPO_URI="git://github.com/grehan-freebsd/grub2-bhyve.git"
else
KEYWORDS="~amd64-fbsd"
SRC_URI="https://github.com/grehan-freebsd/grub2-bhyve/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Grub-emu loader for bhyve"
HOMEPAGE="https://github.com/grehan-freebsd/grub2-bhyve"
LICENSE="GPL-3"
SLOT="0"
IUSE="zfs"
RDEPEND="
>=sys-freebsd/freebsd-usbin-10.0
>=sys-libs/ncurses-5.2-r5
zfs? ( >=sys-freebsd/freebsd-cddl-10.0 )
"
DEPEND="${RDEPEND}
sys-devel/bison
sys-devel/flex
sys-apps/help2man
"
src_configure() {
local myeconfargs=(
--disable-werror
--disable-nls
--with-platform=emu
--enable-grub-mount=no
--enable-grub-mkfont=no
--enable-grub-emu-sdl=no
$(use_enable zfs libzfs)
)
autotools-utils_src_configure
}
src_install() {
newbin "${BUILD_DIR}"/grub-core/grub-emu grub-bhyve
}
|