postgresql-typed-0.6.2.5haskell
download
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# ebuild generated by hackport 0.9.0.0.9999
CABAL_FEATURES="lib profile haddock hoogle hscolour" # Needs database access at compile time: test-suite"
inherit haskell-cabal
DESCRIPTION="PostgreSQL interface with compile-time SQL type checking, optional HDBC backend"
HOMEPAGE="https://github.com/dylex/postgresql-typed"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+aeson +binary +hdbc +md5 +scientific +text +tls +uuid"
RESTRICT=test # needs database access at compile time
RDEPEND=">=dev-haskell/attoparsec-0.12:=[profile?] <dev-haskell/attoparsec-0.15:=[profile?]
dev-haskell/haskell-src-meta:=[profile?]
dev-haskell/network:=[profile?]
dev-haskell/old-locale:=[profile?]
dev-haskell/utf8-string:=[profile?]
>=dev-lang/ghc-9.0.2:=
aeson? ( >=dev-haskell/aeson-0.7:=[profile?] <dev-haskell/aeson-2.3:=[profile?] )
binary? ( >=dev-haskell/postgresql-binary-0.8:=[profile?]
>=dev-haskell/scientific-0.3:=[profile?]
>=dev-haskell/text-1:=[profile?]
>=dev-haskell/uuid-1.3:=[profile?] )
!binary? ( scientific? ( >=dev-haskell/scientific-0.3:=[profile?] )
text? ( >=dev-haskell/text-1:=[profile?] )
uuid? ( >=dev-haskell/uuid-1.3:=[profile?] ) )
hdbc? ( >=dev-haskell/hdbc-2.2:=[profile?] )
md5? ( >=dev-haskell/memory-0.5:=[profile?]
dev-haskell/crypton:=[profile?]
>=dev-haskell/cryptonite-0.5:=[profile?]
tls? ( dev-haskell/crypton-x509:=[profile?]
dev-haskell/crypton-x509-store:=[profile?]
dev-haskell/crypton-x509-validation:=[profile?]
>=dev-haskell/tls-1.7:=[profile?] ) )
tls? ( dev-haskell/data-default:=[profile?]
dev-haskell/crypton-x509:=[profile?]
dev-haskell/crypton-x509-store:=[profile?]
dev-haskell/crypton-x509-validation:=[profile?]
>=dev-haskell/tls-1.7:=[profile?] )
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-3.4.1.0
"
src_configure() {
haskell-cabal_src_configure \
$(cabal_flag aeson aeson) \
$(cabal_flag binary binary) \
--flags=crypton \
$(cabal_flag hdbc hdbc) \
$(cabal_flag md5 md5) \
$(cabal_flag scientific scientific) \
$(cabal_flag text text) \
$(cabal_flag tls tls) \
$(cabal_flag uuid uuid)
}