summaryrefslogtreecommitdiff
blob: 624d190ed8b4e1c02d1814d45ae57c55acedb9e4 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3
PYTHON_DEPEND="*:2.5"
SUPPORT_PYTHON_ABIS="1"
DISTUTILS_SRC_TEST="nosetests"

inherit distutils

DESCRIPTION="MSRP client library, implements RFC4975 and RFC4976"
HOMEPAGE="http://www.msrprelay.org/"
SRC_URI="http://download.ag-projects.com/MSRP/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"

DEPEND="test? ( ${RDEPEND} )"
RDEPEND="dev-python/eventlet
	dev-python/python-application
	dev-python/python-gnutls
	dev-python/twisted
	dev-python/twisted-names
	net-zope/zope-interface"

src_compile() {
	distutils_src_compile
}

src_test() {
	testing() {
		PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test_basic.py
	}
	python_execute_function testing
}


src_install() {
	distutils_src_install

	if use examples; then
		insinto /usr/share/doc/${PF}
		doins -r examples || die
	fi
}