summaryrefslogtreecommitdiff
blob: 739e8cff00ef72ed001625c0eabe5c1d13437083 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pydispatcher/pydispatcher-2.0.1.ebuild,v 1.2 2009/02/15 22:46:29 patrick Exp $

inherit distutils

MY_P="PyDispatcher"-${PV}

DESCRIPTION="Multi-producer-multi-consumer signal dispatching mechanism for Python"
HOMEPAGE="http://pydispatcher.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="doc examples"
DEPEND="virtual/python"

S="${WORKDIR}/${MY_P}"

src_install() {
	distutils_src_install
	distutils_python_version

	if use examples; then
		insinto /usr/share/doc/"${PF}"/examples
		doins examples/*
	fi

	if use doc; then
		insinto "${ROOT}/usr/share/doc/${PF}/html"
		doins -r docs/*

		PYTHONPATH=${PYTHONPATH}:/${D}$(python_get_sitedir)
		${python} docs/pydoc/builddocs.py
		dohtml -r *html
	fi

}