# 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="A pagination approach for yesod"
HOMEPAGE="https://github.com/pbrisbin/yesod-paginator"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="examples"

RDEPEND=">=dev-haskell/blaze-markup-0.8.2.2:=[profile?]
	>=dev-haskell/path-pieces-0.2.1:=[profile?]
	>=dev-haskell/persistent-2.8.2:=[profile?]
	>=dev-haskell/safe-0.3.17:=[profile?]
	>=dev-haskell/text-1.2.3.1:=[profile?]
	>=dev-haskell/uri-encode-1.5.0.5:=[profile?]
	>=dev-haskell/yesod-core-1.6.9:=[profile?]
	>=dev-lang/ghc-9.0.2:=
	examples? ( >=dev-haskell/warp-3.2.25:=[profile?]
			>=dev-haskell/yesod-1.6.0:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0
	test? ( >=dev-haskell/doctest-0.16.0.1
		>=dev-haskell/hspec-2.5.5
		>=dev-haskell/quickcheck-2.11.3
		>=dev-haskell/quickcheck-classes-0.4.13
		>=dev-haskell/yesod-test-1.6.5.1 )
"

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