# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit toolchain-funcs git-2 DESCRIPTION="Qt GUI version of the Vim text editor" HOMEPAGE="https://bitbucket.org/equalsraf/vim-qt/overview" EGIT_REPO_URI="git://gitorious.org/vim-qt/vim-qt.git https://gitorious.org/vim-qt/vim-qt.git" LICENSE="vim" SLOT="0" KEYWORDS="" IUSE="nls acl cscope debug gpm perl python ruby" DEPEND=" =app-editors/vim-core-7.3.487 >=app-admin/eselect-vi-1.1 >=sys-apps/sed-4 sys-devel/autoconf >=sys-libs/ncurses-5.2-r2 gpm? ( >=sys-libs/gpm-1.19.3 ) nls? ( virtual/libintl ) cscope? ( dev-util/cscope ) perl? ( dev-lang/perl ) acl? ( kernel_linux? ( sys-apps/acl ) ) ruby? ( =dev-lang/ruby-1.8* ) !=x11-libs/qt-core-4.7.0:4 >=x11-libs/qt-gui-4.7.0:4" RDEPEND="" src_configure() { local myconf use debug && append-flags "-DDEBUG" myconf="--with-features=huge --enable-multibyte" myconf+=" $(use_enable gpm)" myconf+=" $(use_enable perl perlinterp)" myconf+=" $(use_enable python pythoninterp)" myconf+=" $(use_enable ruby rubyinterp)" myconf+=" $(use_enable nls)" myconf+=" $(use_enable acl)" myconf+=" --enable-gui=qt --with-vim-name=qvim --with-x" if ! use cscope ; then sed -i -e '/# define FEAT_CSCOPE/d' src/feature.h || \ die "couldn't disable cscope" fi econf ${myconf} } src_install() { dobin src/qvim }