summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-07-27 11:56:13 +0200
committerJeroen Roovers <jer@gentoo.org>2017-07-27 11:56:13 +0200
commit5660e25f87eb819cebf6a88998519f657248a1a1 (patch)
treef57f9e77d5e4eb51b9679d53310db2d8aeaefe8e
parentnet-analyzer/cacti-spine: Version bump. (diff)
downloadgentoo-5660e25f87eb819cebf6a88998519f657248a1a1.tar.gz
gentoo-5660e25f87eb819cebf6a88998519f657248a1a1.tar.bz2
gentoo-5660e25f87eb819cebf6a88998519f657248a1a1.zip
x11-terms/st: Fix Makefile sed script (bug #626334).
Package-Manager: Portage-2.3.6, Repoman-2.3.3
-rw-r--r--x11-terms/st/st-9999.ebuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/x11-terms/st/st-9999.ebuild b/x11-terms/st/st-9999.ebuild
index c57b598bd329..0d9226203262 100644
--- a/x11-terms/st/st-9999.ebuild
+++ b/x11-terms/st/st-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -27,20 +27,22 @@ DEPEND="
"
src_prepare() {
- eapply_user
+ default
- sed -e '/^CFLAGS/s:[[:space:]]-Wall[[:space:]]: :' \
+ sed -i \
+ -e '/^CFLAGS/s:[[:space:]]-Wall[[:space:]]: :' \
-e '/^CFLAGS/s:[[:space:]]-O[^[:space:]]*[[:space:]]: :' \
-e '/^LDFLAGS/{s:[[:space:]]-s[[:space:]]: :}' \
-e '/^X11INC/{s:/usr/X11R6/include:/usr/include/X11:}' \
-e "/^X11LIB/{s:/usr/X11R6/lib:/usr/$(get_libdir)/X11:}" \
- -i config.mk || die
- sed -e '/@echo/!s:@::' \
+ config.mk || die
+ sed -i \
-e '/tic/d' \
- -i Makefile || die
- tc-export CC
+ Makefile || die
restore_config config.h
+
+ tc-export CC
}
src_install() {