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

EAPI="3"

PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils

DESCRIPTION="Pathological HTTP daemon (and client) for testing and torturing client software"
HOMEPAGE="http://pathod.net/"
SRC_URI="https://github.com/cortesi/${PN}/tarball/v${PV} -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=">=dev-python/netlib-0.2.2
	>=dev-python/requests-0.13
	dev-python/flask"

S=${WORKDIR}/cortesi-pathod-b11260f

src_install() {
	distutils_src_install

	insinto /usr/share/doc/${PF}/
	doins -r examples || die
}