summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2004-12-11 21:42:38 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2004-12-11 21:42:38 +0000
commitaa68131313f3d6a5df5b4818beea1f1585a00098 (patch)
tree093960d7884b2b3c8bb38fee971b6cf0d50e8e9d /eclass
parentAdded support for sparc64-multilib and updated sparc patch to what has been i... (diff)
downloadgentoo-2-aa68131313f3d6a5df5b4818beea1f1585a00098.tar.gz
gentoo-2-aa68131313f3d6a5df5b4818beea1f1585a00098.tar.bz2
gentoo-2-aa68131313f3d6a5df5b4818beea1f1585a00098.zip
add in vimpager
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index 55c4136ff998..7af53c07e7d9 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.81 2004/11/29 20:35:18 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.82 2004/12/11 21:42:38 ciaranm Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -74,7 +74,8 @@ else
# vim7 has some extra options. tcltk is working again, and mzscheme support
# has been added. netbeans now has its own USE flag, but it's only available
- # under gvim (*not* kvim).
+ # under gvim (*not* kvim). We can also install a vimpager (this is in vim6
+ # as well, but the ebuilds don't handle it).
if [[ $(get_major_version ) -ge 7 ]] ; then
if [[ "${MY_PN}" != "vim-core" ]] ; then
IUSE="${IUSE} tcltk mzscheme"
@@ -90,6 +91,9 @@ else
DEPEND="$DEPEND netbeans? ( dev-util/netbeans )"
RDEPEND="$RDEPEND netbeans? ( dev-util/netbeans )"
fi
+ if [[ "${MY_PN}" == "vim" ]] ; then
+ IUSE="$IUSE vim-pager"
+ fi
fi
fi
@@ -462,6 +466,11 @@ src_install() {
ln -s vim ${D}/usr/bin/view && \
ln -s vim ${D}/usr/bin/rview \
|| die "/usr/bin symlinks failed"
+ if [[ $(get_major_version ) -ge 7 ]] ; then
+ use vim-pager && \
+ ln -s /usr/share/vim/vim${VIM_VERSION//./}/macros/less.sh \
+ ${D}/usr/bin/vimpager
+ fi
fi
}