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

EAPI=4

# ebuild generated by hackport 0.2.18

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

DESCRIPTION="An interactive terminal user interface library for Vty"
HOMEPAGE="http://jtdaugherty.github.com/vty-ui/"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND=">=dev-haskell/mtl-2.0[profile?] =dev-haskell/quickcheck-2.4[profile?]
		=dev-haskell/stm-2.1[profile?] =dev-haskell/vector-0.9[profile?]
		>=dev-haskell/vty-4.6[profile?] =dev-lang/ghc-6.12.1"
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.6"

src_prepare() {
	cabal_chdeps \
		'containers >= 0.2 && < 0.5' 'containers >= 0.2 && < 0.6' \
		'mtl >= 2.0 && < 2.1' 'mtl >= 2.0 && < 2.2' \
		'stm >= 2.1 && < 2.3' 'stm >= 2.1 && < 2.5' \
		'QuickCheck >= 2.4 && < 2.5' 'QuickCheck >= 2.4 && < 2.7' \
		'unix >= 2.4 && < 2.6' 'unix >= 2.4 && < 2.7' \
		'directory >= 1.0 && < 1.2' 'directory >= 1.0 && < 1.3'
}