/[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.17 Revision 1.18
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.17 2009/10/28 23:46:16 kolmodin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.18 2010/01/26 20:50:40 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#
191 cabalconf="${cabalconf} --enable-library-profiling" 191 cabalconf="${cabalconf} --enable-library-profiling"
192 fi 192 fi
193 # Building GHCi libs on ppc64 causes "TOC overflow". 193 # Building GHCi libs on ppc64 causes "TOC overflow".
194 if use ppc64; then 194 if use ppc64; then
195 cabalconf="${cabalconf} --disable-library-for-ghci" 195 cabalconf="${cabalconf} --disable-library-for-ghci"
196 fi
197
198 if version_is_at_least "1.4" "$(cabal-version)"; then
199 # disable executable stripping for the executables, as portage will
200 # strip by itself, and pre-stripping gives a QA warning.
201 # cabal versions previous to 1.4 does not strip executables, and does
202 # not accept the flag.
203 # this fixes numerous bugs, amongst them;
204 # bug #251881, bug #251882, bug #251884, bug #251886, bug #299494
205 cabalconf="${cabalconf} --disable-executable-stripping"
196 fi 206 fi
197 207
198 if version_is_at_least "1.2.0" "$(cabal-version)"; then 208 if version_is_at_least "1.2.0" "$(cabal-version)"; then
199 cabalconf="${cabalconf} --docdir=/usr/share/doc/${PF}" 209 cabalconf="${cabalconf} --docdir=/usr/share/doc/${PF}"
200 # As of Cabal 1.2, configure is quite quiet. For diagnostic purposes 210 # As of Cabal 1.2, configure is quite quiet. For diagnostic purposes

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20