summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/less/ChangeLog7
-rw-r--r--sys-apps/less/files/digest-less-4096
-rw-r--r--sys-apps/less/less-409.ebuild43
3 files changed, 55 insertions, 1 deletions
diff --git a/sys-apps/less/ChangeLog b/sys-apps/less/ChangeLog
index 8378c27cb0a1..ecb64152583e 100644
--- a/sys-apps/less/ChangeLog
+++ b/sys-apps/less/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/less
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.73 2007/10/06 14:30:58 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.74 2007/10/12 21:16:39 vapier Exp $
+
+*less-409 (12 Oct 2007)
+
+ 12 Oct 2007; Mike Frysinger <vapier@gentoo.org> +less-409.ebuild:
+ Version bump.
*less-408 (06 Oct 2007)
diff --git a/sys-apps/less/files/digest-less-409 b/sys-apps/less/files/digest-less-409
new file mode 100644
index 000000000000..16d38972849d
--- /dev/null
+++ b/sys-apps/less/files/digest-less-409
@@ -0,0 +1,6 @@
+MD5 da9d228944dae497d3b92f236bcf7226 code2color 199875
+RMD160 378d340a20c3fe500f19116220d54816fe279225 code2color 199875
+SHA256 ce63f148293a81b0fe5e072f33285f9bf4f1d832f64b23a2220519674a47091d code2color 199875
+MD5 32f4e9d9b86b2a16be85057f588bd965 less-409.tar.gz 292013
+RMD160 67d13fef7435a298f48f03d10bbc249642ad17ad less-409.tar.gz 292013
+SHA256 5cf724149ecd484a084d8c8322a6c3108cebe576d7018accf6ee7bd6f3f5142f less-409.tar.gz 292013
diff --git a/sys-apps/less/less-409.ebuild b/sys-apps/less/less-409.ebuild
new file mode 100644
index 000000000000..bbc4891ec0c6
--- /dev/null
+++ b/sys-apps/less/less-409.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/less-409.ebuild,v 1.1 2007/10/12 21:16:39 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="Excellent text file viewer"
+HOMEPAGE="http://www.greenwoodsoftware.com/less/"
+SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz
+ http://www-zeuthen.desy.de/~friebel/unix/less/code2color"
+
+LICENSE="|| ( GPL-2 less )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="unicode"
+
+DEPEND=">=sys-libs/ncurses-5.2"
+PROVIDE="virtual/pager"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"
+ cp "${DISTDIR}"/code2color "${S}"/
+ epatch "${FILESDIR}"/code2color.patch
+}
+
+yesno() { use $1 && echo yes || echo no ; }
+src_compile() {
+ export ac_cv_lib_ncursesw_initscr=$(yesno unicode)
+ export ac_cv_lib_ncurses_initscr=$(yesno !unicode)
+ econf || die
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+
+ dobin code2color || die "dobin"
+ newbin "${FILESDIR}"/lesspipe.sh lesspipe.sh || die "newbin"
+ newenvd "${FILESDIR}"/less.envd 70less
+
+ dodoc NEWS README* "${FILESDIR}"/README.Gentoo
+}