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

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

DESCRIPTION="QUIC: A UDP-Based Multiplexed and Secure Transport"
HOMEPAGE="https://hackage.haskell.org/package/quic"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="devel +fusion"

RDEPEND="dev-haskell/async:=[profile?]
	>=dev-haskell/base16-bytestring-1.0:=[profile?] <dev-haskell/base16-bytestring-1.1:=[profile?]
	>=dev-haskell/crypto-token-0.1.2:=[profile?] <dev-haskell/crypto-token-0.2:=[profile?]
	>=dev-haskell/crypton-0.34:=[profile?]
	>=dev-haskell/crypton-x509-1.7.6:=[profile?] <dev-haskell/crypton-x509-1.8:=[profile?]
	>=dev-haskell/crypton-x509-system-1.6.7:=[profile?] <dev-haskell/crypton-x509-system-1.7:=[profile?]
	dev-haskell/data-default:=[profile?]
	>=dev-haskell/fast-logger-3.2.2:=[profile?] <dev-haskell/fast-logger-3.3:=[profile?]
	>=dev-haskell/iproute-1.7.12:=[profile?] <dev-haskell/iproute-1.8:=[profile?]
	>=dev-haskell/memory-0.18.0:=[profile?] <dev-haskell/memory-0.19:=[profile?]
	>=dev-haskell/network-3.2.2:=[profile?]
	>=dev-haskell/network-byte-order-0.1.7:=[profile?] <dev-haskell/network-byte-order-0.2:=[profile?]
	>=dev-haskell/network-control-0.1:=[profile?] <dev-haskell/network-control-0.2:=[profile?]
	>=dev-haskell/random-1.2.1:=[profile?] <dev-haskell/random-1.4:=[profile?]
	dev-haskell/serialise:=[profile?]
	>=dev-haskell/tls-2.0:=[profile?] <dev-haskell/tls-2.2:=[profile?]
	>=dev-haskell/unix-time-0.4.12:=[profile?] <dev-haskell/unix-time-0.5:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	devel? ( dev-haskell/http2:=[profile?]
			>=dev-haskell/tls-session-manager-0.0.5:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/hspec
		dev-haskell/quickcheck )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag devel devel) \
		$(cabal_flag fusion fusion)
}