commit:     822901ef2cbfbee7528be48ab60a6968ec4a636f
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  3 20:53:50 2020 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Jun  3 20:54:06 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=822901ef

sys-process/memwatch: honor CFLAGS.

Closes: https://bugs.gentoo.org/726004
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 sys-process/memwatch/memwatch-0.3.3.ebuild | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/sys-process/memwatch/memwatch-0.3.3.ebuild 
b/sys-process/memwatch/memwatch-0.3.3.ebuild
index 7d7b6923975..a94e93925a9 100644
--- a/sys-process/memwatch/memwatch-0.3.3.ebuild
+++ b/sys-process/memwatch/memwatch-0.3.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,14 +19,10 @@ RDEPEND="${DEPEND}"
 
 CMAKE_REMOVE_MODULES_LIST="FindCurses"
 
-src_configure() {
-       cmake-utils_src_configure
-}
-
-src_compile() {
-       cmake-utils_src_compile
-}
+src_prepare() {
+       sed -e "s/^set(CMAKE_C_FLAGS.*/set(CMAKE_C_FLAGS \"${CFLAGS}\")/" \
+               -e "1s/^/project(${PN})\n/" \
+               -i CMakeLists.txt || die "can't patch CMakeLists.txt"
 
-src_install() {
-       cmake-utils_src_install
+       cmake-utils_src_prepare
 }

Reply via email to