summaryrefslogtreecommitdiff
blob: 4c8d50a4c05682a52ae2003d20ea3b13ba5e00cd (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/vile/vile-9.2z.ebuild,v 1.7 2003/08/02 16:56:23 todd Exp $

IUSE="perl"

S=${WORKDIR}/vile-9.2
DESCRIPTION="VI Like Emacs -- yet another full-featured vi clone"
SRC_URI="ftp://ftp.phred.org/pub/vile/vile-9.2.tgz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2a.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2b.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2c.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2d.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2e.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2f.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2g.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2h.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2i.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2j.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2k.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2l.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2m.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2n.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2o.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2p.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2q.patch.gz
	ftp://ftp.phred.org/pub/vile/patches/vile-9.2r.patch.gz
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2s.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2t.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2u.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2v.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2w.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2x.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2y.patch.gz 
        ftp://ftp.phred.org/pub/vile/patches/vile-9.2z.patch.gz" 

HOMEPAGE="http://www.clark.net/pub/dickey/vile/vile.html"

DEPEND="${RDEPEND}
	sys-devel/flex"

RDEPEND=">=sys-libs/ncurses-5.2
 	perl? ( dev-lang/perl )"

PROVIDE="virtual/editor"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc sparc"

src_unpack() {
	unpack vile-9.2.tgz

	cd ${S}
	local i
	for i in a b c d e f g h i j k l m n o p q r s t u v w x y z
	do
		gunzip -c ${DISTDIR}/vile-9.2$i.patch.gz | patch -p1
	done
}

src_compile() {
	local myconf
	use perl && myconf="--with-perl"

	./configure --prefix=/usr --host=${CHOST} \
		--mandir=/usr/share/man \
		--with-ncurses \
		$myconf || die

	emake || die
}

src_install () {
	make DESTDIR=${D} install || die
	dodoc CHANGES* COPYING MANIFEST INSTALL README* doc/*
}