summaryrefslogtreecommitdiff
blob: 3b0feb6224ffd0d1314015808963eed06cfd2f1c (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="High-level library for HTTP, WebDAV and CalDAV operations"
HOMEPAGE="http://chandlerproject.org/Projects/ZanshinProject"
SRC_URI="http://pypi.python.org/packages/source/z/${PN}/${P}.tar.gz"

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

DEPEND="doc? ( dev-python/epydoc )"
RDEPEND="dev-python/twisted-web"

src_test() {
	PYTHONPATH="build/lib/" "${python}" setup.py test \
		|| die "Completing the tests failed!"
}

src_compile() {
	if use doc; then
		${python} setup.py doc || die "Creating the docs failed!"
	fi
	distutils_src_compile
}

src_install() {
	if use doc; then
		dohtml -r doc/* || die "Installing the docs failed!"
	fi
	distutils_src_install
}