/[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.35 Revision 1.36
1# Copyright 1999-2012 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.35 2012/11/16 15:47:17 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.36 2013/01/06 13:06:35 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:
92# shared libraries (aka '-dynamic' option) 92# shared libraries (aka '-dynamic' option)
93ghc-supports-shared-libraries() { 93ghc-supports-shared-libraries() {
94 $(ghc-getghc) --info | grep "RTS ways" | grep -q "dyn" 94 $(ghc-getghc) --info | grep "RTS ways" | grep -q "dyn"
95} 95}
96 96
97# @FUNCTION: ghc-supports-threaded-runtime
98# @DESCRIPTION:
99# checks if ghc is built with support for threaded
100# runtime (aka '-threaded' option)
101ghc-supports-threaded-runtime() {
102 $(ghc-getghc) --info | grep "RTS ways" | grep -q "thr"
103}
104
97# @FUNCTION: ghc-extractportageversion 105# @FUNCTION: ghc-extractportageversion
98# @DESCRIPTION: 106# @DESCRIPTION:
99# extract the version of a portage-installed package 107# extract the version of a portage-installed package
100ghc-extractportageversion() { 108ghc-extractportageversion() {
101 local pkg 109 local pkg

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

  ViewVC Help
Powered by ViewVC 1.1.20