Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ttyload/
Date: Wed, 03 Jun 2020 20:54:34
Message-Id: 1591217645.514545c76bff11a20835b43ce8e2b53c4a110ea5.monsieurp@gentoo
1 commit: 514545c76bff11a20835b43ce8e2b53c4a110ea5
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 20:21:52 2020 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 20:54:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=514545c7
7
8 app-misc/ttyload: honor CC, CFLAGS and LDFLAGS.
9
10 Closes: https://bugs.gentoo.org/722384
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 app-misc/ttyload/ttyload-0.5.3.ebuild | 9 ++++++---
15 1 file changed, 6 insertions(+), 3 deletions(-)
16
17 diff --git a/app-misc/ttyload/ttyload-0.5.3.ebuild b/app-misc/ttyload/ttyload-0.5.3.ebuild
18 index 09ffb3b7571..a3d6358a831 100644
19 --- a/app-misc/ttyload/ttyload-0.5.3.ebuild
20 +++ b/app-misc/ttyload/ttyload-0.5.3.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 +# Copyright 1999-2020 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27 @@ -22,11 +22,14 @@ DOCS=( BUGS HISTORY LICENSE README.md TODO )
28 src_prepare() {
29 default
30 sed -i '10i#include <time.h>' "${PN}.h" || die
31 - sed -i -e "s#make#$\(MAKE\)#" Makefile || die
32 +
33 + sed -e "s#make#$\(MAKE\)#" \
34 + -e "s#^CFLAGS.*#CFLAGS=\$(INCLUDES) ${CFLAGS} \$(VERSION)#" \
35 + -i Makefile || die
36 }
37
38 src_compile() {
39 - emake CC=$(tc-getCC)
40 + emake CC=$(tc-getCC) LDFLAGS="${LDFLAGS}"
41 }
42
43 src_install() {