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/vifm/vifm-0.3a.ebuild

44 lines
1.1 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/vifm/vifm-0.3a.ebuild,v 1.5 2010/01/01 18:17:30 ssuominen Exp $
DESCRIPTION="Console file manager with vi/vim-like keybindings"
HOMEPAGE="http://vifm.sourceforge.net/"
SRC_URI="mirror://sourceforge/vifm/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc s390 x86"
IUSE=""
DEPEND=">=sys-apps/sed-4.0"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s:(datadir)/@PACKAGE@:(datadir)/${P}:" \
Makefile.in
cd "${S}"/src
sed -i -e "s:(datadir)/@PACKAGE@:(datadir)/${P}:" \
Makefile.in
sed -i -e "s:/usr/local/share/vifm:/usr/share/${P}:g" \
config.c
}
src_install() {
einstall || die
dodoc AUTHORS TODO README
}
pkg_postinst() {
elog "To use vim to view the vifm help, copy /usr/share/${P}/vifm.txt"
elog "to ~/.vim/doc/ and run ':helptags ~/.vim/doc' in vim"
elog "Then edit ~/.vifm/vifmrc${PV/a/} and set USE_VIM_HELP=1"
elog ""
elog "To use the vifm plugin in vim, copy /usr/share/${P}/vifm.vim to"
elog "/usr/share/vim/vim62/"
}