Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/less: ChangeLog less-441.ebuild
Date: Mon, 28 Feb 2011 19:15:02
Message-Id: 20110228191452.CA17320054@flycatcher.gentoo.org
1 vapier 11/02/28 19:14:52
2
3 Modified: ChangeLog
4 Added: less-441.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.121 sys-apps/less/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/ChangeLog?rev=1.121&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/ChangeLog?rev=1.121&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/ChangeLog?r1=1.120&r2=1.121
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v
20 retrieving revision 1.120
21 retrieving revision 1.121
22 diff -u -r1.120 -r1.121
23 --- ChangeLog 6 Jan 2011 01:04:46 -0000 1.120
24 +++ ChangeLog 28 Feb 2011 19:14:52 -0000 1.121
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/less
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.120 2011/01/06 01:04:46 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.121 2011/02/28 19:14:52 vapier Exp $
30 +
31 +*less-441 (28 Feb 2011)
32 +
33 + 28 Feb 2011; Mike Frysinger <vapier@g.o> +less-441.ebuild:
34 + Version bump.
35
36 *less-440 (06 Jan 2011)
37
38
39
40
41 1.1 sys-apps/less/less-441.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/less-441.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/less-441.ebuild?rev=1.1&content-type=text/plain
45
46 Index: less-441.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/less/less-441.ebuild,v 1.1 2011/02/28 19:14:52 vapier Exp $
51
52 inherit eutils
53
54 DESCRIPTION="Excellent text file viewer"
55 HOMEPAGE="http://www.greenwoodsoftware.com/less/"
56 SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz
57 http://www-zeuthen.desy.de/~friebel/unix/less/code2color"
58
59 LICENSE="|| ( GPL-3 BSD-2 )"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
62 IUSE="unicode"
63
64 DEPEND=">=sys-libs/ncurses-5.2"
65
66 src_unpack() {
67 unpack ${P}.tar.gz
68 cd "${S}"
69 cp "${DISTDIR}"/code2color "${S}"/
70 epatch "${FILESDIR}"/code2color.patch
71 }
72
73 yesno() { use $1 && echo yes || echo no ; }
74 src_compile() {
75 export ac_cv_lib_ncursesw_initscr=$(yesno unicode)
76 export ac_cv_lib_ncurses_initscr=$(yesno !unicode)
77 econf || die
78 emake || die
79 }
80
81 src_install() {
82 emake install DESTDIR="${D}" || die
83
84 dobin code2color || die "dobin"
85 newbin "${FILESDIR}"/lesspipe.sh lesspipe || die "newbin"
86 dosym lesspipe /usr/bin/lesspipe.sh
87 newenvd "${FILESDIR}"/less.envd 70less
88
89 dodoc NEWS README* "${FILESDIR}"/README.Gentoo
90 }
91
92 pkg_postinst() {
93 einfo "lesspipe offers colorization options. Run 'lesspipe -h' for info."
94 }