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

# ebuild generated by hackport 0.2.17.9999

EAPI=5

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

DESCRIPTION="A Lens for IxSet"
HOMEPAGE="https://github.com/dag/data-lens-ixset"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND=">=dev-haskell/data-lens-2.0:=[profile?] =dev-lang/ghc-6.10.1:="
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.9.2
		test? ( >=dev-haskell/cabal-1.10
			>=dev-haskell/quickcheck-2.4.0.1[profile?]
		)
		"

PATCHES=("${FILESDIR}/${PN}-0.1.4-test.patch")

src_prepare() {
	base_src_prepare

	cabal_chdeps \
		'data-lens == 2.0.*' 'data-lens >= 2.0 && < 2.11' \
		'QuickCheck == 2.4.*' 'QuickCheck >= 2.4'
}

src_configure() {
	cabal_src_configure $(use test && use_enable test tests) #395351
}