# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

# ebuild generated by hackport 0.4.5.9999

CABAL_FEATURES="bin"
inherit haskell-cabal

DESCRIPTION="A tool for testing command-line programs"
HOMEPAGE="http://joyful.com/shelltestrunner"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=dev-haskell/cmdargs-0.7:= <dev-haskell/cmdargs-0.11:=
	>=dev-haskell/diff-0.2.0:= <dev-haskell/diff-0.4:=
	>=dev-haskell/filemanip-0.3:= <dev-haskell/filemanip-0.4:=
	dev-haskell/hunit:=
	<dev-haskell/parsec-3.2:=
	>=dev-haskell/pretty-show-1.6.5:=
	>=dev-haskell/regex-tdfa-1.1:= <dev-haskell/regex-tdfa-1.3:=
	dev-haskell/safe:=
	>=dev-haskell/test-framework-0.3.2:= <dev-haskell/test-framework-0.9:=
	>=dev-haskell/test-framework-hunit-0.2:= <dev-haskell/test-framework-hunit-0.4:=
	>=dev-haskell/utf8-string-0.3.5:= <dev-haskell/utf8-string-1.1:=
	>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.6
"

src_prepare() {
	cabal_chdeps \
		'HUnit                            < 1.3' 'HUnit'
}