# 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-tree-diff"

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

DESCRIPTION="tree-diff for 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"

CABAL_CHDEPS=(
	'tree-diff     ^>=0.1 || ^>=0.2' 'tree-diff >=0.1'
)

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-haskell/tree-diff-0.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
"