summaryrefslogtreecommitdiff
blob: 68b736aab90815722fe9c828ecc5a84f45be8276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="Concurrence is a framework for creating massively concurrent network applications in Python"
HOMEPAGE="http://opensource.hyves.org/concurrence"
SRC_URI="http://concurrence.googlecode.com/files/${P}.tar.gz"

LICENSE="BSD-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="doc examples"

DEPEND=">=dev-lang/python-2.5
	dev-python/setuptools"
RDEPEND="${DEPEND}"

src_install() {
	distutils_src_install

	if use doc; then
		dodoc doc/* || die
	fi

	if use examples; then
		docinto examples
		dodoc examples/* || die "dodoc failed"
	fi
}

src_test() {
	PYTHONPATH="build/lib" "${python}" setup.py test || die "Tests failed"
}