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

EAPI=8

# ebuild generated by hackport 0.8.4.0

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

DESCRIPTION="A command-line interface parser that will make you smile"
HOMEPAGE="https://github.com/docopt/docopt.hs"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+template-haskell"

RDEPEND=">=dev-haskell/parsec-3.1.14:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
	>=dev-lang/ghc-8.8.1:=
	template-haskell? ( >=dev-haskell/th-lift-0.8.2:=[profile?] <dev-haskell/th-lift-0.9:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.0.0.0
	test? ( dev-haskell/aeson
		dev-haskell/ansi-terminal
		dev-haskell/hunit
		dev-haskell/split
		dev-haskell/text
		!template-haskell? ( >=dev-haskell/th-lift-0.8.2 <dev-haskell/th-lift-0.9 ) )
"

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