diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-24 23:50:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-24 23:50:34 +0000 |
commit | a17de15cd118e24e2351c7cfd3d01da213551490 (patch) | |
tree | 25cd8f52aeff6ed9b99e306fe95950532b3c6732 /sys-apps/less | |
parent | stable on ia64 (diff) | |
download | historical-a17de15cd118e24e2351c7cfd3d01da213551490.tar.gz historical-a17de15cd118e24e2351c7cfd3d01da213551490.tar.bz2 historical-a17de15cd118e24e2351c7cfd3d01da213551490.zip |
Add support for more filetypes and colorize support #46587 by José Romildo Malaquias.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'sys-apps/less')
-rw-r--r-- | sys-apps/less/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/less/Manifest | 13 | ||||
-rw-r--r-- | sys-apps/less/files/code2color.patch | 10 | ||||
-rw-r--r-- | sys-apps/less/files/digest-less-385_p4-r1 | 3 | ||||
-rw-r--r-- | sys-apps/less/less-385_p4-r1.ebuild | 47 |
5 files changed, 76 insertions, 6 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/Manifest b/sys-apps/less/Manifest index 13b0f37fd4b5..37f3a2555b3c 100644 --- a/sys-apps/less/Manifest +++ b/sys-apps/less/Manifest @@ -3,17 +3,20 @@ Hash: SHA1 MD5 adb0b1124c355f33197454d2be87bfd3 less-382-r2.ebuild 791 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 efac081790d9ee84f111c7b864468925 less-385_p4.ebuild 1155 +MD5 af98f836f9e4cd4e5cec2c0889737743 less-385_p4.ebuild 1155 MD5 147e4c10285042fad83d0c3592498e8c less-385.ebuild 800 -MD5 f7b5efd4e9960e9c06ea0ee233b7d2a8 ChangeLog 5362 +MD5 10e05b390b84a828024b29ae517a5b84 less-385_p4-r1.ebuild 1316 +MD5 082bdb67c7787d019d91b64583ec36e6 ChangeLog 5585 MD5 6f05cb473c8bd03fb8fb5ba7466aa804 files/digest-less-382-r2 60 +MD5 f5d6d65946fd9d3091b3d06bc3615492 files/digest-less-385_p4-r1 181 MD5 f1ac245b13bf5bc789b71bab79dc740d files/lesspipe.sh 3788 MD5 c9bb99cd4f916916f975c59d38c3d590 files/digest-less-385 60 +MD5 0f015b2ac33a3d039f77c6f15b768895 files/code2color.patch 221 MD5 07e2862dc300b691cba6dfb12426b732 files/digest-less-385_p4 126 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFDDQUHgIKl8Uu19MoRAh/ZAJ48aL2qlarDec1cZ/qdmU1YoB+XfwCfXlw8 -eR0xW8mnnkORGiHWX9euaq4= -=sojf +iD8DBQFDDQgAgIKl8Uu19MoRAhSbAJwI/J04AE+ecrrhEbp3OoQqNnvjewCeOkxN +FzQIvBl+KOKNBTznWXBTvvQ= +=7VRx -----END PGP SIGNATURE----- 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* +} |