/[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.45
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.45 2014/06/27 07:16:47 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
68QA_CONFIGURE_OPTIONS+=" --with-hc --with-hc-pkg --with-gcc"
65 69
66case "${EAPI:-0}" in 70case "${EAPI:-0}" in
67 2|3|4|5) HASKELL_CABAL_EXPF+=" src_configure" ;; 71 2|3|4|5) HASKELL_CABAL_EXPF+=" src_configure" ;;
68 *) ;; 72 *) ;;
69esac 73esac
380 echo ./setup "$@" 384 echo ./setup "$@"
381 ./setup "$@" || cabal-show-brokens-and-die "setup configure failed" 385 ./setup "$@" || cabal-show-brokens-and-die "setup configure failed"
382} 386}
383 387
384cabal-build() { 388cabal-build() {
385 unset LANG LC_ALL LC_MESSAGES
386 set -- build ${CABAL_EXTRA_BUILD_FLAGS} "$@" 389 set -- build ${CABAL_EXTRA_BUILD_FLAGS} "$@"
387 echo ./setup "$@" 390 echo ./setup "$@"
388 ./setup "$@" \ 391 ./setup "$@" \
389 || die "setup build failed" 392 || die "setup build failed"
390} 393}

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

  ViewVC Help
Powered by ViewVC 1.1.20