# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.9.0.0.9999

CABAL_HACKAGE_REVISION=4

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

DESCRIPTION="A simple and intuitive library for automated testing"
HOMEPAGE="https://github.com/typeclasses/chell"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="+color-output"

CABAL_CHDEPS=(
	'bytestring ^>= 0.11.4 || ^>= 0.12' 'bytestring >= 0.10'
	'transformers ^>= 0.5.6 || ^>= 0.6' 'transformers >= 0.5.6'
)

RDEPEND="
	>=dev-haskell/options-1.2.1:=[profile?] <dev-haskell/options-1.3:=[profile?]
	>=dev-haskell/patience-0.3:=[profile?] <dev-haskell/patience-0.4:=[profile?]
	>=dev-haskell/random-1.2.1:=[profile?] <dev-haskell/random-1.4:=[profile?]
	>=dev-lang/ghc-8.10.6:=
	>=dev-haskell/text-1.2.5 <dev-haskell/text-2.2
	dev-haskell/text:=[profile?]
	color-output? (
		>=dev-haskell/ansi-terminal-1.0:=[profile?] <dev-haskell/ansi-terminal-1.2:=[profile?]
	)
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.2.1.0
"

src_prepare() {
	haskell-cabal_src_prepare
	cabal-mksetup
}

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag color-output color-output)
}