diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2006-09-20 19:59:11 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2006-09-20 19:59:11 +0000 |
commit | dee17a6c3ea22ebc4e7c7b671c994046dd715065 (patch) | |
tree | fa696e099e4bcf1c712b972e46e6a4c93a3584c8 /app-editors | |
parent | Mask nptl for glibc older than 2.4 (diff) | |
download | gentoo-2-dee17a6c3ea22ebc4e7c7b671c994046dd715065.tar.gz gentoo-2-dee17a6c3ea22ebc4e7c7b671c994046dd715065.tar.bz2 gentoo-2-dee17a6c3ea22ebc4e7c7b671c994046dd715065.zip |
Add eselect-vi support
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/nvi/ChangeLog | 7 | ||||
-rw-r--r-- | app-editors/nvi/files/digest-nvi-1.81.5-r4 | 3 | ||||
-rw-r--r-- | app-editors/nvi/nvi-1.81.5-r4.ebuild | 59 |
3 files changed, 68 insertions, 1 deletions
diff --git a/app-editors/nvi/ChangeLog b/app-editors/nvi/ChangeLog index d8b760053d84..26d254533315 100644 --- a/app-editors/nvi/ChangeLog +++ b/app-editors/nvi/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-editors/nvi # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.29 2006/09/19 13:13:15 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.30 2006/09/20 19:59:11 truedfx Exp $ + +*nvi-1.81.5-r4 (20 Sep 2006) + + 20 Sep 2006; Harald van Dijk <truedfx@gentoo.org> +nvi-1.81.5-r4.ebuild: + Add support for eselect-vi 19 Sep 2006; Gustavo Zacarias <gustavoz@gentoo.org> nvi-1.81.5-r3.ebuild: Stable on sparc wrt #147844 diff --git a/app-editors/nvi/files/digest-nvi-1.81.5-r4 b/app-editors/nvi/files/digest-nvi-1.81.5-r4 new file mode 100644 index 000000000000..ebc8a212032c --- /dev/null +++ b/app-editors/nvi/files/digest-nvi-1.81.5-r4 @@ -0,0 +1,3 @@ +MD5 5cc674f049054f3e8f7600df8d8d5cf4 nvi-1.81.5.tar.gz 1628555 +RMD160 d1cfd4a87250baea4832ed6cac69ed18e6880915 nvi-1.81.5.tar.gz 1628555 +SHA256 4c6b5c13999d8883da85e49e6dc2d02dddc084ac24fc72102cc372c5a0b7e745 nvi-1.81.5.tar.gz 1628555 diff --git a/app-editors/nvi/nvi-1.81.5-r4.ebuild b/app-editors/nvi/nvi-1.81.5-r4.ebuild new file mode 100644 index 000000000000..e3fbcf0c1029 --- /dev/null +++ b/app-editors/nvi/nvi-1.81.5-r4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.5-r4.ebuild,v 1.1 2006/09/20 19:59:11 truedfx Exp $ + +inherit eutils + +DESCRIPTION="Vi clone" +HOMEPAGE="http://www.bostic.com/vi/" +SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.gz" + +LICENSE="Sleepycat" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~hppa ~amd64 ~ppc64" +IUSE="perl unicode" + +DEPEND="=sys-libs/db-4*" +RDEPEND="${DEPEND} + app-admin/eselect-vi" +PROVIDE="virtual/editor" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch + # Fix bug 23888 + epatch "${FILESDIR}"/${P}-tcsetattr.patch + epatch "${FILESDIR}"/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-db4.patch + touch "${S}"/dist/{configure,aclocal.m4,Makefile.in,stamp-h.in} +} + +src_compile() { + local myconf + + use perl && myconf="${myconf} --enable-perlinterp" + use unicode && myconf="${myconf} --enable-widechar" + + cd build.unix + ECONF_SOURCE=../dist econf \ + --program-prefix=n \ + ${myconf} \ + || die "configure failed" + emake || die "make failed" +} + +src_install() { + cd build.unix + emake DESTDIR="${D}" install || die "install failed" +} + +pkg_postinst() { + einfo "Setting /usr/bin/vi symlink" + eselect vi set "${PN}" +} + +pkg_postrm() { + einfo "Updating /usr/bin/vi symlink" + eselect vi update +} |