Gentoo Archives: gentoo-commits

From: "Harald van Dijk (truedfx)" <truedfx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/nvi: ChangeLog nvi-1.81.6-r1.ebuild
Date: Sun, 05 Oct 2008 14:52:43
Message-Id: E1KmUyO-0002rW-LO@stork.gentoo.org
1 truedfx 08/10/05 14:52:40
2
3 Modified: ChangeLog
4 Added: nvi-1.81.6-r1.ebuild
5 Log:
6 Respect user CFLAGS (bug #239931 by Diego Pettenò)
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 x86_64)
8
9 Revision Changes Path
10 1.65 app-editors/nvi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nvi/ChangeLog?rev=1.65&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nvi/ChangeLog?rev=1.65&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nvi/ChangeLog?r1=1.64&r2=1.65
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v
19 retrieving revision 1.64
20 retrieving revision 1.65
21 diff -u -r1.64 -r1.65
22 --- ChangeLog 5 Jul 2008 04:24:06 -0000 1.64
23 +++ ChangeLog 5 Oct 2008 14:52:40 -0000 1.65
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-editors/nvi
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.64 2008/07/05 04:24:06 ricmm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/ChangeLog,v 1.65 2008/10/05 14:52:40 truedfx Exp $
29 +
30 +*nvi-1.81.6-r1 (05 Oct 2008)
31 +
32 + 05 Oct 2008; Harald van Dijk <truedfx@g.o> +nvi-1.81.6-r1.ebuild:
33 + Respect user CFLAGS (bug #239931 by Diego Pettenò)
34
35 05 Jul 2008; <ricmm@g.o> nvi-1.81.5-r3.ebuild,
36 nvi-1.81.5-r6.ebuild:
37
38
39
40 1.1 app-editors/nvi/nvi-1.81.6-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nvi/nvi-1.81.6-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/nvi/nvi-1.81.6-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nvi-1.81.6-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-editors/nvi/nvi-1.81.6-r1.ebuild,v 1.1 2008/10/05 14:52:40 truedfx Exp $
50
51 DESCRIPTION="Vi clone"
52 HOMEPAGE="http://www.bostic.com/vi/"
53 SRC_URI="http://www.kotnet.org/~skimo/nvi/devel/${P}.tar.bz2"
54
55 LICENSE="Sleepycat"
56 SLOT="0"
57 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
58 IUSE="perl tcl unicode"
59
60 DEPEND="=sys-libs/db-4*
61 perl? ( dev-lang/perl )
62 tcl? ( !unicode? ( >=dev-lang/tcl-8.5 ) )"
63 RDEPEND="${DEPEND}
64 app-admin/eselect-vi"
65
66 S=${WORKDIR}/${P}/build.unix
67
68 pkg_setup() {
69 if use tcl && use unicode
70 then
71 ewarn "nvi does not support tcl+unicode. tcl support will not be included."
72 ewarn "If you need tcl support, please disable the unicode flag."
73 fi
74 }
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79 chmod +x ../dist/findconfig
80 }
81
82 src_compile() {
83 local myconf
84
85 use perl && myconf="${myconf} --enable-perlinterp"
86 use tcl && ! use unicode && myconf="${myconf} --enable-tclinterp"
87 use unicode && myconf="${myconf} --enable-widechar"
88
89 ECONF_SOURCE=../dist econf \
90 --program-prefix=n \
91 ${myconf} \
92 || die "configure failed"
93 emake OPTFLAG="${CFLAGS}" || die "make failed"
94 }
95
96 src_install() {
97 emake -j1 DESTDIR="${D}" install || die "install failed"
98 }
99
100 pkg_postinst() {
101 einfo "Setting /usr/bin/vi symlink"
102 eselect vi update --if-unset
103 }
104
105 pkg_postrm() {
106 einfo "Updating /usr/bin/vi symlink"
107 eselect vi update --if-unset
108 }