Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/samurai/
Date: Tue, 07 Sep 2021 21:06:05
Message-Id: 1631048750.c21a78690ebca4f6c375d8c2794470f93ea6543f.sam@gentoo
1 commit: c21a78690ebca4f6c375d8c2794470f93ea6543f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 7 20:37:08 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 21:05:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c21a7869
7
8 dev-util/samurai: respect CC
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-util/samurai/samurai-1.2-r1.ebuild | 6 ++++++
13 dev-util/samurai/samurai-9999.ebuild | 6 ++++++
14 2 files changed, 12 insertions(+)
15
16 diff --git a/dev-util/samurai/samurai-1.2-r1.ebuild b/dev-util/samurai/samurai-1.2-r1.ebuild
17 index ad8d964b12b..c2072fc277b 100644
18 --- a/dev-util/samurai/samurai-1.2-r1.ebuild
19 +++ b/dev-util/samurai/samurai-1.2-r1.ebuild
20 @@ -3,6 +3,8 @@
21
22 EAPI=7
23
24 +inherit toolchain-funcs
25 +
26 DESCRIPTION="ninja-compatible build tool written in C"
27 HOMEPAGE="https://github.com/michaelforney/samurai"
28 if [[ "${PV}" == *9999 ]] ; then
29 @@ -20,6 +22,10 @@ PATCHES=(
30 "${FILESDIR}/${P}-null_pointer_fix.patch" #786957
31 )
32
33 +src_compile() {
34 + emake CC="$(tc-getCC)"
35 +}
36 +
37 src_install() {
38 emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
39 dodoc README.md
40
41 diff --git a/dev-util/samurai/samurai-9999.ebuild b/dev-util/samurai/samurai-9999.ebuild
42 index 4333d1997bf..6895ee86fc6 100644
43 --- a/dev-util/samurai/samurai-9999.ebuild
44 +++ b/dev-util/samurai/samurai-9999.ebuild
45 @@ -3,6 +3,8 @@
46
47 EAPI=7
48
49 +inherit toolchain-funcs
50 +
51 DESCRIPTION="ninja-compatible build tool written in C"
52 HOMEPAGE="https://github.com/michaelforney/samurai"
53 if [[ "${PV}" == *9999 ]] ; then
54 @@ -16,6 +18,10 @@ fi
55 LICENSE="ISC Apache-2.0 MIT"
56 SLOT="0"
57
58 +src_compile() {
59 + emake CC="$(tc-getCC)"
60 +}
61 +
62 src_install() {
63 emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
64 dodoc README.md