/[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.50 Revision 1.51
1# Copyright 1999-2015 Gentoo Foundation 1# Copyright 1999-2015 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.50 2015/03/28 13:32:40 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.51 2015/04/04 20:33:05 slyfox Exp $
4 4
5# @ECLASS: haskell-cabal.eclass 5# @ECLASS: haskell-cabal.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Haskell herd <haskell@gentoo.org> 7# Haskell herd <haskell@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
385 [[ ${CATEGORY}/${PN} == "dev-haskell/cabal" ]] && \ 385 [[ ${CATEGORY}/${PN} == "dev-haskell/cabal" ]] && \
386 $(ghc-supports-shared-libraries) && \ 386 $(ghc-supports-shared-libraries) && \
387 cabalconf+=(--enable-shared) 387 cabalconf+=(--enable-shared)
388 388
389 if $(ghc-supports-shared-libraries); then 389 if $(ghc-supports-shared-libraries); then
390 # maybe a bit lower
391 cabalconf+=(--enable-shared)
392
393 # Experimental support for dynamically linked binaries. 390 # Experimental support for dynamically linked binaries.
394 # We are enabling it since 7.10.1_rc3 391 # We are enabling it since 7.10.1_rc3
395 if version_is_at_least "7.10.0.20150316" "$(ghc-version)"; then 392 if version_is_at_least "7.10.0.20150316" "$(ghc-version)"; then
393 # we didn't enable it before as it was not stable on all arches
394 cabalconf+=(--enable-shared)
396 # Known to break on ghc-7.8/Cabal-1.18 395 # Known to break on ghc-7.8/Cabal-1.18
397 # https://ghc.haskell.org/trac/ghc/ticket/9625 396 # https://ghc.haskell.org/trac/ghc/ticket/9625
398 cabalconf+=(--enable-executable-dynamic) 397 cabalconf+=(--enable-executable-dynamic)
399 fi 398 fi
400 fi 399 fi

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20