# 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="Dealing with Strict Text in NFC normalization"
HOMEPAGE="https://www.lambdanow.us/browser/text-icu-normalized"

LICENSE="GPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64"
RESTRICT="test" #Test code is botched

CABAL_CHDEPS=(
	'bytestring           >= 0.10.8 && < 0.11' 'bytestring >= 0.10.8'
	'lens                 >= 4.14 && < 4.16' 'lens >= 4.14'
	'text                 >= 1.2.2 && < 1.3' 'text >= 1.2.2'
	'text-icu             >= 0.7.0 && < 0.8' 'text-icu >= 0.7.0'
	'containers >= 0.5.7.1 && < 0.6' 'containers >= 0.5.7.1'
	'exceptions >= 0.8.3 && < 0.9' 'exceptions >= 0.8.3'
	)

RDEPEND=">=dev-haskell/base-unicode-symbols-0.2.2:=[profile?] <dev-haskell/base-unicode-symbols-0.3:=[profile?]
	>=dev-haskell/lens-4.14:=[profile?]
	>=dev-haskell/text-1.2.2:=[profile?]
	>=dev-haskell/text-icu-0.7.0:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/hunit
		dev-haskell/parsec
		dev-haskell/quickcheck
		dev-haskell/test-framework
		dev-haskell/test-framework-hunit
		dev-haskell/test-framework-quickcheck2
		dev-haskell/test-framework-th )
"