/[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.7 Revision 1.8
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.7 2006/08/02 19:49:03 dcoutts Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/haskell-cabal.eclass,v 1.8 2006/10/04 17:49:20 kosmikus 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#
34# 34#
35# Many Cabal packages require S to be manually set. 35# Many Cabal packages require S to be manually set.
36# 36#
37# Conforming Cabal packages don't require any function definitions 37# Conforming Cabal packages don't require any function definitions
38# in the ebuild. 38# in the ebuild.
39#
40# Special flags to Cabal Configure can now be set by using
41# CABAL_CONFIGURE_FLAGS
39 42
40inherit ghc-package 43inherit ghc-package
41 44
42 45
43for feature in ${CABAL_FEATURES}; do 46for feature in ${CABAL_FEATURES}; do
134 ./setup configure \ 137 ./setup configure \
135 --ghc --prefix=/usr \ 138 --ghc --prefix=/usr \
136 --with-compiler="$(ghc-getghc)" \ 139 --with-compiler="$(ghc-getghc)" \
137 --with-hc-pkg="$(ghc-getghcpkg)" \ 140 --with-hc-pkg="$(ghc-getghcpkg)" \
138 ${cabalconf} \ 141 ${cabalconf} \
142 ${CABAL_CONFIGURE_FLAGS} \
139 "$@" || die "setup configure failed" 143 "$@" || die "setup configure failed"
140} 144}
141 145
142cabal-build() { 146cabal-build() {
143 ./setup build \ 147 ./setup build \
215cabal_src_install() { 219cabal_src_install() {
216 cabal-copy 220 cabal-copy
217 cabal-pkg 221 cabal-pkg
218 222
219 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then 223 if [[ -n "${CABAL_USE_HADDOCK}" ]] && use doc; then
220 dohtml dist/doc/html/* 224 dohtml -r dist/doc/html/*
221 fi 225 fi
222} 226}
223haskell-cabal_src_install() { 227haskell-cabal_src_install() {
224 cabal_src_install 228 cabal_src_install
225} 229}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20