diff options
-rw-r--r-- | app-misc/ranger/Manifest | 1 | ||||
-rw-r--r-- | app-misc/ranger/ranger-1.9.1.ebuild | 43 | ||||
-rw-r--r-- | app-misc/ranger/ranger-9999.ebuild | 2 |
3 files changed, 45 insertions, 1 deletions
diff --git a/app-misc/ranger/Manifest b/app-misc/ranger/Manifest index 95ffa0315f51..3bbf631d012d 100644 --- a/app-misc/ranger/Manifest +++ b/app-misc/ranger/Manifest @@ -1,3 +1,4 @@ DIST ranger-1.8.1.tar.gz 227415 BLAKE2B 111da01dcee27a80da7d52ca7b8296386e1ddfffb49e70ec586e6c6a16af6663450639a9699630271a9062f96a406ddf8509f35cb91dad6a278ca5953c651ab4 SHA512 40450d4e80017ac62d60ea6de231c10496fec1680f15a14006d3b87aae7f34cb2dbb6b810ced89527a4cba2975dcd6c037217e86fa806a0ba3cd39dc7dee8f04 DIST ranger-1.9.0_beta5.tar.gz 235886 BLAKE2B 730169abfb19ee95fb97d8ee95752a6eca6afa2795896db011e7bd44b6d95b01de747b3ad590682f97d7a6f2e3445c52a045f8d4afebd5abe2b94909f1f626a9 SHA512 728efd93630e9c8bba67f7d567200a0cb21d19d8d1b5dc4ec63a454b1169de9427c1b0477754eea1ce5b0d0ed8e79d964b4804587152e30205c1e5a73f938e0a DIST ranger-1.9.0_beta6.tar.gz 240948 BLAKE2B c0b04769aef7d5939d6b8042a7ffeaee8e59c08d9965ce72bd643dc8fc5ec5a28ec0079a21bf9e6ce4853752cb942a02a06e3c559a106c894e4fdf5f41daceac SHA512 4598f813d8505ba040397b504642061bc61ebbeaa73eff86841a1976f281e6565833dce57ae1754e7329598ad1444a0d96d5bf6fc90af56d75d747e30da54996 +DIST ranger-1.9.1.tar.gz 245872 BLAKE2B 3ed48c4fe0cb42be7e001508a9c1f558e415e155eb5f68c9a8eb3e6d906ad287080391ab0310c0e9d67c9bc3210621827dc11107d99ac4173a4d8c64d74ab28b SHA512 c7fdc8f423860c7c420d7be61ebcc92629e444529c982f24260a9eeb68452adbbc6d40d53921c556da3d08a75b1c718bb05257cf869a15f7d932e8f00836cfe3 diff --git a/app-misc/ranger/ranger-1.9.1.ebuild b/app-misc/ranger/ranger-1.9.1.ebuild new file mode 100644 index 000000000000..f5d241c95d9d --- /dev/null +++ b/app-misc/ranger/ranger-1.9.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/ranger/ranger.git" + inherit git-r3 +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~x86" +fi + +DESCRIPTION="A vim-inspired file manager for the console" +HOMEPAGE="https://ranger.github.io/" +LICENSE="GPL-3" +SLOT="0" +IUSE="test" + +RDEPEND="virtual/pager" +DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +src_prepare() { + # use versioned doc path + sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die + + distutils-r1_src_prepare +} + +python_test() { + py.test -v tests/ranger || die "Tests failed under ${EPYTHON}" +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "Ranger has many optional dependencies to support enhanced file previews." + elog "See the README or homepage for more details." + fi +} diff --git a/app-misc/ranger/ranger-9999.ebuild b/app-misc/ranger/ranger-9999.ebuild index a078aa0428c5..f5d241c95d9d 100644 --- a/app-misc/ranger/ranger-9999.ebuild +++ b/app-misc/ranger/ranger-9999.ebuild @@ -32,7 +32,7 @@ src_prepare() { } python_test() { - py.test -v || die "Tests failed under ${EPYTHON}" + py.test -v tests/ranger || die "Tests failed under ${EPYTHON}" } pkg_postinst() { |