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

# ebuild generated by hackport 0.2.9

EAPI="2"

CABAL_FEATURES="bin"
inherit eutils haskell-cabal

DESCRIPTION="Manage sandboxed Haskell build environments"
HOMEPAGE="https://github.com/creswick/cabal-dev"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND=""
DEPEND="${RDEPEND}
		<dev-haskell/cabal-1.11
		<dev-haskell/http-4000.2
		<dev-haskell/mtl-2.1
		<dev-haskell/network-2.4
		=dev-haskell/tar-0.3*
		=dev-haskell/zlib-0.5*
		>=dev-lang/ghc-6.10.1
		dev-haskell/cabal-install"

# currently we don't run the tests. if we want to, enable -fbuild-tests and
# unpack the cabal-install-0.8.2 into the root of the source tree.

src_prepare() {
	cd "${S}"
	cabal-mksetup
	epatch "${FILESDIR}/${PN}-0.7.2.1-cabal-file.patch"
}
