# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:	$

# ebuild generated by hackport 0.2.9

CABAL_FEATURES="lib profile haddock hscolour"
inherit haskell-cabal

DESCRIPTION="Runtime Haskell interpreter (GHC API wrapper)"
HOMEPAGE="http://projects.haskell.org/hint"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-haskell/extensible-exceptions
		=dev-haskell/ghc-mtl-1.0*
		dev-haskell/ghc-paths
		dev-haskell/haskell-src
		>=dev-haskell/monadcatchio-mtl-0.2
		dev-haskell/mtl
		dev-haskell/utf8-string
		>=dev-lang/ghc-6.8.1"
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.2.3"

src_unpack() {
	unpack "${A}"
	cd "${S}"
	# Compile with ghc 7.0.1 (or ghc 6.12.3)
	epatch "${FILESDIR}/${P}-ghc-7.0.1.patch"
}
