# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

# ebuild generated by hackport 0.3.1.9999

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

DESCRIPTION="2D and 3D plots using gnuplot"
HOMEPAGE="http://www.haskell.org/haskellwiki/Gnuplot"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND=">=dev-haskell/monoid-transformer-0.0.2:=[profile?]
		=dev-haskell/utility-ht-0.0.1:=[profile?]
		=dev-lang/ghc-6.12.1:="
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.6"
RDEPEND+="	sci-visualization/gnuplot"

src_install() {
	cabal_src_install
	use examples && dodoc src/Demo.hs
}