summaryrefslogtreecommitdiff
blob: 3f3c4408bf7df10cf0b8454a539e2b7a171a49c8 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/vi/vi-3.7-r2.ebuild,v 1.1 2002/08/07 17:54:48 azarah Exp $

MY_P=ex-020403
S=${WORKDIR}/${MY_P}

DESCRIPTION="The original VI package"
SRC_URI="http://download.berlios.de/ex-vi/${MY_P}.tar.gz"
HOMEPAGE="http://ex-vi.berlios.de/"

LICENSE="Caldera"
SLOT="0"
KEYWORDS="x86 ppc"

DEPEND="virtual/glibc sys-libs/ncurses"
RDEPEND="${DEPEND}"

src_compile() {

	addpredict /dev/ptys/*

	make DESTDIR=/usr \
		TERMLIB=termlib \
		PRESERVEDIR=/var/preserve \
		|| die "failed compilation"
}

src_install() {
	dodir /var/preserve /usr/share/man
	make INSTALL=/usr/bin/install \
		DESTDIR=${D}/usr \
		MANDIR=/share/man \
		PRESERVEDIR=${D}/var/preserve \
		TERMLIB=termlib \
		install || die
	
	dodoc Changes LICENSE README TODO
}

pkg_postinst() {

	if [ "${ROOT}" = "/" ] && [ ! -f /etc/termcap ]
	then
		ewarn "*********************************************************"
		ewarn " vi needs /etc/termcap, so please install the latest    *"
		ewarn " baselaout (if 1.8.1 is released yet), or get it from:  *"
		ewarn "                                                        *"
		ewarn "   http://www.ibiblio.org/gentoo/distfiles/termcap.bz2  *"
		ewarn "                                                        *"
		ewarn " and install it in /etc with permissions 0644.          *"
		ewarn "*********************************************************"
	fi
}