# 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_HACKAGE_REVISION=1

CABAL_FEATURES="lib haddock hoogle hscolour" # drop USE=profile as __attribute__ mangling is not compatible with glibc
inherit haskell-cabal

DESCRIPTION="Binding to the libsvg-cairo library"
HOMEPAGE="https://projects.haskell.org/gtk2hs/"

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

GHC_BOOTSTRAP_PACKAGES=(
	gtk2hs-buildtools
)

PATCHES=(
	"${FILESDIR}"/${P}-librsvg.patch
	)

RDEPEND=">=dev-haskell/cairo-0.13.0.0:= <dev-haskell/cairo-0.14:=
	>=dev-haskell/glib-0.13.0.0:= <dev-haskell/glib-0.14:=
	dev-haskell/text:=
	>=dev-lang/ghc-9.0.2:=
	gnome-base/librsvg
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.4.1.0 <dev-haskell/cabal-3.11
	>=dev-haskell/gtk2hs-buildtools-0.13.2.0 <dev-haskell/gtk2hs-buildtools-0.14
	virtual/pkgconfig
"