/[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.37 Revision 1.38
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 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.37 2013/05/11 12:46:32 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.38 2014/01/19 08:23:36 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:
109 $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES" 109 $(ghc-getghc) --info | grep "Support SMP" | grep -q "YES"
110} 110}
111 111
112# @FUNCTION: ghc-supports-dynamic-by-default 112# @FUNCTION: ghc-supports-dynamic-by-default
113# @DESCRIPTION: 113# @DESCRIPTION:
114# checks if ghc link against shared haskell libraries by default 114# checks if ghc links against shared haskell libraries by default
115ghc-supports-dynamic-by-default() { 115ghc-supports-dynamic-by-default() {
116 $(ghc-getghc) --info | grep "Dynamic by default" | grep -q "YES" 116 $(ghc-getghc) --info | grep "Dynamic by default" | grep -q "YES"
117} 117}
118 118
119# @FUNCTION: ghc-supports-interpreter
120# @DESCRIPTION:
121# checks if ghc has interpreter mode (aka GHCi)
122# It usually means that ghc supports for template haskell.
123ghc-supports-interpreter() {
124 $(ghc-getghc) --info | grep "Have interpreter" | grep -q "YES"
125}
119 126
120# @FUNCTION: ghc-extractportageversion 127# @FUNCTION: ghc-extractportageversion
121# @DESCRIPTION: 128# @DESCRIPTION:
122# extract the version of a portage-installed package 129# extract the version of a portage-installed package
123ghc-extractportageversion() { 130ghc-extractportageversion() {

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

  ViewVC Help
Powered by ViewVC 1.1.20