summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-irc/ii/ii-1.7-r1.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/net-irc/ii/ii-1.7-r1.ebuild b/net-irc/ii/ii-1.7-r1.ebuild
index 1bc0538ae7bc..4a1fce5af761 100644
--- a/net-irc/ii/ii-1.7-r1.ebuild
+++ b/net-irc/ii/ii-1.7-r1.ebuild
@@ -16,13 +16,13 @@ src_prepare() {
default
sed -i \
- -e "s/CFLAGS[[:space:]]*= -g -O0/CFLAGS += /" \
- -e "s/LDFLAGS[[:space:]]*=/LDFLAGS +=/" \
- -e /^LIBS/d \
+ -e '/^CFLAGS/{s: -Os::g; s:= :+= :g}' \
+ -e '/^CC/d' \
+ -e '/^LDFLAGS/{s:-s::g; s:= :+= :g}' \
config.mk || die
-
- # enable verbose build
- sed -i 's/@${CC}/${CC}/' Makefile || die
+ sed -i \
+ -e 's|@${CC}|$(CC)|g' \
+ Makefile || die
ht_fix_file query.sh
}