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

EAPI=8

# ebuild generated by hackport 0.6.6

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"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RDEPEND="dev-haskell/aeson:=[profile?]
	dev-haskell/comonad:=[profile?]
	dev-haskell/constraints:=[profile?]
	dev-haskell/hashable:=[profile?]
	dev-haskell/membership:=[profile?]
	>=dev-haskell/monad-skeleton-0.1.2:=[profile?]
	>=dev-haskell/prettyprinter-1.2.1:=[profile?] <dev-haskell/prettyprinter-2:=[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:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	>=dev-haskell/vector-0.12.1.2:=[profile?]
	>=dev-lang/ghc-7.10.1:=
	barbies? ( >=dev-haskell/barbies-2:=[profile?] <dev-haskell/barbies-2.1:=[profile?] )
	cassava? ( dev-haskell/cassava:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.4
	test? ( dev-haskell/lens )
"

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