summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-04-14 18:58:44 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-04-14 19:43:51 +0100
commit823b1525b6dfa5312341e8dbe927b9e1c723e4c1 (patch)
tree9417ef4f4ba640fc68e81e9e5a04650eec94d283 /eclass/ghc-package.eclass
parentsci-physics/lightspeed: amd64 stable (diff)
downloadgentoo-823b1525b6dfa5312341e8dbe927b9e1c723e4c1.tar.gz
gentoo-823b1525b6dfa5312341e8dbe927b9e1c723e4c1.tar.bz2
gentoo-823b1525b6dfa5312341e8dbe927b9e1c723e4c1.zip
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@gentoo.org>
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r--eclass/ghc-package.eclass4
1 files 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