1 |
commit: d5f19f66b1512a0c665eb276eb8293bfc9459092 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 4 06:57:09 2020 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 4 06:57:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5f19f66 |
7 |
|
8 |
sys-apps/crazydiskinfo: honor CFLAGS and CXXFLAGS. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/725548 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild | 8 ++++++++ |
15 |
1 file changed, 8 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild |
18 |
index a1866e19f63..ed033278ff5 100644 |
19 |
--- a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild |
20 |
+++ b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild |
21 |
@@ -18,3 +18,11 @@ DEPEND=" |
22 |
sys-libs/ncurses:0=" |
23 |
|
24 |
RDEPEND="$DEPEND" |
25 |
+ |
26 |
+src_prepare() { |
27 |
+ sed -e "s#^set(CMAKE_CXX_FLAGS.*#set(CMAKE_CXX_FLAGS \"${CXXFLAGS} -Wall -std=c++11\")#" \ |
28 |
+ -e "5s#^#set(CMAKE_C_FLAGS \"${CFLAGS}\")\n#" \ |
29 |
+ -i CMakeLists.txt || die "can't patch CMakeLists.txt" |
30 |
+ |
31 |
+ cmake-utils_src_prepare |
32 |
+} |