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

EAPI=6

# ebuild generated by hackport 0.5.3.9999

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

DESCRIPTION="Mid-Level PostgreSQL client library"
HOMEPAGE="http://hackage.haskell.org/package/postgresql-simple"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RESTRICT="test" # requires running postgres

RDEPEND=">=dev-haskell/aeson-0.6:=[profile?]
	>=dev-haskell/attoparsec-0.10.3:=[profile?]
	dev-haskell/bytestring-builder:=[profile?]
	dev-haskell/case-insensitive:=[profile?]
	dev-haskell/hashable:=[profile?]
	>=dev-haskell/postgresql-libpq-0.9:=[profile?] <dev-haskell/postgresql-libpq-0.10:=[profile?]
	dev-haskell/scientific:=[profile?]
	>=dev-haskell/text-0.11.1:=[profile?]
	>=dev-haskell/uuid-types-1.0.0:=[profile?]
	dev-haskell/vector:=[profile?]
	>=dev-lang/ghc-7.8.2:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.18.1.3
	test? ( dev-haskell/base16-bytestring
		dev-haskell/cryptohash
		dev-haskell/hunit
		dev-haskell/tasty
		dev-haskell/tasty-golden
		dev-haskell/tasty-hunit )
"