summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2020-06-04 08:57:09 +0200
committerPatrice Clement <monsieurp@gentoo.org>2020-06-04 08:57:54 +0200
commitd5f19f66b1512a0c665eb276eb8293bfc9459092 (patch)
tree4402fe40814c6942020f0bef6a3d5c37d3d2fd03 /sys-apps
parentsys-cluster/keepalived: x86 stable wrt bug #712210 (diff)
downloadgentoo-d5f19f66b1512a0c665eb276eb8293bfc9459092.tar.gz
gentoo-d5f19f66b1512a0c665eb276eb8293bfc9459092.tar.bz2
gentoo-d5f19f66b1512a0c665eb276eb8293bfc9459092.zip
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 <monsieurp@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/crazydiskinfo/crazydiskinfo-1.1.0.ebuild8
1 files changed, 8 insertions, 0 deletions
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
+}