1 |
commit: 5f444e02e0e87bc2c27a67d986a1da06a428eba2 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 3 19:30:11 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=5f444e02 |
7 |
|
8 |
app-misc/sl: honor CC. |
9 |
|
10 |
.. using the tc-getCC function. Whilst at it, honor CFLAGS. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/722316 |
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
app-misc/sl/sl-5.02.ebuild | 6 +++++- |
17 |
1 file changed, 5 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/app-misc/sl/sl-5.02.ebuild b/app-misc/sl/sl-5.02.ebuild |
20 |
index 5601461b679..74a22148b89 100644 |
21 |
--- a/app-misc/sl/sl-5.02.ebuild |
22 |
+++ b/app-misc/sl/sl-5.02.ebuild |
23 |
@@ -22,10 +22,14 @@ DOCS=( README.md ) |
24 |
src_prepare() { |
25 |
default |
26 |
sed \ |
27 |
- -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \ |
28 |
+ -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \ |
29 |
-i Makefile || die |
30 |
} |
31 |
|
32 |
+src_compile() { |
33 |
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" |
34 |
+} |
35 |
+ |
36 |
src_install() { |
37 |
dobin "${PN}" |
38 |
doman "${PN}.1" |