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.
95 lines
1.8 KiB
95 lines
1.8 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
11 years ago
|
|
||
|
EAPI=5
|
||
10 years ago
|
|
||
9 years ago
|
inherit autotools vim-doc versionator
|
||
|
|
||
11 years ago
|
DESCRIPTION="Console file manager with vi(m)-like keybindings"
|
||
9 years ago
|
HOMEPAGE="http://vifm.info/"
|
||
8 years ago
|
SRC_URI="mirror://sourceforge/vifm/${PF}.tar.bz2"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="~amd64 ~ppc ~s390 ~x86"
|
||
11 years ago
|
IUSE="X developer +extended-keys gtk +magic vim vim-syntax"
|
||
|
|
||
|
DEPEND="
|
||
9 years ago
|
>=sys-libs/ncurses-5.9-r99:5
|
||
11 years ago
|
magic? ( sys-apps/file )
|
||
|
gtk? ( x11-libs/gtk+:2 )
|
||
|
X? ( x11-libs/libX11 )
|
||
|
"
|
||
|
RDEPEND="
|
||
|
${DEPEND}
|
||
|
vim? ( || ( app-editors/vim app-editors/gvim ) )
|
||
|
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
|
||
|
"
|
||
|
|
||
10 years ago
|
DOCS="AUTHORS FAQ NEWS README TODO"
|
||
|
|
||
|
src_prepare() {
|
||
|
eautoreconf
|
||
|
}
|
||
11 years ago
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable developer) \
|
||
|
$(use_enable extended-keys) \
|
||
|
$(use_with magic libmagic) \
|
||
|
$(use_with gtk) \
|
||
|
$(use_with X X11)
|
||
|
}
|
||
|
|
||
10 years ago
|
src_compile() {
|
||
|
default
|
||
|
}
|
||
|
|
||
11 years ago
|
src_install() {
|
||
10 years ago
|
einstall
|
||
|
dodoc ${DOCS}
|
||
11 years ago
|
|
||
|
if use vim; then
|
||
|
local t
|
||
10 years ago
|
for t in app plugin; do
|
||
11 years ago
|
insinto /usr/share/vim/vimfiles/"${t}"
|
||
10 years ago
|
doins "${S}"/data/vim/doc/"${t}"/"${PN}"*
|
||
11 years ago
|
done
|
||
|
fi
|
||
|
|
||
|
if use vim-syntax; then
|
||
|
local t
|
||
|
for t in ftdetect ftplugin syntax; do
|
||
|
insinto /usr/share/vim/vimfiles/"${t}"
|
||
|
doins "${S}"/data/vim/"${t}"/"${PN}".vim
|
||
|
done
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake check
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if use vim; then
|
||
|
update_vim_helptags
|
||
|
|
||
|
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||
|
elog
|
||
|
elog "You don't need to copy or link any files for"
|
||
|
elog " the vim plugin and documentation to work anymore."
|
||
|
elog "If you copied any vifm files to ~/.vim/ manually"
|
||
|
elog " in earlier vifm versions, please delete them."
|
||
|
fi
|
||
|
elog
|
||
|
elog "To use vim in vifm to view the documentation"
|
||
|
elog " edit ~/.vifm/vifmrc and set vimhelp instead of novimhelp"
|
||
|
elog
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
use vim && update_vim_helptags
|
||
|
}
|