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

EAPI=8

# ebuild generated by hackport 0.5.9999

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

DESCRIPTION="sqlite-simple snaplet for the Snap Framework"
HOMEPAGE="https://github.com/nurpax/snaplet-sqlite-simple"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RDEPEND=">=dev-haskell/aeson-0.11.1.4:=[profile?]
	>=dev-haskell/clientsession-0.8:=[profile?] <dev-haskell/clientsession-0.10:=[profile?]
	>=dev-haskell/configurator-0.3:=[profile?]
	>=dev-haskell/direct-sqlite-2.3.3:=[profile?] <dev-haskell/direct-sqlite-2.4:=[profile?]
	>=dev-haskell/lens-4.0:=[profile?]
	>=dev-haskell/lifted-base-0.2:=[profile?] <dev-haskell/lifted-base-0.3:=[profile?]
	>=dev-haskell/monad-control-1.0.1.0:=[profile?]
	>=dev-haskell/mtl-2:=[profile?] <dev-haskell/mtl-3:=[profile?]
	>=dev-haskell/snap-1.0:=[profile?]
	>=dev-haskell/sqlite-simple-0.4.1:=[profile?] <dev-haskell/sqlite-simple-1.0:=[profile?]
	>=dev-haskell/text-1.2:=[profile?]
	>=dev-haskell/transformers-base-0.4:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?]
	>=dev-haskell/unordered-containers-0.2:=[profile?] <dev-haskell/unordered-containers-0.3:=[profile?]
	>=dev-lang/ghc-7.10.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.22.2.0
	test? ( >=dev-haskell/errors-2.1.2
		>=dev-haskell/exceptions-0.8
		>=dev-haskell/hunit-1.2 <dev-haskell/hunit-2
		dev-haskell/safesemaphore
		dev-haskell/snap-core
		>=dev-haskell/stm-2.4
		>=dev-haskell/test-framework-0.6 <dev-haskell/test-framework-0.9
		>=dev-haskell/test-framework-hunit-0.2.7 <dev-haskell/test-framework-hunit-0.4 )
"

src_prepare() {
	default

	cabal_chdeps \
		'directory                  >= 1.0      && < 1.3' 'directory                  >= 1.0' \
		'snap                       >= 1.0      && < 1.1' 'snap                       >= 1.0' \
		'snap                       >= 1.0     && < 1.1' 'snap                       >= 1.0' \
		'lens                       >= 4.0     && < 5' 'lens                       >= 4.0'
}