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

# ebuild generated by hackport 0.2.17.9999

EAPI=5

CABAL_FEATURES="bin"
inherit eutils haskell-cabal

DESCRIPTION="Analyze 454 flowgrams  (.SFF files)"
HOMEPAGE="http://biohaskell.org/Applications/Flower"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}
		>=dev-haskell/binary-0.4
		>=dev-haskell/bio-0.4.9
		>=dev-haskell/cabal-1.6
		>=dev-haskell/cmdargs-0.5
		dev-haskell/mtl
		dev-haskell/random
		>=dev-lang/ghc-6.10.1"

src_prepare() {
	epatch "${FILESDIR}"/${P}-ghc-7.8.patch
	epatch "${FILESDIR}"/${P}-ghc-7.10.patch
	cabal_chdeps \
		'binary == 0.4.*' 'binary >= 0.4' \
		'Executable     flower'     'Executable     flower-flower' \
		'Executable     flowselect' 'Executable     flower-flowselect' \
		'Executable     flowt'      'Executable     flower-flowt'
}