# 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"
inherit haskell-cabal

DESCRIPTION="Dynamic linking for Haskell and C objects"
HOMEPAGE="https://github.com/stepcut/plugins"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
SRC_URI+="
	https://github.com/stepcut/plugins/pull/21.patch
		-> ${P}-ghc-9_8.patch"

PATCHES=(
	"${DISTDIR}"/${P}-ghc-9_8.patch
)

CABAL_CHDEPS=(
	'Cabal ^>= 3.8' 'Cabal >= 3.8'
)

RDEPEND=">=dev-haskell/cabal-1.6:=[profile?]
	dev-haskell/ghc-paths:=[profile?]
	dev-haskell/haskell-src:=[profile?]
	dev-haskell/random:=[profile?]
	dev-haskell/split:=[profile?]
	>=dev-lang/ghc-6.10:=[profile?]
	>=dev-lang/ghc-9.0.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.8
"