--- grub-2.00-r1.ebuild.orig 2012-10-21 07:01:30.000000000 +0900 +++ grub-2.00-r1.ebuild 2012-11-07 20:17:52.000000000 +0900 @@ -82,8 +82,10 @@ ) " RDEPEND+=" - grub_platforms_efi-32? ( sys-boot/efibootmgr ) - grub_platforms_efi-64? ( sys-boot/efibootmgr ) + kernel_linux? ( + grub_platforms_efi-32? ( sys-boot/efibootmgr ) + grub_platforms_efi-64? ( sys-boot/efibootmgr ) + ) " if [[ -n ${DO_AUTORECONF} ]] ; then DEPEND+=" >=sys-devel/autogen-5.10" @@ -234,6 +236,8 @@ epatch "${FILESDIR}/${P}-config-quoting.patch" #426364 epatch "${FILESDIR}/${P}-tftp-endian.patch" # 438612 epatch "${FILESDIR}/${P}-hardcoded-awk.patch" #424137 + epatch "${FILESDIR}/${P}-fbsd.patch" + epatch "${FILESDIR}/${P}-fbsd91-boot.patch" fi # fix texinfo file name, bug 416035 @@ -273,6 +277,7 @@ use custom-cflags || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS use static && append-ldflags -static + use elibc_FreeBSD && append-cppflags "-isystem /usr/include" # Sandbox bug 404013. use libzfs && addpredict /etc/dfs:/dev/zfs