commit:     f6f870830839a83eb7f4fd80ec07972cff27cd2b
Author:     Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
AuthorDate: Mon Dec 11 08:27:00 2023 +0000
Commit:     Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
CommitDate: Mon Dec 11 08:28:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f6f87083

games-rpg/open-adventure: add || die to sed calls

Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>

 games-rpg/open-adventure/open-adventure-1.16.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-rpg/open-adventure/open-adventure-1.16.ebuild 
b/games-rpg/open-adventure/open-adventure-1.16.ebuild
index 45758338c5..144ca6192d 100644
--- a/games-rpg/open-adventure/open-adventure-1.16.ebuild
+++ b/games-rpg/open-adventure/open-adventure-1.16.ebuild
@@ -37,13 +37,13 @@ python_check_deps() {
 src_prepare() {
        # remove uncommon flags
        sed -e 's/-D_FORTIFY_SOURCE=2 -fstack-protector-all $(CFLAGS) 
-g/$(CFLAGS)/' \
-               -i Makefile
+               -i Makefile || die "Makefile patching failed"
 
        eapply_user
 
        # Add missing semicolon
        sed -e 's/rspeak(SAVERESUME_DISABLED)/rspeak(SAVERESUME_DISABLED);/' \
-               -i saveresume.c
+               -i saveresume.c || die "Typo fix failed"
 }
 
 src_compile() {

Reply via email to