summaryrefslogtreecommitdiff
blob: e7fba4738cc331360860a0f2315abde1f7a89086 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Ebuild generated by g-pypi 0.2.1 (rev. 204)

inherit distutils

MY_PN="EggTranslations"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Provides an API for accessing localizations and resources packaged in python eggs"
HOMEPAGE="http://chandlerproject.org/Projects/EggTranslations"
SRC_URI="http://pypi.python.org/packages/source/E/${MY_PN}/${MY_P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc"

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

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

DOCS="README.txt"

src_compile() {
	if use doc; then
		epydoc --html --verbose --url="${HOMEPAGE}" --name="${MY_P}" egg_translations.py \
			|| die "Making the docs failed!"
	fi
	distutils_src_compile
}

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

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