/[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.34 Revision 1.35
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.34 2012/09/14 02:51:23 gienah Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ghc-package.eclass,v 1.35 2012/11/16 15:47:17 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:
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.7.20121101" "$(ghc-version)"; then
43 # was moved to bin/ subtree by:
44 # http://www.haskell.org/pipermail/cvs-ghc/2012-September/076546.html
45 echo "$(ghc-libdir)/bin/ghc-pkg" "--global-package-db=${T}/empty.conf"
42 if version_is_at_least "7.5.20120516" "$(ghc-version)"; then 46 elif version_is_at_least "7.5.20120516" "$(ghc-version)"; then
43 echo "$(ghc-libdir)/ghc-pkg" "--global-package-db=${T}/empty.conf" 47 echo "$(ghc-libdir)/ghc-pkg" "--global-package-db=${T}/empty.conf"
44 else 48 else
45 echo "$(ghc-libdir)/ghc-pkg" "--global-conf=${T}/empty.conf" 49 echo "$(ghc-libdir)/ghc-pkg" "--global-conf=${T}/empty.conf"
46 fi 50 fi
47} 51}

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

  ViewVC Help
Powered by ViewVC 1.1.20