From d5f19f66b1512a0c665eb276eb8293bfc9459092 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Thu, 4 Jun 2020 08:57:09 +0200 Subject: sys-apps/crazydiskinfo: honor CFLAGS and CXXFLAGS. Closes: https://bugs.gentoo.org/725548 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrice Clement --- sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys-apps/crazydiskinfo') diff --git a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild index a1866e19f637..ed033278ff51 100644 --- a/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild +++ b/sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild @@ -18,3 +18,11 @@ DEPEND=" sys-libs/ncurses:0=" RDEPEND="$DEPEND" + +src_prepare() { + sed -e "s#^set(CMAKE_CXX_FLAGS.*#set(CMAKE_CXX_FLAGS \"${CXXFLAGS} -Wall -std=c++11\")#" \ + -e "5s#^#set(CMAKE_C_FLAGS \"${CFLAGS}\")\n#" \ + -i CMakeLists.txt || die "can't patch CMakeLists.txt" + + cmake-utils_src_prepare +} -- cgit v1.2.3-65-gdbad