# 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

CABAL_PN="Cabal-QuickCheck"

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

DESCRIPTION="QuickCheck instances for types in Cabal"
HOMEPAGE="https://github.com/haskell/cabal#readme"

GIT_REPO="https://github.com/haskell/cabal"
GIT_COMMIT="6c95f3fee3cdee859704b6476646cefd4628a850"
GIT_P="cabal-${GIT_COMMIT}"

SRC_URI="${GIT_REPO}/archive/${GIT_COMMIT}.tar.gz -> ${GIT_P}.tar.gz"

S="${WORKDIR}/${GIT_P}/${CABAL_PN}"
CABAL_FILE="${S}/${CABAL_PN}.cabal"

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

RDEPEND="
	>=dev-haskell/cabal-3.10.0.0:=[profile?] <dev-haskell/cabal-3.11:=[profile?]
	>=dev-haskell/cabal-syntax-3.10.0.0:=[profile?] <dev-haskell/cabal-syntax-3.11:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	|| (
		( >=dev-haskell/quickcheck-2.13.2 <dev-haskell/quickcheck-2.14 )
		( >=dev-haskell/quickcheck-2.14 <dev-haskell/quickcheck-2.15 )
	)
	dev-haskell/quickcheck:=[profile?]
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
"