--- /usr/portage/app-editors/vim/vim-7.4.169.ebuild 2014-02-06 02:06:07.000000000 -0500 +++ vim-7.4.169-patched.ebuild 2014-03-07 13:55:50.354695775 -0500 @@ -31,6 +31,9 @@ luajit? ( lua ) " +# Add feature sets +IUSE="${IUSE} vim_features_tiny vim_features_small vim_features_normal vim_features_large vim_features_huge" + RDEPEND=" >=app-admin/eselect-vi-1.1 >=sys-libs/ncurses-5.2-r2 @@ -188,7 +191,25 @@ else use debug && append-flags "-DDEBUG" - myconf="--with-features=huge --enable-multibyte" + myconf="--enable-multibyte" + + # Set the vim feature set + if use vim_features_huge; then + vim_featureset="huge" + elif use vim_features_large; then + vim_featureset="large" + elif use vim_features_normal; then + vim_featureset="normal" + elif use vim_features_small; then + vim_featureset="small" + elif use vim_features_tiny; then + vim_featureset="tiny" + else + # Default to huge (conforming with original ebuild) + vim_featureset="huge" + fi + myconf+=" --with-features=${vim_featureset}" + myconf+=" $(use_enable acl)" myconf+=" $(use_enable cscope)" myconf+=" $(use_enable gpm)"