summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-24 23:50:34 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-24 23:50:34 +0000
commit76b417b171e1d692c4236036d853fec3a7cb54df (patch)
tree6098ee0fe96d1110bb49be5fce9368322345be50 /sys-apps/less
parentfix HOMEPAGE for addon patch (diff)
downloadgentoo-2-76b417b171e1d692c4236036d853fec3a7cb54df.tar.gz
gentoo-2-76b417b171e1d692c4236036d853fec3a7cb54df.tar.bz2
gentoo-2-76b417b171e1d692c4236036d853fec3a7cb54df.zip
Add support for more filetypes and colorize support #46587 by José Romildo Malaquias.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/less')
-rw-r--r--sys-apps/less/ChangeLog9
-rw-r--r--sys-apps/less/files/code2color.patch10
-rw-r--r--sys-apps/less/files/digest-less-385_p4-r13
-rw-r--r--sys-apps/less/less-385_p4-r1.ebuild47
4 files changed, 68 insertions, 1 deletions
diff --git a/sys-apps/less/ChangeLog b/sys-apps/less/ChangeLog
index f5bfebde33ab..fd653cf67a1c 100644
--- a/sys-apps/less/ChangeLog
+++ b/sys-apps/less/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/less
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.41 2005/08/18 04:02:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/ChangeLog,v 1.42 2005/08/24 23:50:33 vapier Exp $
+
+*less-385_p4-r1 (24 Aug 2005)
+
+ 24 Aug 2005; Mike Frysinger <vapier@gentoo.org> +files/code2color.patch,
+ +less-385_p4-r1.ebuild:
+ Add support for more filetypes and colorize support #46587 by José Romildo
+ Malaquias.
18 Aug 2005; Mike Frysinger <vapier@gentoo.org> less-382-r2.ebuild,
less-385.ebuild, less-385_p4.ebuild:
diff --git a/sys-apps/less/files/code2color.patch b/sys-apps/less/files/code2color.patch
new file mode 100644
index 000000000000..d330623544bd
--- /dev/null
+++ b/sys-apps/less/files/code2color.patch
@@ -0,0 +1,10 @@
+--- code2color
++++ code2color
+@@ -446,7 +446,6 @@
+
+ $_[2] = $langmode;
+ $_[3] = $alt_langmode;
+- print "==> append : to filename to switch off syntax highlighting\n";
+ return \$code;
+ };
+
diff --git a/sys-apps/less/files/digest-less-385_p4-r1 b/sys-apps/less/files/digest-less-385_p4-r1
new file mode 100644
index 000000000000..0a9382dd7ac8
--- /dev/null
+++ b/sys-apps/less/files/digest-less-385_p4-r1
@@ -0,0 +1,3 @@
+MD5 2856987228fb140f95d60e311ef3d931 less-385.tar.gz 269752
+MD5 ea0d9670c1e293e2bb752f36f877e43f less-385-cl4.patch.bz2 24444
+MD5 da9d228944dae497d3b92f236bcf7226 code2color 199875
diff --git a/sys-apps/less/less-385_p4-r1.ebuild b/sys-apps/less/less-385_p4-r1.ebuild
new file mode 100644
index 000000000000..22998b97634f
--- /dev/null
+++ b/sys-apps/less/less-385_p4-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/less/less-385_p4-r1.ebuild,v 1.1 2005/08/24 23:50:33 vapier Exp $
+
+inherit eutils
+
+MY_PV=${PV/_p*}
+MY_P=${PN}-${MY_PV}
+PATCH_VER=${PV/_p/-cl}
+DESCRIPTION="Excellent text file viewer"
+HOMEPAGE="http://www.greenwoodsoftware.com/less/ https://gna.org/forum/forum.php?forum_id=715"
+SRC_URI="http://www.greenwoodsoftware.com/less/${MY_P}.tar.gz
+ http://download.gna.org/hpr/less/${MY_PV}/${PATCH_VER}/less-${PATCH_VER}.patch.bz2
+ http://www-zeuthen.desy.de/~friebel/unix/less/code2color"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2"
+PROVIDE="virtual/pager"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ cd "${S}"
+ epatch "${DISTDIR}"/less-${PATCH_VER}.patch.bz2
+ cp "${DISTDIR}"/code2color "${S}"/
+ epatch "${FILESDIR}"/code2color.patch
+}
+
+src_install() {
+ dobin less lessecho lesskey code2color || die "dobin"
+ newbin "${FILESDIR}"/lesspipe.sh lesspipe.sh || die "newbin"
+
+ # the -R is Needed for groff-1.18 and later ...
+ echo 'LESS="-R -M"' > 70less
+ doenvd 70less
+
+ for m in *.nro ; do
+ newman ${m} ${m/nro/1}
+ done
+
+ dodoc NEWS README*
+}