summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2003-08-20 15:13:54 +0000
committerAron Griffis <agriffis@gentoo.org>2003-08-20 15:13:54 +0000
commita4b4f7638252d816d60bb9989b3afc2bc526284b (patch)
tree1b6724dd2c882671e677123656ff04f622d2219f /eclass
parentnew prerelease version (diff)
downloadhistorical-a4b4f7638252d816d60bb9989b3afc2bc526284b.tar.gz
historical-a4b4f7638252d816d60bb9989b3afc2bc526284b.tar.bz2
historical-a4b4f7638252d816d60bb9989b3afc2bc526284b.zip
add USE=minimal support to vim.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index c60745b1a071..1d8c11e012bf 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.35 2003/07/30 18:47:06 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.36 2003/08/20 15:13:54 agriffis Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -29,7 +29,7 @@ if [ ${PN} != vim-core ]; then
fi
if [ ${PN} = vim ]; then
- IUSE="$IUSE vim-with-x"
+ IUSE="$IUSE vim-with-x minimal"
newdepend "vim-with-x? ( virtual/x11 )"
elif [ ${PN} = gvim ]; then
IUSE="$IUSE gnome gtk gtk2 motif"
@@ -145,7 +145,7 @@ src_compile() {
addwrite $file
done
- if [ ${PN} = vim-core ]; then
+ if [ ${PN} = vim-core ] || ( [ ${PN} = vim ] && use minimal ); then
myconf="--with-features=tiny \
--enable-gui=no \
--without-x \
@@ -188,7 +188,11 @@ src_compile() {
fi
fi
- myconf="${myconf} `use_enable nls`"
+ if [ ${PN} = vim ] && use minimal; then
+ myconf="${myconf} --disable-nls --disable-multibyte"
+ else
+ myconf="${myconf} `use_enable nls`"
+ fi
# Note: If USE=gpm, then ncurses will still be required
use ncurses \