# 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_HACKAGE_REVISION=1

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

DESCRIPTION="Haskell string/text/bytestring interpolation that just works"
HOMEPAGE="https://gitlab.com/williamyaoh/string-interpolate/blob/master/README.md"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="bytestring-builder extended-benchmarks text-builder"

RDEPEND="<dev-haskell/haskell-src-exts-1.24:=[profile?]
	<dev-haskell/haskell-src-meta-0.9:=[profile?]
	<dev-haskell/split-0.3:=[profile?]
	<dev-haskell/text-2.2:=[profile?]
	<dev-haskell/text-conversions-0.4:=[profile?]
	<dev-haskell/utf8-string-1.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/hspec-2 <dev-haskell/hspec-3
		>=dev-haskell/hspec-core-2 <dev-haskell/hspec-core-3
		<dev-haskell/quickcheck-2.16
		<dev-haskell/quickcheck-instances-0.4
		<dev-haskell/quickcheck-text-0.2
		<dev-haskell/quickcheck-unicode-1.1
		<dev-haskell/unordered-containers-0.3 )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag bytestring-builder bytestring-builder) \
		$(cabal_flag extended-benchmarks extended-benchmarks) \
		$(cabal_flag text-builder text-builder)
}