sys-boot/aboot: Port to EAPI=7
authorMatt Turner <mattst88@gentoo.org>
Wed, 13 Nov 2019 06:51:25 +0000 (22:51 -0800)
committerMatt Turner <mattst88@gentoo.org>
Wed, 13 Nov 2019 06:53:14 +0000 (22:53 -0800)
Closes: https://bugs.gentoo.org/697182
Signed-off-by: Matt Turner <mattst88@gentoo.org>
sys-boot/aboot/aboot-1.0_pre20040408-r3.ebuild

index d6c38443b2c4bb2b476578df85017b06e18e819e..cba6251a37afadc60e449718dd4bef06aef04881 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
 inherit eutils toolchain-funcs
 
@@ -30,18 +30,20 @@ src_unpack() {
        cd "${S}"/include
        ln -s asm-alpha asm || die
        touch linux/config.h || die
-       cd "${S}"
-       epatch "${FILESDIR}/aboot-gcc-3.4.patch"
-       epatch "${FILESDIR}/aboot-pt_note.patch"
+}
+
+src_prepare() {
+       eapply "${FILESDIR}/aboot-gcc-3.4.patch"
+       eapply "${FILESDIR}/aboot-pt_note.patch"
        # Bug 364697
-       epatch "${FILESDIR}/aboot-define_stat_only_in_userspace.patch"
-       epatch "${FILESDIR}"/aboot-respect-AR.patch
-       epatch "${FILESDIR}"/aboot-gnu90.patch
+       eapply "${FILESDIR}/aboot-define_stat_only_in_userspace.patch"
+       eapply "${FILESDIR}"/aboot-respect-AR.patch
+       eapply "${FILESDIR}"/aboot-gnu90.patch
 
        # Modified patch from Debian to add netboot support
-       epatch "${WORKDIR}"/aboot_gentoo.diff
+       eapply "${WORKDIR}"/aboot_gentoo.diff
 
-       epatch_user
+       eapply_user
 }
 
 src_compile() {