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

EAPI=8

# ebuild generated by hackport 0.6.1.9999

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

DESCRIPTION="CORS for WAI"
HOMEPAGE="https://github.com/larskuhtz/wai-cors"
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"

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

RESTRICT=test # one test fails

RDEPEND=">=dev-haskell/attoparsec-0.10.4.0:=[profile?]
	>=dev-haskell/base-unicode-symbols-0.2.2.3:=[profile?]
	>=dev-haskell/case-insensitive-1.0.0.1:=[profile?]
	>=dev-haskell/http-types-0.8.0:=[profile?]
	>=dev-haskell/mtl-2.2:=[profile?]
	>=dev-haskell/wai-3.0:=[profile?]
	>=dev-lang/ghc-7.10.1:=
"
DEPEND="${RDEPEND}
	>=dev-haskell/cabal-1.22.2.0
	test? ( >=dev-haskell/network-2.6
		>=dev-haskell/tasty-0.11
		>=dev-haskell/tasty-hunit-0.9
		>=dev-haskell/text-1.2
		>=dev-haskell/wai-extra-3.0
		>=dev-haskell/wai-websockets-3.0.1
		>=dev-haskell/warp-3.0
		>=dev-haskell/websockets-0.10 )
"