# 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_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal

DESCRIPTION="Library for parsing GHC time and allocation profiling reports"
HOMEPAGE="https://github.com/maoe/ghc-prof"

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

CABAL_CHDEPS=(
	'base >= 4.6 && < 4.18' 'base >= 4.6'
	)

RDEPEND="<dev-haskell/attoparsec-0.15:=[profile?]
	<dev-haskell/scientific-0.4:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/attoparsec-0.10
		<dev-haskell/tasty-1.5
		>=dev-haskell/tasty-hunit-0.9.1 <dev-haskell/tasty-hunit-0.11
		dev-haskell/temporary )
"

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