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

EAPI=8

# ebuild generated by hackport 0.6.1.9999
#hackport: flags: -examples,-test-doc-coverage,-test-hlint,-test-regression

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

MY_PN="Yampa"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Library for programming hybrid systems"
HOMEPAGE="https://github.com/ivanperez-keera/Yampa/"
SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz"

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

RDEPEND=">=dev-haskell/fail-4.9:=[profile?] <dev-haskell/fail-4.10:=[profile?]
	dev-haskell/random:=[profile?]
	dev-haskell/simple-affine-space:=[profile?]
	>=dev-lang/ghc-7.4.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.8
"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	default

	cabal_chdeps \
		'-O3' ' '
}

src_configure() {
	haskell-cabal_src_configure \
		--flag=-examples \
		--flag=-test-doc-coverage \
		--flag=-test-hlint \
		--flag=-test-regression
}