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

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

DESCRIPTION="Set up a GHC API session"
HOMEPAGE="https://github.com/haskell/hie-bios"

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

PATCHES=(
	"${FILESDIR}/${PN}-0.11.0-disable-network-tests.patch"
)

RDEPEND="
	>=dev-haskell/aeson-1.4.4:=[profile?] <dev-haskell/aeson-2.3:=[profile?]
	>=dev-haskell/base16-bytestring-0.1.1:=[profile?] <dev-haskell/base16-bytestring-1.1:=[profile?]
	>=dev-haskell/co-log-core-0.3.0:=[profile?] <dev-haskell/co-log-core-0.4:=[profile?]
	>=dev-haskell/conduit-1.3:=[profile?] <dev-haskell/conduit-2:=[profile?]
	>=dev-haskell/conduit-extra-1.3:=[profile?] <dev-haskell/conduit-extra-2:=[profile?]
	>=dev-haskell/cryptohash-sha1-0.11.100:=[profile?] <dev-haskell/cryptohash-sha1-0.12:=[profile?]
	>=dev-haskell/extra-1.6.14:=[profile?] <dev-haskell/extra-1.8:=[profile?]
	>=dev-haskell/file-embed-0.0.11:=[profile?] <dev-haskell/file-embed-1:=[profile?]
	dev-haskell/optparse-applicative:=[profile?]
	>=dev-haskell/prettyprinter-1.6:=[profile?] <dev-haskell/prettyprinter-1.8:=[profile?]
	>=dev-haskell/temporary-1.2:=[profile?] <dev-haskell/temporary-1.4:=[profile?]
	>=dev-haskell/text-1.2.3:=[profile?] <dev-haskell/text-2.2:=[profile?]
	>=dev-haskell/unix-compat-0.5.1:=[profile?] <dev-haskell/unix-compat-0.8:=[profile?]
	>=dev-haskell/unordered-containers-0.2.9:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
	>=dev-haskell/yaml-0.10.0:=[profile?] <dev-haskell/yaml-0.12:=[profile?]
	>=dev-lang/ghc-9.2.4:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.6.3.0
	test? (
		dev-haskell/tasty
		dev-haskell/tasty-expected-failure
		dev-haskell/tasty-hunit
	)
"