# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

# ebuild generated by hackport 0.5.3.9999

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

DESCRIPTION="SPDX license expression language"
HOMEPAGE="https://github.com/phadej/spdx"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND=">=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.18.1.3
	test? ( >=dev-haskell/tasty-0.10
		>=dev-haskell/tasty-quickcheck-0.8 )
"

src_prepare() {
	default

	cabal_chdeps \
		'base              >=4.2 && <4.11' 'base              >=4.2' \
		'base              >=4.5  && <4.11' 'base              >=4.5' \
		'tasty             >=0.10 && <0.12' 'tasty             >=0.10' \
		'tasty-quickcheck  >=0.8  && <0.10' 'tasty-quickcheck  >=0.8'
}