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

EAPI=7

# ebuild generated by hackport 0.6.3

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

DESCRIPTION="QuasiQuotation library for programmatic generation of Javascript code"
HOMEPAGE="https://hackage.haskell.org/package/jmacro"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RDEPEND=">=dev-haskell/aeson-0.5:=[profile?]
	dev-haskell/haskell-src-exts:=[profile?]
	dev-haskell/haskell-src-meta:=[profile?]
	>dev-haskell/mtl-1.1:=[profile?]
	dev-haskell/parseargs:=[profile?]
	>dev-haskell/parsec-3.0:=[profile?]
	>dev-haskell/regex-posix-0.9:=[profile?]
	>=dev-haskell/safe-0.2:=[profile?]
	dev-haskell/syb:=[profile?]
	dev-haskell/text:=[profile?]
	>=dev-haskell/unordered-containers-0.2:=[profile?]
	>=dev-haskell/vector-0.8:=[profile?]
	dev-haskell/wl-pprint-text:=[profile?]
	>=dev-lang/ghc-8.0.1:=
	benchmarks? ( dev-haskell/criterion:=[profile?] )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.24.0.0
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag benchmarks benchmarks)
}