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

EAPI=8

# ebuild generated by hackport 0.8.4.0.9999

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

DESCRIPTION="simple image manipulation functions"
HOMEPAGE="https://github.com/mdibaiee/picedit#readme"

LICENSE="GPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64"

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

CABAL_CHDEPS=(
	'hmatrix >= 0.17.0.2 && < 0.19' 'hmatrix >= 0.17.0.2'
	'JuicyPixels >= 3.2.8 && < 3.3' 'JuicyPixels >= 3.2.8'
	'cli >= 0.1.2 && < 0.2' 'cli >= 0.1.2'
)

RDEPEND="
	>=dev-haskell/cli-0.1.2:=[profile?]
	>=dev-haskell/hmatrix-0.17.0.2:=[profile?]
	>=dev-haskell/juicypixels-3.2.8:=[profile?]
	>=dev-haskell/vector-0.11.0.0:=[profile?] <dev-haskell/vector-0.13:=[profile?]
	>=dev-lang/ghc-8.10.6:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-3.2.1.0
"