Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/memwatch/
Date: Wed, 03 Jun 2020 20:54:36
Message-Id: 1591217646.822901ef2cbfbee7528be48ab60a6968ec4a636f.monsieurp@gentoo
1 commit: 822901ef2cbfbee7528be48ab60a6968ec4a636f
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 20:53:50 2020 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 20:54:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=822901ef
7
8 sys-process/memwatch: honor CFLAGS.
9
10 Closes: https://bugs.gentoo.org/726004
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 sys-process/memwatch/memwatch-0.3.3.ebuild | 16 ++++++----------
15 1 file changed, 6 insertions(+), 10 deletions(-)
16
17 diff --git a/sys-process/memwatch/memwatch-0.3.3.ebuild b/sys-process/memwatch/memwatch-0.3.3.ebuild
18 index 7d7b6923975..a94e93925a9 100644
19 --- a/sys-process/memwatch/memwatch-0.3.3.ebuild
20 +++ b/sys-process/memwatch/memwatch-0.3.3.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 +# Copyright 1999-2020 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -19,14 +19,10 @@ RDEPEND="${DEPEND}"
28
29 CMAKE_REMOVE_MODULES_LIST="FindCurses"
30
31 -src_configure() {
32 - cmake-utils_src_configure
33 -}
34 -
35 -src_compile() {
36 - cmake-utils_src_compile
37 -}
38 +src_prepare() {
39 + sed -e "s/^set(CMAKE_C_FLAGS.*/set(CMAKE_C_FLAGS \"${CFLAGS}\")/" \
40 + -e "1s/^/project(${PN})\n/" \
41 + -i CMakeLists.txt || die "can't patch CMakeLists.txt"
42
43 -src_install() {
44 - cmake-utils_src_install
45 + cmake-utils_src_prepare
46 }