1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
6 PYTHON_REQ_USE="ncurses"
10 if [[ ${PV} == "9999" ]] ; then
11 EGIT_REPO_URI="https://github.com/ranger/ranger.git"
14 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="amd64 ~ppc x86"
18 DESCRIPTION="A vim-inspired file manager for the console"
19 HOMEPAGE="https://ranger.github.io/"
23 RESTRICT="!test? ( test )"
25 RDEPEND="virtual/pager"
26 DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
29 # use versioned doc path
30 sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die
32 distutils-r1_src_prepare
36 py.test -v tests/ranger || die "Tests failed under ${EPYTHON}"
40 if [[ -z ${REPLACING_VERSIONS} ]]; then
41 elog "Ranger has many optional dependencies to support enhanced file previews."
42 elog "See the README or homepage for more details."