commit:     42a99f0f2d7d75aaa76ef7e03fd66f993fd947c4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May 13 13:54:37 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu May 13 13:54:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a99f0f

sys-boot/mbr-gpt: drop unused flag-o-matic inherit

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild 
b/sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild
index 294caff68d9..3073a1e1cfe 100644
--- a/sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild
+++ b/sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild
@@ -3,19 +3,20 @@
 
 EAPI=7
 
-inherit flag-o-matic toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="An MBR that can handle BIOS-based boot on GPT"
 MY_P="${PN}_${PV}"
 
HOMEPAGE="https://web.archive.org/web/20080704173538/http://aybabtu.com/mbr-gpt/";
 SRC_URI="https://dev.gentoo.org/~robbat2/distfiles/${MY_P}.tar.gz";
+
 LICENSE="GPL-3"
 SLOT="0"
 # This should probably NEVER go to stable. It's crazy advanced dangerous magic.
 # It's also pure ASM, so not suitable for elsewhere anyway.
 # Please don't remove it, robbat2 has a box that depends on it for # booting!
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+
 # It only depends on binutils/gcc/make, and doesn't link against libc even.
 DEPEND=""
 RDEPEND=""
@@ -30,12 +31,15 @@ RESTRICT="binchecks strip"
 
 src_prepare() {
        default
+
        # Messy upstream
        emake clean
 
        # Need to build it 32-bit for the MBR
        # Btw, no CFLAGS are respected, it's ASM!
-       use amd64 && sed -i -e 's/-Wall/-Wall -m32/g' "${S}"/Makefile
+       if use amd64 ; then
+               sed -i -e 's/-Wall/-Wall -m32/g' "${S}"/Makefile || die
+       fi
 }
 
 src_compile() {
@@ -47,9 +51,11 @@ src_install() {
        # location.
        insinto /usr/lib/${PN}
        doins mbr
+
        exeinto /usr/lib/${PN}
        exeopts -m 700
        doexe boot.elf
+
        dodoc AUTHORS
 }
 

Reply via email to