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

EAPI=8

# ebuild generated by hackport 0.9.1.0
#hackport: flags:+pkg-config

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

DESCRIPTION="Raw Botan bindings"
HOMEPAGE="https://hackage.haskell.org/package/botan-bindings"

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

CABAL_CHDEPS=(
	'base >=4.16 && <4.22' 'base >=4.16'
)

RDEPEND=">=dev-lang/ghc-9.2.4:=
	>=dev-libs/botan-3:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.6.3.0
	virtual/pkgconfig
"

src_configure() {
	haskell-cabal_src_configure \
		--flag=pkg-config
}