Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 69852 | Differences between
and this patch

Collapse All | Expand All

(-)nvi-1.81.5-r2.ebuild (-1 / +14 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r2.ebuild,v 1.9 2005/01/01 13:32:43 eradicator Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r2.ebuild,v 1.9 2005/01/01 13:32:43 eradicator Exp $
4
4
5
inherit eutils
5
inherit eutils alternatives
6
6
7
DESCRIPTION="Vi clone"
7
DESCRIPTION="Vi clone"
8
HOMEPAGE="http://www.bostic.com/vi/"
8
HOMEPAGE="http://www.bostic.com/vi/"
Lines 36-41 Link Here
36
		--mandir=/usr/share/man \
36
		--mandir=/usr/share/man \
37
		--prefix=/usr \
37
		--prefix=/usr \
38
		--host=${CHOST} \
38
		--host=${CHOST} \
39
		--program-prefix=n \
39
		${myconf} || die "configure failed"
40
		${myconf} || die "configure failed"
40
	einfo "Doing make now"
41
	einfo "Doing make now"
41
	emake || die "emake failed"
42
	emake || die "emake failed"
Lines 45-47 Link Here
45
	cd ${S}/build.unix
46
	cd ${S}/build.unix
46
	einstall || die
47
	einstall || die
47
}
48
}
49
50
pkg_postinst() {
51
		alternatives_makesym /usr/bin/vi /usr/bin/vim /usr/bin/nvi
52
		alternatives_makesym /usr/bin/ex /usr/bin/vim /usr/bin/nex
53
		alternatives_makesym /usr/bin/view /usr/bin/vim /usr/bin/nview
54
}
55
56
pkg_postrm() {
57
		alternatives_makesym /usr/bin/vi /usr/bin/vim /usr/bin/nvi
58
		alternatives_makesym /usr/bin/ex /usr/bin/vim /usr/bin/nex
59
		alternatives_makesym /usr/bin/view /usr/bin/vim /usr/bin/nview
60
}

Return to bug 69852