# 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=3

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

DESCRIPTION="A binary serialisation library for Haskell values"
HOMEPAGE="https://github.com/well-typed/cborg"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"

RESTRICT=test # fails to build with quickcheck-instances-0.3.32

CABAL_CHDEPS=(
	'base                    >= 4.11    && < 4.21' 'base          >=4.10     && <6'
	'ghc-prim                >= 0.3.1.0 && < 0.12' 'ghc-prim                >= 0.3.1.0'
)

RDEPEND=">=dev-haskell/cborg-0.2:=[profile?] <dev-haskell/cborg-0.3:=[profile?]
	>=dev-haskell/half-0.2.2.3:=[profile?] <dev-haskell/half-0.4:=[profile?]
	>=dev-haskell/hashable-1.2:=[profile?] <dev-haskell/hashable-2.0:=[profile?]
	>=dev-haskell/primitive-0.5:=[profile?] <dev-haskell/primitive-0.10:=[profile?]
	>=dev-haskell/strict-0.4:=[profile?] <dev-haskell/strict-0.6:=[profile?]
	>=dev-haskell/text-1.1:=[profile?] <dev-haskell/text-2.2:=[profile?]
	>=dev-haskell/these-1.1:=[profile?] <dev-haskell/these-2.2:=[profile?]
	>=dev-haskell/unordered-containers-0.2:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
	>=dev-haskell/vector-0.10:=[profile?] <dev-haskell/vector-0.14:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0"
# 	test? ( >=dev-haskell/quickcheck-2.9 <dev-haskell/quickcheck-2.16
# 		>=dev-haskell/quickcheck-instances-0.3.12 <dev-haskell/quickcheck-instances-0.4
# 		>=dev-haskell/tasty-0.11 <dev-haskell/tasty-1.6
# 		>=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.11
# 		>=dev-haskell/tasty-quickcheck-0.8 <dev-haskell/tasty-quickcheck-0.11 )
# "