diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2003-03-15 01:06:46 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2003-03-15 01:06:46 +0000 |
commit | ab4dd47f6091c2bb2423997ac84a3e0a6d88ab3f (patch) | |
tree | 5692044dc58ea4bd0b3792bd36b84fcebe5aac68 /eclass | |
parent | added gtk2 support. fixes #15109 (diff) | |
download | gentoo-2-ab4dd47f6091c2bb2423997ac84a3e0a6d88ab3f.tar.gz gentoo-2-ab4dd47f6091c2bb2423997ac84a3e0a6d88ab3f.tar.bz2 gentoo-2-ab4dd47f6091c2bb2423997ac84a3e0a6d88ab3f.zip |
Added gtk2 support to eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/vim.eclass | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass index d5d177ef7aa2..910174aac65c 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.11 2003/03/15 00:44:01 seemant Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.12 2003/03/15 01:06:46 rphillips Exp $ # # Author Ryan Phillips <rphillips@gentoo.org> # Modified by: Seemant Kulleen <seemant@gentoo.org> @@ -138,9 +138,12 @@ src_compile() { # the configure script should autodetect X being installed, so # we'll specifically turn it off if X is not in the USE vars. # -rphillips - use X \ - && myconf="${myconf} --with-x" \ - || myconf="${myconf} --without-x" + if [ "${PN}" = "vim" ] + then + use X \ + && myconf="${myconf} --with-x" \ + || myconf="${myconf} --without-x" + fi fi # This should fix a sandbox violation. @@ -153,7 +156,9 @@ src_compile() { if [ "${PN}" = "gvim" ] then myconf="${myconf} --with-vim-name=gvim --with-x" - if use gnome; then + if use gtk2; then + myconf="${myconf} --enable-gui=gtk2 --enable-gtk2-check" + elif use gnome; then myconf="${myconf} --enable-gui=gnome" elif use gtk; then myconf="${myconf} --enable-gui=gtk" @@ -164,7 +169,6 @@ src_compile() { myconf="${myconf} --enable-gui=no" fi - econf ${myconf} || die "vim configure failed" |