You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/ranger/ranger-1.6.1.ebuild

39 lines
1.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/ranger/ranger-1.6.1.ebuild,v 1.1 2013/05/30 08:24:27 radhermit Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )
PYTHON_REQ_USE="ncurses"
inherit distutils-r1
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.savannah.nongnu.org/ranger.git"
inherit git-2
else
SRC_URI="http://nongnu.org/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="A vim-inspired file manager for the console"
HOMEPAGE="http://ranger.nongnu.org/"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="virtual/pager"
PATCHES=( "${FILESDIR}"/${P}-w3mimgdisplay.patch )
src_prepare() {
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
}