From: Sergei Trofimovich Date: Sat, 14 Apr 2018 17:58:44 +0000 (+0100) Subject: ghc-package.eclass: allow override of default ghc and ghc-pkg tools X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=823b1525b6dfa5312341e8dbe927b9e1c723e4c1;p=gentoo.git 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 --- diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index 737db1b362e5..bd08b01d04ca 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