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

EAPI=8

# ebuild generated by hackport 0.8.5.1.9999
#hackport: flags: -double

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

DESCRIPTION="A library providing the core functionality of hledger"
HOMEPAGE="https://hledger.org"

LICENSE="GPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="debug"

PATCHES=( "${FILESDIR}/${PN}-1.30-disable-doctests.patch" )

RDEPEND=">=dev-haskell/aeson-1:=[profile?] <dev-haskell/aeson-2.3:=[profile?]
	dev-haskell/aeson-pretty:=[profile?]
	>=dev-haskell/ansi-terminal-0.9:=[profile?]
	dev-haskell/base-compat:=[profile?]
	>=dev-haskell/blaze-markup-0.5.1:=[profile?]
	dev-haskell/call-stack:=[profile?]
	dev-haskell/cassava:=[profile?]
	dev-haskell/cassava-megaparsec:=[profile?]
	>=dev-haskell/cmdargs-0.10:=[profile?]
	>=dev-haskell/colour-2.3.6:=[profile?]
	>=dev-haskell/data-default-0.5:=[profile?]
	>=dev-haskell/decimal-0.5.1:=[profile?]
	>=dev-haskell/doclayout-0.3:=[profile?] <dev-haskell/doclayout-0.5:=[profile?]
	>=dev-haskell/extra-1.6.3:=[profile?]
	>=dev-haskell/file-embed-0.0.10:=[profile?]
	>=dev-haskell/glob-0.9:=[profile?]
	>=dev-haskell/hashtables-1.2.3.1:=[profile?]
	>=dev-haskell/megaparsec-7.0.0:=[profile?] <dev-haskell/megaparsec-9.7:=[profile?]
	>=dev-haskell/microlens-0.4:=[profile?]
	>=dev-haskell/microlens-th-0.4:=[profile?]
	>=dev-haskell/pager-0.1.1.0:=[profile?]
	>=dev-haskell/parser-combinators-0.4.0:=[profile?]
	>dev-haskell/pretty-simple-4:=[profile?] <dev-haskell/pretty-simple-5:=[profile?]
	dev-haskell/regex-tdfa:=[profile?]
	>=dev-haskell/safe-0.3.20:=[profile?]
	>=dev-haskell/tabular-0.2:=[profile?]
	>=dev-haskell/tasty-1.2.3:=[profile?]
	>=dev-haskell/tasty-hunit-0.10.0.2:=[profile?]
	>=dev-haskell/terminal-size-0.3.3:=[profile?]
	>=dev-haskell/text-1.2.4.1:=[profile?]
	>=dev-haskell/text-ansi-0.2.1:=[profile?]
	dev-haskell/timeit:=[profile?]
	dev-haskell/uglymemo:=[profile?]
	>=dev-haskell/unordered-containers-0.2:=[profile?]
	>=dev-haskell/utf8-string-0.3.5:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	debug? ( >=dev-haskell/ghc-debug-stub-0.6.0.0:=[profile?] <dev-haskell/ghc-debug-stub-0.7:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=-double \
		$(cabal_flag debug ghcdebug)
}