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

EAPI=5

# ebuild generated by hackport 0.3.9999

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

DESCRIPTION="TCP instantiation of Network.Transport"
HOMEPAGE="http://github.com/haskell-distributed/distributed-process"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"

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

RDEPEND="=dev-haskell/data-accessor-0.2*:=[profile?]
		>=dev-haskell/network-2.3:=[profile?]
		=dev-lang/ghc-7.0.1:="
DEPEND="${RDEPEND}
		test? ( dev-haskell/data-accessor-transformers
			dev-haskell/hunit
			dev-haskell/lockfree-queue
			dev-haskell/mtl
			>=dev-haskell/network-transport-tests-0.1.0.1
			=dev-haskell/cabal-1.8"

RESTRICT=test # fails under load:
# Running "EarlyDisconnect": TestTCP: user error (Pattern match failure in do expression at tests/TestTCP.hs:108:7-21)
# Trace:
# 0       Left bind: resource busy (Address already in use)