commit: 93efc502fb1a3f0db53a9464135bde247225f48d
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sun May 15 04:26:13 2016 +0000
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sun May 15 04:26:49 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93efc502
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(-)
diff --git a/games-emulation/sdlmame/sdlmame-0.173.ebuild
b/games-emulation/sdlmame/sdlmame-0.173.ebuild
index edac5fe..0c3368e 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() {