diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2013-05-11 12:46:32 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2013-05-11 12:46:32 +0000 |
commit | ed992257aaecf107b529ba16a1470a512d543e22 (patch) | |
tree | 63982d89aecf225e850348f45c7e73648c7abe3f /eclass/ghc-package.eclass | |
parent | sci-chemistry/tm-align: Version Bump (diff) | |
download | gentoo-2-ed992257aaecf107b529ba16a1470a512d543e22.tar.gz gentoo-2-ed992257aaecf107b529ba16a1470a512d543e22.tar.bz2 gentoo-2-ed992257aaecf107b529ba16a1470a512d543e22.zip |
Added 'ghc-supports-smp' and 'ghc-supports-dynamic-by-default' helpers. Added hint for users to run 'haskell-updater' if configure phase failed.
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r-- | eclass/ghc-package.eclass | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass index feef71e7e6f3..3a9d3956fa19 100644 --- a/eclass/ghc-package.eclass +++ b/eclass/ghc-package.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.36 2013/01/06 13:06:35 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.37 2013/05/11 12:46:32 slyfox Exp $ # @ECLASS: ghc-package.eclass # @MAINTAINER: @@ -102,6 +102,21 @@ ghc-supports-threaded-runtime() { $(ghc-getghc) --info | grep "RTS ways" | grep -q "thr" } +# @FUNCTION: ghc-supports-smp +# @DESCRIPTION: +# checks if ghc is built with support for multiple cores runtime +ghc-supports-smp() { + $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES" +} + +# @FUNCTION: ghc-supports-dynamic-by-default +# @DESCRIPTION: +# checks if ghc link against shared haskell libraries by default +ghc-supports-dynamic-by-default() { + $(ghc-getghc) --info | grep "Dynamic by default" | grep -q "YES" +} + + # @FUNCTION: ghc-extractportageversion # @DESCRIPTION: # extract the version of a portage-installed package |