commit:     3bb00484a980fbbe5fb350ed75b6f5faeddb6a1d
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun May 12 16:51:43 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun May 12 17:00:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3bb00484

gui-apps/lswt: use CHOST CC

Bug: https://bugs.gentoo.org/243502
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 gui-apps/lswt/lswt-1.0.4.ebuild | 6 ++++++
 gui-apps/lswt/lswt-9999.ebuild  | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/gui-apps/lswt/lswt-1.0.4.ebuild b/gui-apps/lswt/lswt-1.0.4.ebuild
index 310b8cf739..e3a5bc0252 100644
--- a/gui-apps/lswt/lswt-1.0.4.ebuild
+++ b/gui-apps/lswt/lswt-1.0.4.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit toolchain-funcs
+
 DESCRIPTION="List Wayland toplevels"
 HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/";
 
@@ -22,6 +24,10 @@ DEPEND="dev-libs/wayland"
 RDEPEND="${DEPEND}"
 BDEPEND="dev-util/wayland-scanner"
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        # Need to install to /usr instead of /usr/local
        # and the Makefile doens't handle DESTDIR properly

diff --git a/gui-apps/lswt/lswt-9999.ebuild b/gui-apps/lswt/lswt-9999.ebuild
index 310b8cf739..e3a5bc0252 100644
--- a/gui-apps/lswt/lswt-9999.ebuild
+++ b/gui-apps/lswt/lswt-9999.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit toolchain-funcs
+
 DESCRIPTION="List Wayland toplevels"
 HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/";
 
@@ -22,6 +24,10 @@ DEPEND="dev-libs/wayland"
 RDEPEND="${DEPEND}"
 BDEPEND="dev-util/wayland-scanner"
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        # Need to install to /usr instead of /usr/local
        # and the Makefile doens't handle DESTDIR properly

Reply via email to