# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

# ebuild generated by hackport 0.5.1

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

DESCRIPTION="Kafka bindings for Haskell"
HOMEPAGE="https://github.com/cosbynator/haskakafka"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RESTRICT=test # needs running service

RDEPEND="dev-haskell/cmdargs:=[profile?]
	dev-haskell/pretty-show:=[profile?]
	dev-haskell/temporary:=[profile?]
	>=dev-lang/ghc-7.6.1:=
	dev-libs/librdkafka:=
"
DEPEND="${RDEPEND}
	dev-haskell/c2hs
	>=dev-haskell/cabal-1.16.0
	virtual/pkgconfig
	test? ( dev-haskell/either-unwrap
		dev-haskell/hspec
		dev-haskell/regex-posix )
"