Skip to content

Commit

Permalink
x11-misc/i3blocks-contrib: respect CFLAGS
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/768318
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Ben Kohler <[email protected]>
  • Loading branch information
benkohler committed Feb 2, 2021
1 parent be71a79 commit 866d6a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff -ur a/bandwidth2/Makefile b/bandwidth2/Makefile
--- a/bandwidth2/Makefile 2021-02-02 07:03:47.002894030 -0600
+++ b/bandwidth2/Makefile 2021-02-02 07:05:21.556854777 -0600
@@ -1,6 +1,6 @@
P=bandwidth2
OBJECTS=
-CFLAGS=-g -Wall -Werror -O2 -std=c11
+CFLAGS ?= -g -Wall -Werror -O2 -std=c11
LDLIBS=

$(P): $(OBJECTS)
diff -ur a/cpu_usage2/Makefile b/cpu_usage2/Makefile
--- a/cpu_usage2/Makefile 2021-02-02 07:03:47.004894029 -0600
+++ b/cpu_usage2/Makefile 2021-02-02 07:05:51.138842328 -0600
@@ -1,6 +1,6 @@
P=cpu_usage2
OBJECTS=
-CFLAGS=-g -Wall -Werror -O2 -std=gnu11
+CFLAGS ?= -g -Wall -Werror -O2 -std=gnu11
LDLIBS=

$(P): $(OBJECTS)
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ RDEPEND="!<x11-misc/i3blocks-1.5
>=x11-misc/i3blocks-1.5"
BDEPEND=""

PATCHES=( "${FILESDIR}"/${PN}-respect-CFLAGS.patch )

src_prepare() {
sed -i -e '/^$(_BLOCKS):/ s/$/ installdirs/' Makefile
default
Expand Down

0 comments on commit 866d6a4

Please sign in to comment.