# 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="Extensible, efficient, optics-friendly data types and effects"
HOMEPAGE="https://github.com/fumieval/extensible"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="barbies +cassava +islabel"

RDEPEND=">=dev-haskell/aeson-1.5:=[profile?] <dev-haskell/aeson-2.3:=[profile?]
	dev-haskell/comonad:=[profile?]
	dev-haskell/constraints:=[profile?]
	>=dev-haskell/hashable-1.2:=[profile?] <dev-haskell/hashable-1.5:=[profile?]
	>=dev-haskell/incremental-0.3.1:=[profile?]
	dev-haskell/membership:=[profile?]
	>=dev-haskell/prettyprinter-1.7:=[profile?] <dev-haskell/prettyprinter-1.8:=[profile?]
	dev-haskell/primitive:=[profile?]
	dev-haskell/profunctors:=[profile?]
	dev-haskell/quickcheck:=[profile?]
	dev-haskell/statevar:=[profile?]
	dev-haskell/tagged:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-haskell/th-lift-0.8:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	>=dev-haskell/vector-0.12.1.2:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	barbies? ( >=dev-haskell/barbies-2:=[profile?] <dev-haskell/barbies-2.1:=[profile?] )
	cassava? ( dev-haskell/cassava:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/lens )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag barbies barbies) \
		$(cabal_flag cassava cassava) \
		$(cabal_flag islabel islabel)
}