commit:     823b1525b6dfa5312341e8dbe927b9e1c723e4c1
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 14 17:58:44 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> 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 <slyfox <AT> 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

Reply via email to