From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 631B11382C5 for ; Sat, 14 Apr 2018 18:44:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 782D6E081E; Sat, 14 Apr 2018 18:43:59 +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 550CAE081E for ; Sat, 14 Apr 2018 18:43:59 +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 1BC6A335C75 for ; Sat, 14 Apr 2018 18:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B156D274 for ; Sat, 14 Apr 2018 18:43:55 +0000 (UTC) From: "Sergei Trofimovich" 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" Message-ID: <1523731431.823b1525b6dfa5312341e8dbe927b9e1c723e4c1.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/ghc-package.eclass X-VCS-Directories: eclass/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 823b1525b6dfa5312341e8dbe927b9e1c723e4c1 X-VCS-Branch: master Date: Sat, 14 Apr 2018 18:43:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f4a5e6b6-63a1-486a-8dbe-24e3213184a9 X-Archives-Hash: 8205fc585c7a73052ed74c661d18192e commit: 823b1525b6dfa5312341e8dbe927b9e1c723e4c1 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Apr 14 17:58:44 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Apr 14 18:43:51 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=823b1525 ghc-package.eclass: allow override of default ghc and ghc-pkg tools This is mostly useful for cross-compilation and bootstrapping of ghc from non-standard compiler. Signed-off-by: Sergei Trofimovich gentoo.org> eclass/ghc-package.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 737db1b362e..bd08b01d04c 100644 --- a/eclass/ghc-package.eclass +++ b/eclass/ghc-package.eclass @@ -16,14 +16,14 @@ inherit multiprocessing versionator # @DESCRIPTION: # returns the name of the ghc executable ghc-getghc() { - type -P ghc + type -P ${HC:-ghc} } # @FUNCTION: ghc-getghcpkg # @DESCRIPTION: # Internal function determines returns the name of the ghc-pkg executable ghc-getghcpkg() { - type -P ghc-pkg + type -P ${HC_PKG:-ghc-pkg} } # @FUNCTION: ghc-getghcpkgbin