From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1276791-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id A1F871382C5
	for <garchives@archives.gentoo.org>; Fri, 30 Apr 2021 20:01:33 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id EDD94E0849;
	Fri, 30 Apr 2021 20:01:32 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D26B6E0849
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Apr 2021 20:01:32 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8791B340DDF
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Apr 2021 20:01:31 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id D601E4C3
	for <gentoo-commits@lists.gentoo.org>; Fri, 30 Apr 2021 20:01:29 +0000 (UTC)
From: "Ronny Gutbrod" <gentoo@tastytea.de>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" <gentoo@tastytea.de>
Message-ID: <1619812639.abae8dd6d869f6709c3513e7f796a31a1d2a7e5a.tastytea@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libbpg/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: media-libs/libbpg/libbpg-0.9.8.ebuild
X-VCS-Directories: media-libs/libbpg/
X-VCS-Committer: tastytea
X-VCS-Committer-Name: Ronny Gutbrod
X-VCS-Revision: abae8dd6d869f6709c3513e7f796a31a1d2a7e5a
X-VCS-Branch: dev
Date: Fri, 30 Apr 2021 20:01:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 66039b81-fb1b-435c-a3c7-5e8fc0409829
X-Archives-Hash: 53e035e8eed242ce75d9a82c3cd77e0c

commit:     abae8dd6d869f6709c3513e7f796a31a1d2a7e5a
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Apr 30 18:17:19 2021 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Apr 30 19:57:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=abae8dd6

media-libs/libbpg: Set CC and CXX for CMake.

CMake is called from the Makefile and it can't find the compilers if
there are no `cc` and `cxx` symlinks. Inheriting cmake.eclass would
require us to run cmake_src_prepare which would interfere with
upstream's build system.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 media-libs/libbpg/libbpg-0.9.8.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/media-libs/libbpg/libbpg-0.9.8.ebuild b/media-libs/libbpg/libbpg-0.9.8.ebuild
index e1120b791..1d8149d0c 100644
--- a/media-libs/libbpg/libbpg-0.9.8.ebuild
+++ b/media-libs/libbpg/libbpg-0.9.8.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="Better Portable Graphics reference implementation"
 HOMEPAGE="https://bellard.org/bpg/"
 SRC_URI="https://bellard.org/bpg/${P}.tar.gz"
@@ -51,7 +53,9 @@ src_compile() {
 		$(usex x265 USE_X265=y '') \
 		$(usex bpgview USE_BPGVIEW=y '') \
 		$(usex jctvc USE_JCTVC=y '') \
-		$(usex emcc USE_EMCC=y '')
+		$(usex emcc USE_EMCC=y '') \
+		CXX="$(tc-getCXX)" \
+		CC="$(tc-getCC)"
 }
 
 src_install() {