# 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_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="An XMPP client library"
HOMEPAGE="https://github.com/l29ah/pontarius-xmpp/"

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

RDEPEND=">=dev-haskell/attoparsec-0.10.0.3:=[profile?]
	>=dev-haskell/base64-bytestring-0.1.0.0:=[profile?]
	>=dev-haskell/conduit-1.3:=[profile?] <dev-haskell/conduit-1.4:=[profile?]
	>=dev-haskell/crypto-api-0.9:=[profile?]
	>=dev-haskell/cryptohash-0.6.1:=[profile?]
	>=dev-haskell/cryptohash-cryptoapi-0.1:=[profile?]
	>=dev-haskell/crypton-x509-system-1.4:=[profile?]
	>=dev-haskell/data-default-0.2:=[profile?]
	>=dev-haskell/dns-3.0:=[profile?]
	>=dev-haskell/hslogger-1.1.0:=[profile?]
	>=dev-haskell/iproute-1.2.4:=[profile?]
	dev-haskell/lens:=[profile?]
	dev-haskell/lens-family:=[profile?]
	>=dev-haskell/lifted-base-0.1.0.1:=[profile?]
	>=dev-haskell/network-2.3.1.0:=[profile?]
	>=dev-haskell/profunctors-4:=[profile?]
	>=dev-haskell/puremd5-2.1.2.1:=[profile?]
	>=dev-haskell/random-1.0.0.0:=[profile?]
	>=dev-haskell/resourcet-0.3.0:=[profile?]
	>=dev-haskell/split-0.1.2.3:=[profile?]
	>=dev-haskell/stringprep-1.0.0:=[profile?]
	>=dev-haskell/text-0.11.1.5:=[profile?]
	>=dev-haskell/tls-1.3.9:=[profile?]
	>=dev-haskell/unbounded-delays-0.1:=[profile?]
	>=dev-haskell/void-0.5.5:=[profile?]
	>=dev-haskell/xml-conduit-1.1.0.7:=[profile?]
	>=dev-haskell/xml-picklers-0.3.3:=[profile?]
	>=dev-haskell/xml-types-0.3.1:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( dev-haskell/async
		dev-haskell/generic-arbitrary
		dev-haskell/hspec
		dev-haskell/hspec-expectations
		dev-haskell/quickcheck
		dev-haskell/quickcheck-instances
		dev-haskell/ranges
		dev-haskell/smallcheck
		dev-haskell/tasty
		dev-haskell/tasty-hspec
		dev-haskell/tasty-hunit
		dev-haskell/tasty-quickcheck
		dev-haskell/tasty-th )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag th with-th)
}