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

EAPI=8

# ebuild generated by hackport 0.8.5.1.9999
#hackport: flags: rere-cfg:cfg,rere-intersection:intersection

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

DESCRIPTION="Regular-expressions extended with fixpoints for context-free powers"
HOMEPAGE="https://hackage.haskell.org/package/rere"

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

RDEPEND="
	>=dev-haskell/parsec-3.1.12.0:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
	>=dev-haskell/quickcheck-2.14.2:=[profile?] <dev-haskell/quickcheck-2.15:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	cfg? (
		>=dev-haskell/fin-0.2:=[profile?] <dev-haskell/fin-0.4:=[profile?]
		>=dev-haskell/vec-0.4:=[profile?] <dev-haskell/vec-0.6:=[profile?]
	)
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? (
		>=dev-haskell/quickcheck-instances-0.3.30 <dev-haskell/quickcheck-instances-0.4
		>=dev-haskell/tasty-1.4.0.1 <dev-haskell/tasty-1.6
		>=dev-haskell/tasty-quickcheck-0.10.1.1 <dev-haskell/tasty-quickcheck-0.11
	)
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag cfg rere-cfg) \
		$(cabal_flag intersection rere-intersection)
}