| 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.4 2006/02/16 14:10:51 dcoutts Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.5 2006/03/01 12:54:35 dcoutts 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 | # |
| … | |
… | |
| 124 | cabal-configure() { |
124 | cabal-configure() { |
| 125 | if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then |
125 | if [[ -n "${CABAL_USE_PROFILE}" ]] && use profile; then |
| 126 | cabalconf="${cabalconf} --enable-executable-profiling"; |
126 | cabalconf="${cabalconf} --enable-executable-profiling"; |
| 127 | cabalconf="${cabalconf} --enable-library-profiling" |
127 | cabalconf="${cabalconf} --enable-library-profiling" |
| 128 | fi |
128 | fi |
|
|
129 | # Don't build GHCi libs for arches that do not support GHCi. |
|
|
130 | # Also building GHCi libs on ppc64 causes "TOC overflow". |
|
|
131 | if use alpha || use ppc64; then |
|
|
132 | cabalconf="${cabalconf} --disable-library-for-ghci" |
|
|
133 | fi |
| 129 | |
134 | |
| 130 | ./setup configure \ |
135 | ./setup configure \ |
| 131 | --ghc --prefix=/usr \ |
136 | --ghc --prefix=/usr \ |
| 132 | --with-compiler="$(ghc-getghc)" \ |
137 | --with-compiler="$(ghc-getghc)" \ |
| 133 | --with-hc-pkg="$(ghc-getghcpkg)" \ |
138 | --with-hc-pkg="$(ghc-getghcpkg)" \ |