summaryrefslogtreecommitdiff
blob: 69b59e766651a745264215fbcb34913927429af1 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/kvim/kvim-6.2.14.ebuild,v 1.16 2005/01/01 13:29:55 eradicator Exp $

inherit kde eutils

DESCRIPTION="KDE editor based on vim"
HOMEPAGE="http://www.freehackers.org/${PN}"
SRC_URI="http://freenux.org/${PN}/${P//_}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="alpha x86 sparc ppc ~amd64"
IUSE="python gpm nls ruby perl cscope ncurses"

DEPEND=">=app-editors/vim-core-6.2
	>=sys-libs/ncurses-5.2-r2
	cscope? ( dev-util/cscope )
	gpm?    ( >=sys-libs/gpm-1.19.3 )
	perl?   ( dev-lang/perl )
	python? ( dev-lang/python )
	ruby?   ( dev-lang/ruby )"
need-kde 3

S="${WORKDIR}/${P//_}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/kvim-6.2.14-gcc2.patch
	# Resolve conflicting symbol "e_number" between vim and perl 5.8.2
	epatch ${FILESDIR}/kvim-6.2.14-perl582.patch
}

src_compile() {
	myconf="--with-features=huge \
		--enable-multibyte \
		--enable-gui=kde \
		--with-vim-name=kvim \
		--enable-kde-toolbar \
		--with-tlib=ncurses"
	myconf="${myconf} `use_enable cscope`"
	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`"

	# Let kde.eclass handle the configuration
	kde_src_compile myconf configure
	make || die  # emake does not work
}

src_install() {
	dodoc README.txt README_src.txt README_lang.txt README_unix.txt
	dobin src/kvim
	ln -s kvim ${D}/usr/bin/kvimdiff
}