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

EAPI=8

# ebuild generated by hackport 0.7.3.0
#hackport: flags: demos:examples

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="examples"

RDEPEND="
	>=dev-haskell/bimap-0.5:=[profile?] <dev-haskell/bimap-0.6:=[profile?]
	dev-haskell/config-ini:=[profile?]
	dev-haskell/contravariant:=[profile?]
	>=dev-haskell/data-clist-0.1:=[profile?]
	>=dev-haskell/microlens-0.3.0.0:=[profile?]
	dev-haskell/microlens-mtl:=[profile?]
	dev-haskell/microlens-th:=[profile?]
	>=dev-haskell/stm-2.4.3:=[profile?]
	>=dev-haskell/text-zipper-0.12:=[profile?]
	dev-haskell/vector:=[profile?]
	>=dev-haskell/vty-5.36:=[profile?]
	>=dev-haskell/word-wrap-0.2:=[profile?]
	>=dev-lang/ghc-8.10.1:=
	examples? (
		dev-haskell/random:=[profile?]
	)
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.2.0.0
	test? (
		dev-haskell/quickcheck
	)
"

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