/[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.11 Revision 1.12
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.11 2007/07/25 18:07:02 dcoutts Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.12 2007/07/27 09:09:20 kolmodin 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#
125 ./setup haddock || die "setup haddock failed" 125 ./setup haddock || die "setup haddock failed"
126} 126}
127 127
128cabal-configure() { 128cabal-configure() {
129 if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then 129 if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then
130 cabalconf="${cabalconf} --enable-executable-profiling";
131 cabalconf="${cabalconf} --enable-library-profiling" 130 cabalconf="${cabalconf} --enable-library-profiling"
132 fi 131 fi
133 # Building GHCi libs on ppc64 causes "TOC overflow". 132 # Building GHCi libs on ppc64 causes "TOC overflow".
134 if use ppc64; then 133 if use ppc64; then
135 cabalconf="${cabalconf} --disable-library-for-ghci" 134 cabalconf="${cabalconf} --disable-library-for-ghci"
184 # register that ourselves (if it exists). 183 # register that ourselves (if it exists).
185 local result 184 local result
186 local err 185 local err
187 186
188 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then 187 if [[ -n ${CABAL_HAS_LIBRARIES} ]]; then
189 sed -i "s|$(ghc-getghcpkg)|$(which true)|" .setup-config 188 sed -i "s|$(ghc-getghcpkg)|$(type -P true)|" .setup-config
190 ./setup register || die "setup register failed" 189 ./setup register || die "setup register failed"
191 if [[ -f .installed-pkg-config ]]; then 190 if [[ -f .installed-pkg-config ]]; then
192 ghc-setup-pkg .installed-pkg-config 191 ghc-setup-pkg .installed-pkg-config
193 ghc-install-pkg 192 ghc-install-pkg
194 else 193 else

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20