summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-09-07 21:37:08 +0100
committerSam James <sam@gentoo.org>2021-09-07 22:05:50 +0100
commitc21a78690ebca4f6c375d8c2794470f93ea6543f (patch)
tree5771076e68e62a473151ebfc4b5c323856c7849c /dev-util/samurai
parentdev-python/elementpath: Bump to 2.3.1 (diff)
downloadgentoo-c21a78690ebca4f6c375d8c2794470f93ea6543f.tar.gz
gentoo-c21a78690ebca4f6c375d8c2794470f93ea6543f.tar.bz2
gentoo-c21a78690ebca4f6c375d8c2794470f93ea6543f.zip
dev-util/samurai: respect CC
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/samurai')
-rw-r--r--dev-util/samurai/samurai-1.2-r1.ebuild6
-rw-r--r--dev-util/samurai/samurai-9999.ebuild6
2 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/samurai/samurai-1.2-r1.ebuild b/dev-util/samurai/samurai-1.2-r1.ebuild
index ad8d964b12b3..c2072fc277b1 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 4333d1997bfa..6895ee86fc65 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