/[gentoo-x86]/eclass/haskell-cabal.eclass
Gentoo

Diff of /eclass/haskell-cabal.eclass

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

Revision 1.9 Revision 1.10
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/haskell-cabal.eclass,v 1.9 2007/01/15 13:58:13 kosmikus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.10 2007/03/13 12:02:04 kosmikus Exp $
4# 4#
5# Original authors: Andres Loeh <kosmikus@gentoo.org> 5# Original authors: Andres Loeh <kosmikus@gentoo.org>
6# Duncan Coutts <dcoutts@gentoo.org> 6# Duncan Coutts <dcoutts@gentoo.org>
7# Maintained by: Haskell herd <haskell@gentoo.org> 7# Maintained by: Haskell herd <haskell@gentoo.org>
8# 8#
171 # register that ourselves (if it exists). 171 # register that ourselves (if it exists).
172 local result 172 local result
173 local err 173 local err
174 174
175 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then 175 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then
176 sed -i "s|$(ghc-getghcpkg)|$(which true)|" .setup-config 176 sed -i "s|$(ghc-getghcpkg)|$(type -P true)|" .setup-config
177 ./setup register || die "setup register failed" 177 ./setup register || die "setup register failed"
178 if [[ -f .installed-pkg-config ]]; then 178 if [[ -f .installed-pkg-config ]]; then
179 ghc-setup-pkg .installed-pkg-config 179 ghc-setup-pkg .installed-pkg-config
180 ghc-install-pkg 180 ghc-install-pkg
181 else 181 else

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20