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

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

DESCRIPTION="Shell programming, Haskell-style"
HOMEPAGE="https://hackage.haskell.org/package/turtle"

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

RDEPEND=">=dev-haskell/async-2.0.0.0:=[profile?] <dev-haskell/async-2.3:=[profile?]
	>=dev-haskell/clock-0.4.1.2:=[profile?] <dev-haskell/clock-0.9:=[profile?]
	>=dev-haskell/foldl-1.1:=[profile?] <dev-haskell/foldl-1.5:=[profile?]
	<dev-haskell/hostname-1.1:=[profile?]
	>=dev-haskell/managed-1.0.3:=[profile?] <dev-haskell/managed-1.1:=[profile?]
	>=dev-haskell/optional-args-1.0:=[profile?] <dev-haskell/optional-args-2.0:=[profile?]
	<dev-haskell/streaming-commons-0.3:=[profile?]
	<dev-haskell/temporary-1.4:=[profile?]
	>=dev-haskell/text-1.0.0:=[profile?] <dev-haskell/text-2.2:=[profile?]
	>=dev-haskell/unix-compat-0.4:=[profile?] <dev-haskell/unix-compat-0.8:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	new-deps? ( >=dev-haskell/ansi-wl-pprint-1.0:=[profile?] <dev-haskell/ansi-wl-pprint-1.1:=[profile?]
			>=dev-haskell/optparse-applicative-0.18:=[profile?] <dev-haskell/optparse-applicative-0.19:=[profile?] )
	!new-deps? ( >=dev-haskell/ansi-wl-pprint-0.6:=[profile?] <dev-haskell/ansi-wl-pprint-1.0:=[profile?]
			>=dev-haskell/optparse-applicative-0.16:=[profile?] <dev-haskell/optparse-applicative-0.18:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/doctest-0.7
		>=dev-haskell/tasty-1.4 <dev-haskell/tasty-1.6
		>=dev-haskell/tasty-hunit-0.10 <dev-haskell/tasty-hunit-0.11 )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag new-deps new-deps)
}