diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /app-misc/ranger/ranger-1.9.3.ebuild | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'app-misc/ranger/ranger-1.9.3.ebuild')
-rw-r--r-- | app-misc/ranger/ranger-1.9.3.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/ranger/ranger-1.9.3.ebuild b/app-misc/ranger/ranger-1.9.3.ebuild new file mode 100644 index 000000000000..f517ea8d4453 --- /dev/null +++ b/app-misc/ranger/ranger-1.9.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} ) +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${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" + +RDEPEND="virtual/pager" + +distutils_enable_tests pytest + +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 +} + +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 +} |