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

EAPI=8

# ebuild generated by hackport 0.7.1.1

CABAL_FEATURES="test-suite"
inherit haskell-cabal

DESCRIPTION="An entity-relationship diagram generator from a plain text description"
HOMEPAGE="https://github.com/BurntSushi/erd"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=">=dev-haskell/gitrev-1.3.1:=
	>=dev-haskell/graphviz-2999.20:= <dev-haskell/graphviz-2999.21:=
	>=dev-haskell/raw-strings-qq-1.1:=
	>=dev-haskell/yaml-0.8.32:=
	>=dev-lang/ghc-8.4.3:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.2.0.1
	test? ( >=dev-haskell/tasty-0.11
		>=dev-haskell/tasty-hunit-0.9 )
"
PATCHES=("${FILESDIR}/${PN}-0.2.1.0-ghc-9.patch")

CABAL_CHDEPS=(
	'bytestring == 0.10.*' 'bytestring >= 0.10'
)