summaryrefslogtreecommitdiff
blob: 56e5b6fbdb99c82bc827b5414fcdc11b8aea0f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 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-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* )
   	!<app-vim/align-30-r1
   	!<app-vim/vimbuddy-0.9.1-r1
   	!<app-vim/autoalign-11
   	!<app-vim/supertab-0.41
	>=x11-libs/qt-core-4.7.0:4
	>=x11-libs/qt-gui-4.7.0:4"
RDEPEND="${DEPEND}"

src_configure() {
	local myconf

	use debug && append-flags "-DDEBUG"

	myconf="--with-features=huge \
		--enable-multibyte"                          
   	myconf="${myconf} `use_enable gpm`"
   	myconf="${myconf} `use_enable perl perlinterp`"
   	myconf="${myconf} `use_enable python pythoninterp`"
  	myconf="${myconf} `use_enable ruby rubyinterp`"                     
   	myconf="${myconf} `use_enable nls`"
	myconf="${myconf} `use_enable acl`"
    myconf="${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} || die "vim-qt configure failed"
}

src_install() {
	dobin src/qvim
}