/[gentoo-x86]/eclass/ghc-package.eclass
Gentoo

Diff of /eclass/ghc-package.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.36 Revision 1.37
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.36 2013/01/06 13:06:35 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.37 2013/05/11 12:46:32 slyfox Exp $
4 4
5# @ECLASS: ghc-package.eclass 5# @ECLASS: ghc-package.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# "Gentoo's Haskell Language team" <haskell@gentoo.org> 7# "Gentoo's Haskell Language team" <haskell@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
100# runtime (aka '-threaded' option) 100# runtime (aka '-threaded' option)
101ghc-supports-threaded-runtime() { 101ghc-supports-threaded-runtime() {
102 $(ghc-getghc) --info | grep "RTS ways" | grep -q "thr" 102 $(ghc-getghc) --info | grep "RTS ways" | grep -q "thr"
103} 103}
104 104
105# @FUNCTION: ghc-supports-smp
106# @DESCRIPTION:
107# checks if ghc is built with support for multiple cores runtime
108ghc-supports-smp() {
109 $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES"
110}
111
112# @FUNCTION: ghc-supports-dynamic-by-default
113# @DESCRIPTION:
114# checks if ghc link against shared haskell libraries by default
115ghc-supports-dynamic-by-default() {
116 $(ghc-getghc) --info | grep "Dynamic by default" | grep -q "YES"
117}
118
119
105# @FUNCTION: ghc-extractportageversion 120# @FUNCTION: ghc-extractportageversion
106# @DESCRIPTION: 121# @DESCRIPTION:
107# extract the version of a portage-installed package 122# extract the version of a portage-installed package
108ghc-extractportageversion() { 123ghc-extractportageversion() {
109 local pkg 124 local pkg

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20