/[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.44 Revision 1.46
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.44 2014/05/22 16:35:11 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.46 2014/06/27 07:26:18 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:
60# Show debug output for 'cabal_chdeps' function if set. 60# Show debug output for 'cabal_chdeps' function if set.
61# Needs working 'diff'. 61# Needs working 'diff'.
62: ${CABAL_DEBUG_LOOSENING:=} 62: ${CABAL_DEBUG_LOOSENING:=}
63 63
64HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install" 64HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install"
65
66# 'dev-haskell/cabal' passes those options with ./configure-based
67# configuration, but most packages don't need/don't accept it:
68# #515362, #515362
69QA_CONFIGURE_OPTIONS+=" --with-compiler --with-hc --with-hc-pkg --with-gcc"
65 70
66case "${EAPI:-0}" in 71case "${EAPI:-0}" in
67 2|3|4|5) HASKELL_CABAL_EXPF+=" src_configure" ;; 72 2|3|4|5) HASKELL_CABAL_EXPF+=" src_configure" ;;
68 *) ;; 73 *) ;;
69esac 74esac
380 echo ./setup "$@" 385 echo ./setup "$@"
381 ./setup "$@" || cabal-show-brokens-and-die "setup configure failed" 386 ./setup "$@" || cabal-show-brokens-and-die "setup configure failed"
382} 387}
383 388
384cabal-build() { 389cabal-build() {
385 unset LANG LC_ALL LC_MESSAGES
386 set -- build ${CABAL_EXTRA_BUILD_FLAGS} "$@" 390 set -- build ${CABAL_EXTRA_BUILD_FLAGS} "$@"
387 echo ./setup "$@" 391 echo ./setup "$@"
388 ./setup "$@" \ 392 ./setup "$@" \
389 || die "setup build failed" 393 || die "setup build failed"
390} 394}

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20