commit:     48ba306a591d62cad7b1b8d91d7822c414377ea1
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Thu Apr 22 22:18:09 2021 +0000
Commit:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Thu Apr 22 22:18:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=48ba306a

media-video/mpv-mpris: Do not call cc directly.

Closes: https://bugs.gentoo.org/785124
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 media-video/mpv-mpris/mpv-mpris-0.5.ebuild  | 8 +++++++-
 media-video/mpv-mpris/mpv-mpris-9999.ebuild | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/media-video/mpv-mpris/mpv-mpris-0.5.ebuild 
b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
index 025424181..ef693dac1 100644
--- a/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
+++ b/media-video/mpv-mpris/mpv-mpris-0.5.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="MPRIS plugin for mpv"
 HOMEPAGE="https://github.com/hoyon/mpv-mpris";
 
@@ -27,6 +29,10 @@ DOCS=(
        README.md
 )
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        insinto "/usr/$(get_libdir)/mpv"
        doins mpris.so

diff --git a/media-video/mpv-mpris/mpv-mpris-9999.ebuild 
b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
index 025424181..ef693dac1 100644
--- a/media-video/mpv-mpris/mpv-mpris-9999.ebuild
+++ b/media-video/mpv-mpris/mpv-mpris-9999.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="MPRIS plugin for mpv"
 HOMEPAGE="https://github.com/hoyon/mpv-mpris";
 
@@ -27,6 +29,10 @@ DOCS=(
        README.md
 )
 
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
 src_install() {
        insinto "/usr/$(get_libdir)/mpv"
        doins mpris.so

Reply via email to