summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2014-02-11 19:00:06 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2014-02-11 19:00:06 +0000
commit8ffa4aa09bc63f56c5e078737710d8458b2ce653 (patch)
tree8cbda98d74c049d93d47ace786bab708ef15eebf /eclass/ghc-package.eclass
parentStable for HPPA (bug #470680). (diff)
downloadgentoo-2-8ffa4aa09bc63f56c5e078737710d8458b2ce653.tar.gz
gentoo-2-8ffa4aa09bc63f56c5e078737710d8458b2ce653.tar.bz2
gentoo-2-8ffa4aa09bc63f56c5e078737710d8458b2ce653.zip
Add support for parallel building (ghc-7.8+). Disable dynamic library stripping and respect --sysconfdir (Cabal-1.18+).
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r--eclass/ghc-package.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index ec6072d54853..970a8cad8b58 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.38 2014/01/19 08:23:36 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.39 2014/02/11 19:00:06 slyfox Exp $
# @ECLASS: ghc-package.eclass
# @MAINTAINER:
@@ -124,6 +124,14 @@ ghc-supports-interpreter() {
$(ghc-getghc) --info | grep "Have interpreter" | grep -q "YES"
}
+# @FUNCTION: ghc-supports-parallel-make
+# @DESCRIPTION:
+# checks if ghc has support for '--make -j' mode
+# The option was introduced in ghc-7.8-rc1.
+ghc-supports-parallel-make() {
+ $(ghc-getghc) --info | grep "Support parallel --make" | grep -q "YES"
+}
+
# @FUNCTION: ghc-extractportageversion
# @DESCRIPTION:
# extract the version of a portage-installed package