commit:     6133b41226d1ec047cc80c01599a9eca55cd065f
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  4 20:14:52 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Apr  4 20:30:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6133b412

sys-boot/grub: move PATCHES to src_prepare

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-boot/grub/grub-2.12-r2.ebuild | 12 ++++++------
 sys-boot/grub/grub-9999.ebuild    | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/sys-boot/grub/grub-2.12-r2.ebuild 
b/sys-boot/grub/grub-2.12-r2.ebuild
index ab82c2a1831d..54a9499e073d 100644
--- a/sys-boot/grub/grub-2.12-r2.ebuild
+++ b/sys-boot/grub/grub-2.12-r2.ebuild
@@ -61,12 +61,6 @@ else
        EGIT_REPO_URI="https://git.savannah.gnu.org/git/grub.git";
 fi
 
-PATCHES=(
-       "${FILESDIR}"/gfxpayload.patch
-       "${FILESDIR}"/grub-2.02_beta2-KERNEL_GLOBS.patch
-       "${FILESDIR}"/grub-2.06-test-words.patch
-)
-
 DEJAVU=dejavu-sans-ttf-2.37
 UNIFONT=unifont-15.0.06
 SRC_URI+=" fonts? ( mirror://gnu/unifont/${UNIFONT}/${UNIFONT}.pcf.gz )
@@ -167,6 +161,12 @@ src_unpack() {
 }
 
 src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}"/gfxpayload.patch
+               "${FILESDIR}"/grub-2.02_beta2-KERNEL_GLOBS.patch
+               "${FILESDIR}"/grub-2.06-test-words.patch
+       )
+
        default
 
        if [[ -n ${GRUB_AUTOGEN} || -n ${GRUB_BOOTSTRAP} ]]; then

diff --git a/sys-boot/grub/grub-9999.ebuild b/sys-boot/grub/grub-9999.ebuild
index 44bb51e767ee..bfd0dd40817c 100644
--- a/sys-boot/grub/grub-9999.ebuild
+++ b/sys-boot/grub/grub-9999.ebuild
@@ -61,12 +61,6 @@ else
        EGIT_REPO_URI="https://git.savannah.gnu.org/git/grub.git";
 fi
 
-PATCHES=(
-       "${FILESDIR}"/gfxpayload.patch
-       "${FILESDIR}"/grub-2.02_beta2-KERNEL_GLOBS.patch
-       "${FILESDIR}"/grub-2.06-test-words.patch
-)
-
 DEJAVU=dejavu-sans-ttf-2.37
 UNIFONT=unifont-15.0.06
 SRC_URI+=" fonts? ( mirror://gnu/unifont/${UNIFONT}/${UNIFONT}.pcf.gz )
@@ -167,6 +161,12 @@ src_unpack() {
 }
 
 src_prepare() {
+       local PATCHES=(
+               "${FILESDIR}"/gfxpayload.patch
+               "${FILESDIR}"/grub-2.02_beta2-KERNEL_GLOBS.patch
+               "${FILESDIR}"/grub-2.06-test-words.patch
+       )
+
        default
 
        if [[ -n ${GRUB_AUTOGEN} || -n ${GRUB_BOOTSTRAP} ]]; then

Reply via email to