From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1173985-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 323311382C5 for <garchives@archives.gentoo.org>; Sun, 24 May 2020 22:11:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D5BDE08F4; Sun, 24 May 2020 22:11:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 2D0EFE08F4 for <gentoo-commits@lists.gentoo.org>; Sun, 24 May 2020 22:11:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 7C29634EFA4 for <gentoo-commits@lists.gentoo.org>; Sun, 24 May 2020 22:11:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99EB4217 for <gentoo-commits@lists.gentoo.org>; Sun, 24 May 2020 22:10:58 +0000 (UTC) From: "Sergei Trofimovich" <slyfox@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" <slyfox@gentoo.org> Message-ID: <1590358252.239f1fd723d0dd2c767e644c0c728a7a4eb030f3.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/nim/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/nim/nim-1.2.0.ebuild X-VCS-Directories: dev-lang/nim/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 239f1fd723d0dd2c767e644c0c728a7a4eb030f3 X-VCS-Branch: master Date: Sun, 24 May 2020 22:10:58 +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: 14b9478e-46f9-4662-a416-745656e8967f X-Archives-Hash: 72f87ac358e8eb2be72cb9de203da4ec commit: 239f1fd723d0dd2c767e644c0c728a7a4eb030f3 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sun May 24 22:10:44 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sun May 24 22:10:52 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=239f1fd7 dev-lang/nim: use $CC instead of 'gcc', bug #722958 Reported-by: Agostino Sarubbo Closes: https://bugs.gentoo.org/722958 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> dev-lang/nim/nim-1.2.0.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev-lang/nim/nim-1.2.0.ebuild b/dev-lang/nim/nim-1.2.0.ebuild index 3f1e8966eb0..78fadad3c55 100644 --- a/dev-lang/nim/nim-1.2.0.ebuild +++ b/dev-lang/nim/nim-1.2.0.ebuild @@ -38,10 +38,17 @@ nim_use_enable() { use $1 && echo "-d:$2" } -src_compile() { +src_configure() { export XDG_CACHE_HOME=${T}/cache #667182 tc-export CC LD + # Override default CC=gcc. + echo "gcc.exe = \"$(tc-getCC)\"" >> config/nim.cfg || die + echo "gcc.linkerexe = \"$(tc-getCC)\"" >> config/nim.cfg || die +} + +src_compile() { + _run ./build.sh _run ./bin/nim --parallelBuild:$(makeopts_jobs) c koch