/[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.33 Revision 1.34
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.33 2012/04/09 18:08:45 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.34 2012/09/14 02:51:23 gienah 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:
37# must be specified 37# must be specified
38ghc-getghcpkgbin() { 38ghc-getghcpkgbin() {
39 # the ghc-pkg executable changed name in ghc 6.10, as it no longer needs 39 # the ghc-pkg executable changed name in ghc 6.10, as it no longer needs
40 # the wrapper script with the static flags 40 # the wrapper script with the static flags
41 echo '[]' > "${T}/empty.conf" 41 echo '[]' > "${T}/empty.conf"
42 if version_is_at_least "7.5.20120516" "$(ghc-version)"; then
43 echo "$(ghc-libdir)/ghc-pkg" "--global-package-db=${T}/empty.conf"
44 else
42 echo "$(ghc-libdir)/ghc-pkg" "--global-conf=${T}/empty.conf" 45 echo "$(ghc-libdir)/ghc-pkg" "--global-conf=${T}/empty.conf"
46 fi
43} 47}
44 48
45# @FUNCTION: ghc-version 49# @FUNCTION: ghc-version
46# @DESCRIPTION: 50# @DESCRIPTION:
47# returns the version of ghc 51# returns the version of ghc

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20