From 93efc502fb1a3f0db53a9464135bde247225f48d Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Sun, 15 May 2016 00:26:13 -0400 Subject: games-emulation/sdlmame: improve makefile munging (bug #583044) Package-Manager: portage-2.2.28 --- games-emulation/sdlmame/sdlmame-0.173.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'games-emulation/sdlmame') diff --git a/games-emulation/sdlmame/sdlmame-0.173.ebuild b/games-emulation/sdlmame/sdlmame-0.173.ebuild index edac5fe3c2a3..0c3368e48a19 100644 --- a/games-emulation/sdlmame/sdlmame-0.173.ebuild +++ b/games-emulation/sdlmame/sdlmame-0.173.ebuild @@ -53,12 +53,12 @@ S=${WORKDIR} # Function to disable a makefile option disable_feature() { - sed -i -e "/$1.*=/s:^:# :" makefile || die + sed -i -e "/^[ ]*$1.*=/s:^:# :" makefile || die } # Function to enable a makefile option enable_feature() { - sed -i -e "/^#.*$1.*=/s:^#::" makefile || die + sed -i -e "/^#.*$1.*=/s:^#[ ]*::" makefile || die } pkg_setup() { -- cgit v1.2.3-65-gdbad