public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/samurai/
Date: Tue,  7 Sep 2021 21:06:02 +0000 (UTC)	[thread overview]
Message-ID: <1631048750.c21a78690ebca4f6c375d8c2794470f93ea6543f.sam@gentoo> (raw)

commit:     c21a78690ebca4f6c375d8c2794470f93ea6543f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  7 20:37:08 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep  7 21:05:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c21a7869

dev-util/samurai: respect CC

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/samurai/samurai-1.2-r1.ebuild | 6 ++++++
 dev-util/samurai/samurai-9999.ebuild   | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/dev-util/samurai/samurai-1.2-r1.ebuild b/dev-util/samurai/samurai-1.2-r1.ebuild
index ad8d964b12b..c2072fc277b 100644
--- a/dev-util/samurai/samurai-1.2-r1.ebuild
+++ b/dev-util/samurai/samurai-1.2-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="ninja-compatible build tool written in C"
 HOMEPAGE="https://github.com/michaelforney/samurai"
 if [[ "${PV}" == *9999 ]] ; then
@@ -20,6 +22,10 @@ PATCHES=(
 	"${FILESDIR}/${P}-null_pointer_fix.patch" #786957
 )
 
+src_compile() {
+	emake CC="$(tc-getCC)"
+}
+
 src_install() {
 	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
 	dodoc README.md

diff --git a/dev-util/samurai/samurai-9999.ebuild b/dev-util/samurai/samurai-9999.ebuild
index 4333d1997bf..6895ee86fc6 100644
--- a/dev-util/samurai/samurai-9999.ebuild
+++ b/dev-util/samurai/samurai-9999.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="ninja-compatible build tool written in C"
 HOMEPAGE="https://github.com/michaelforney/samurai"
 if [[ "${PV}" == *9999 ]] ; then
@@ -16,6 +18,10 @@ fi
 LICENSE="ISC Apache-2.0 MIT"
 SLOT="0"
 
+src_compile() {
+	emake CC="$(tc-getCC)"
+}
+
 src_install() {
 	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
 	dodoc README.md


             reply	other threads:[~2021-09-07 21:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 21:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-08  0:56 [gentoo-commits] repo/gentoo:master commit in: dev-util/samurai/ Jakov Smolić
2023-12-08  8:57 Arthur Zamarin
2023-10-06 19:02 Sam James
2023-10-06 18:36 Arthur Zamarin
2023-10-06 17:05 Arthur Zamarin
2023-10-06 17:05 Arthur Zamarin
2023-10-06 17:05 Arthur Zamarin
2023-10-06 16:04 Sam James
2023-02-22  9:32 Sam James
2022-06-29  6:29 Joonas Niilola
2021-04-28 18:29 Lars Wendler
2021-04-09  7:16 Lars Wendler
2021-04-09  6:40 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1631048750.c21a78690ebca4f6c375d8c2794470f93ea6543f.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox