From: Michael Sterrett Date: Sun, 15 May 2016 04:26:13 +0000 (-0400) Subject: games-emulation/sdlmame: improve makefile munging (bug #583044) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=93efc502fb1a3f0db53a9464135bde247225f48d;p=gentoo.git games-emulation/sdlmame: improve makefile munging (bug #583044) Package-Manager: portage-2.2.28 --- 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() {