1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Add UTF-8 support[*].

- Add LICENSE.
- Update pkg-descr.
- Use PORTDOCS for additional documents.

Submitted by:	nork [*]
PR:		ports/175431 [*]
This commit is contained in:
Hiroki Sato 2013-01-19 16:57:52 +00:00
parent bbd172b869
commit c0470cd468
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310655
7 changed files with 37 additions and 45 deletions

View File

@ -1,13 +1,9 @@
# New ports collection makefile for: jless
# Date created: 7 March 1995
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
#
# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# $FreeBSD$
#
PORTNAME= less+iso
PORTVERSION= 382.262
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
@ -22,31 +18,33 @@ PATCHFILES= ${DISTNAME}-iso258.patch.gz \
${DISTNAME}-iso258-259.patch.gz \
${DISTNAME}-iso259-260.patch.gz \
${DISTNAME}-iso260-261.patch.gz \
${DISTNAME}-iso261-${PORTVERSION:E}.patch.gz
${DISTNAME}-iso261-${PORTVERSION:E}.patch.gz \
${DISTNAME}-iso${PORTVERSION:E}.ext03.patch.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= ports@FreeBSD.org
COMMENT= Less + zcat + ISO-2022 - a pager similar to more and pg
MAINTAINER= hrs@FreeBSD.org
COMMENT= Less + zcat + ISO-2022 + UTF-8 - a pager similar to more and pg
LICENSE= GPLv2
MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cs-regex
MAN1= jless.1 jlesskey.1
DOCSDIR= ${PREFIX}/share/doc/less
READMES= README.iso README.regex README.iso.jp README.regex.jp
PORTDOCS= README.iso README.iso.jp README.lesw.euc \
README.regex README.regex.jp
post-patch:
(cd ${WRKSRC} ; \
${RM} -f COPYING; \
${GZCAT} ${DISTDIR}/regex_cs-lwp9k.shar.gz | ${SH}; \
${PATCH} < ${PATCHDIR}/regex_cs.c.patch )
${TOUCH} ${WRKSRC}/configure
post-extract:
cd ${WRKDIR} && \
${GZCAT} ${DISTDIR}/regex_cs-lwp9k.shar.gz | ${SH} && \
${MV} regex_cs.[ch] README.regex README.regex.jp \
README.lesw.euc ${WRKSRC}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}; ${INSTALL_DATA} ${READMES} ${DOCSDIR})
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>

View File

@ -12,3 +12,5 @@ SHA256 (less-382-iso260-261.patch.gz) = b595378ae65a5a7256df3b6279d755d6fdce66ab
SIZE (less-382-iso260-261.patch.gz) = 841
SHA256 (less-382-iso261-262.patch.gz) = e7249de419acc3b8c4a11bed376d778711fd031887d0df0624d62a6d07356842
SIZE (less-382-iso261-262.patch.gz) = 2215
SHA256 (less-382-iso262.ext03.patch.gz) = 82fb77f21ea1f3281224fcbfad073aeab12fb40d6623c9b40698be952401f821
SIZE (less-382-iso262.ext03.patch.gz) = 138951

View File

@ -4,5 +4,5 @@
This modification make regex_cs-lwp9k be able to compile.
*/
-char version[] = "382+iso262";
+char version[] = "382+iso262+regex_cs-lwp9k";
-char version[] = "382+iso262+ext3";
+char version[] = "382+iso262+ext3+regex_cs-lwp9k";

View File

@ -1,15 +1,9 @@
--- filename.c.orig 2010-05-10 23:08:16.800855000 +0900
+++ filename.c 2010-05-10 23:10:53.231134025 +0900
@@ -802,9 +802,15 @@
else if (strcmp(".gz", &filename[length - 3]) == 0 ||
strcmp(".GZ", &filename[length - 3]) == 0)
return ("| gzip -cd %s");
+ else if (strcmp(".xz", &filename[length - 3]) == 0 ||
+ strcmp(".XZ", &filename[length - 3]) == 0)
+ return ("| xz -cd %s");
else if (strcmp(".bz2", &filename[length - 4]) == 0 ||
strcmp(".BZ2", &filename[length - 4]) == 0)
return ("| bzip2 -cd %s");
+++ filename.c 2013-01-19 08:38:15.691025968 +0900
@@ -817,6 +817,9 @@
else if (strcmp(".xz", &filename[length - 3]) == 0 ||
strcmp(".XZ", &filename[length - 3]) == 0)
return ("| xz -cd %s");
+ else if (strcmp(".lzma", &filename[length - 5]) == 0 ||
+ strcmp(".LZMA", &filename[length - 5]) == 0)
+ return ("| lzma -cd %s");

View File

@ -1,11 +1,13 @@
Less is a program similar to more (1), but which allows
backward movement in the file as well as forward movement.
Also, less does not have to read the entire input file
before starting, so with large input files it starts up
faster than text editors like vi (1).
Less is a program similar to more(1), but which allows backward
movement in the file as well as forward movement. Also, less does not
have to read the entire input file before starting, so with large
input files it starts up faster than text editors like vi(1).
This enhanced less support ISO 2022 code extension techniqes and
This enhanced less support ISO 2022 code extension techniqes and
Japanese codes(EUC Japanese, SJIS) and compressed(or gzipped) file
viewing. The author of this patch is jam@pobox.com. See
WWW: http://www25.big.jp/~jam/less/
for the latest info.
viewing. The author of the patch is jam@pobox.com, and the UTF-8
support patch is written by bogytech.
WWW: http://www25.big.jp/~jam/less/ (broken link)
WWW: http://web.archive.org/web/20070220213232/http://www25.big.or.jp/~jam/less
WWW: http://bogytech.blogspot.jp/search/label/jless

View File

@ -1,8 +1,4 @@
@comment $FreeBSD$
bin/jless
bin/jlesskey
bin/jlessecho
%%PORTDOCS%%%%DOCSDIR%%/README.iso
%%PORTDOCS%%%%DOCSDIR%%/README.iso.jp
%%PORTDOCS%%%%DOCSDIR%%/README.regex
%%PORTDOCS%%%%DOCSDIR%%/README.regex.jp
%%PORTDOCS%%@dirrm %%DOCSDIR%%