# Copyright 1999-2025 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_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="A declarative terminal user interface library"
HOMEPAGE="https://github.com/jtdaugherty/brick/"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="demos"

RDEPEND=">=dev-haskell/bimap-0.5:=[profile?] <dev-haskell/bimap-0.6:=[profile?]
	dev-haskell/config-ini:=[profile?]
	>=dev-haskell/data-clist-0.1:=[profile?]
	dev-haskell/hashable:=[profile?]
	>=dev-haskell/microlens-0.3.0.0:=[profile?]
	dev-haskell/microlens-mtl:=[profile?]
	dev-haskell/microlens-th:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-haskell/text-zipper-0.13:=[profile?]
	dev-haskell/unix-compat:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	dev-haskell/vector:=[profile?]
	>=dev-haskell/vty-6.0:=[profile?]
	dev-haskell/vty-crossplatform:=[profile?]
	>=dev-haskell/word-wrap-0.2:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	demos? ( dev-haskell/microlens-platform:=[profile?]
			dev-haskell/random:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/quickcheck )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag demos demos)
}