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

EAPI=8

# ebuild generated by hackport 0.7.2.2.9999

CABAL_FEATURES=""
inherit haskell-cabal

DESCRIPTION="RPM packaging tool for Haskell Cabal-based packages"
HOMEPAGE="https://github.com/juhp/cabal-rpm"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="curl"

RDEPEND=">dev-haskell/cabal-1.10:= <dev-haskell/cabal-3.7:=
	dev-haskell/extra:=
	dev-haskell/optparse-applicative:=
	>=dev-haskell/simple-cabal-0.1.3:=
	>=dev-haskell/simple-cmd-0.2.0:=
	>=dev-haskell/simple-cmd-args-0.1.6:=
	>=dev-lang/ghc-8.4.3:=
	curl? ( dev-haskell/curl:= )
	!curl? ( >=dev-haskell/http-client-0.4.30:=
			dev-haskell/http-client-tls:=
			dev-haskell/http-conduit:= )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.2.0.1
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag curl curl)
}