summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-04-25 13:24:06 -0400
committerTim Harder <radhermit@gentoo.org>2017-04-25 13:26:50 -0400
commitdb774a58f6dfe1ec257ab8c924361b46b0393cf7 (patch)
treeebde658a049714ffb7a971ba7904c34d6ebb6dfe /app-misc
parentwww-apache/mod_gnutls: do not attempt to generate documentation (diff)
downloadgentoo-db774a58f6dfe1ec257ab8c924361b46b0393cf7.tar.gz
gentoo-db774a58f6dfe1ec257ab8c924361b46b0393cf7.tar.bz2
gentoo-db774a58f6dfe1ec257ab8c924361b46b0393cf7.zip
app-misc/ranger: version bump to 1.9.0_beta5
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ranger/Manifest1
-rw-r--r--app-misc/ranger/ranger-1.9.0_beta5.ebuild48
-rw-r--r--app-misc/ranger/ranger-9999.ebuild6
3 files changed, 55 insertions, 0 deletions
diff --git a/app-misc/ranger/Manifest b/app-misc/ranger/Manifest
index 9b363a36fcd6..946c3f8fdf09 100644
--- a/app-misc/ranger/Manifest
+++ b/app-misc/ranger/Manifest
@@ -1 +1,2 @@
DIST ranger-1.8.1.tar.gz 227415 SHA256 1433f9f9958b104c97d4b23ab77a2ac37d3f98b826437b941052a55c01c721b4 SHA512 40450d4e80017ac62d60ea6de231c10496fec1680f15a14006d3b87aae7f34cb2dbb6b810ced89527a4cba2975dcd6c037217e86fa806a0ba3cd39dc7dee8f04 WHIRLPOOL 29c6613befff82e883b9dcdf04f789338992d79a5cd6dcee46b19c21e80bd61b6de89567794d60c42696a4e7ed599e3606dfa9460558432a10169a2201a4e937
+DIST ranger-1.9.0_beta5.tar.gz 235886 SHA256 d7319511f9014fc2949d563e895a7314d1da0cc2ad2efa370c28a90710345d8f SHA512 728efd93630e9c8bba67f7d567200a0cb21d19d8d1b5dc4ec63a454b1169de9427c1b0477754eea1ce5b0d0ed8e79d964b4804587152e30205c1e5a73f938e0a WHIRLPOOL c753631a6ea689ebb64ee20e64017b026ad975855d843d0e6d80ddec64837edadc5ee3a80feeab4fee0cd32c22da7e5beedf0b125b3dd8d65c79d1ccc7f28abb
diff --git a/app-misc/ranger/ranger-1.9.0_beta5.ebuild b/app-misc/ranger/ranger-1.9.0_beta5.ebuild
new file mode 100644
index 000000000000..adb43f4ea259
--- /dev/null
+++ b/app-misc/ranger/ranger-1.9.0_beta5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 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
+
+MY_PV=${PV/_beta/b}
+MY_P=${PN}-${MY_PV}
+
+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="http://ranger.nongnu.org/"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="virtual/pager"
+DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+S=${WORKDIR}/${MY_P}
+
+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 || 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 142a220a0369..ac8d37af176d 100644
--- a/app-misc/ranger/ranger-9999.ebuild
+++ b/app-misc/ranger/ranger-9999.ebuild
@@ -19,8 +19,10 @@ DESCRIPTION="A vim-inspired file manager for the console"
HOMEPAGE="http://ranger.nongnu.org/"
LICENSE="GPL-3"
SLOT="0"
+IUSE="test"
RDEPEND="virtual/pager"
+DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
src_prepare() {
# use versioned doc path
@@ -29,6 +31,10 @@ src_prepare() {
distutils-r1_src_prepare
}
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+}
+
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
elog "Ranger has many optional dependencies to support enhanced file previews."