# 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 parameterized named text type and associated functionality"
HOMEPAGE="https://hackage.haskell.org/package/named-text"

LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+json"

RDEPEND="dev-haskell/hashable:=[profile?]
	>=dev-haskell/prettyprinter-1.7.0:=[profile?] <dev-haskell/prettyprinter-1.8:=[profile?]
	>=dev-haskell/sayable-1.0:=[profile?] <dev-haskell/sayable-1.3:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	json? ( >=dev-haskell/aeson-1.5:=[profile?] <dev-haskell/aeson-2.3:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/hspec
		>=dev-haskell/parameterized-utils-2.1 <dev-haskell/parameterized-utils-2.2
		>=dev-haskell/tasty-1.4 <dev-haskell/tasty-1.6
		>=dev-haskell/tasty-ant-xml-1.1 <dev-haskell/tasty-ant-xml-1.2
		>=dev-haskell/tasty-checklist-1.0 <dev-haskell/tasty-checklist-1.1
		>=dev-haskell/tasty-hspec-1.2 <dev-haskell/tasty-hspec-1.3
		dev-haskell/unordered-containers )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag json with-json)
}