1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
8 inherit distutils-r1 vcs-snapshot
10 DESCRIPTION="Python Command-line Application Tools"
11 HOMEPAGE="https://github.com/kennethreitz/clint"
12 SRC_URI="https://github.com/kennethreitz/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 IUSE="doc examples test"
20 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
21 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
25 # Prevent install of files to wrong location
26 PATCHES=( "${FILESDIR}"/${PN}-setup.patch )
28 python_compile_all() {
29 use doc && emake -C docs html
33 py.test || die "Tests failed under ${EPYTHON}"
36 python_install_all() {
37 use doc && local HTML_DOCS=( docs/_build/html/. )
38 use examples && local EXAMPLES=( examples/. )
40 distutils-r1_python_install_all