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

EAPI=7

# ebuild generated by hackport 0.6.7.9999

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

DESCRIPTION="Write Haskell source files including C code inline. No FFI required"
HOMEPAGE="https://hackage.haskell.org/package/inline-c"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="gsl-example"

RDEPEND=">=dev-haskell/ansi-wl-pprint-0.6.8:=[profile?]
	dev-haskell/hashable:=[profile?]
	dev-haskell/mtl:=[profile?]
	>=dev-haskell/parsec-3:=[profile?]
	dev-haskell/parsers:=[profile?]
	dev-haskell/unordered-containers:=[profile?]
	dev-haskell/vector:=[profile?]
	>=dev-lang/ghc-8.4.3:=
	gsl-example? ( >=dev-haskell/chart-1.3:=[profile?]
			dev-haskell/chart-cairo:=[profile?]
			sci-libs/gsl
			virtual/libc )
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-2.2.0.1
	test? ( >=dev-haskell/hspec-2
		dev-haskell/quickcheck
		dev-haskell/raw-strings-qq
		dev-haskell/regex-posix
		dev-haskell/split )
"

src_configure() {
	haskell-cabal_src_configure \
		$(cabal_flag gsl-example gsl-example)
}