<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>vim</herd>
+ <use>
+ <flag name='nvimpager'>Install nvimpager symlink to less.sh macro</flag>
+ </use>
<upstream>
<remote-id type="github">neovim/neovim</remote-id>
</upstream>
LICENSE="Apache-2.0 vim"
SLOT="0"
-IUSE="perl python"
+IUSE="+nvimpager perl python"
CDEPEND="dev-lang/luajit:2
>=dev-libs/libtermkey-0.17
# add eclass to bash filetypes
sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
+ # make less.sh macro actually work with neovim
+ sed -e 's|vim |nvim |g' -i runtime/macros/less.sh || die
+
cmake-utils_src_prepare
}
src_install() {
cmake-utils_src_install
+
# install a default configuration file
insinto /etc/vim
doins "${FILESDIR}"/nvimrc
+
+ # conditionally install a symlink for nvimpager
+ if use nvimpager; then
+ dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
+ fi
}