mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
less-237 with patches to understand Japanese. It will install itself
with prefix "j" so as not to tramp on the regular less. Submitted by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
This commit is contained in:
parent
6240790150
commit
4c1abff30f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1166
47
japanese/less/Makefile
Normal file
47
japanese/less/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# New ports collection makefile for: jless
|
||||
# Version required: 237
|
||||
# Date created: 7 March 1995
|
||||
# Whom: Nobuhiro Yasutomi
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
DISTNAME= jless-237
|
||||
DISTFILES= less-237.tar.gz
|
||||
MASTER_SITES= ftp://ftp.aist-nara.ac.jp/pub/misc/less/
|
||||
HAS_CONFIGURE= yes
|
||||
WRKSRC= ${WRKDIR}/less-237
|
||||
PATCHFILES= less-237-iso2022-patch2.gz less-237-iso2022-patch2.p1.gz
|
||||
.if !defined(MASTER_SITE_OVERRIDE)
|
||||
PATCHSITE= ftp://ftp.aist-nara.ac.jp/pub/misc/less/
|
||||
.else
|
||||
PATCHSITE= ${MASTER_SITE_OVERRIDE}
|
||||
.endif
|
||||
PREPATCH_COOKIE= ${.CURDIR}/work/.prepatch_done
|
||||
PREBUILD_COOKIE= ${.CURDIR}/work/.prebuild_done
|
||||
|
||||
pre-fetch:
|
||||
@if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi
|
||||
@(cd ${DISTDIR}; \
|
||||
for file in ${PATCHFILES}; do \
|
||||
if [ ! -f $$file ]; then \
|
||||
echo ">> Fetching patch $$file from remote site..."; \
|
||||
${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}$$file; \
|
||||
fi \
|
||||
done)
|
||||
|
||||
pre-patch: ${PREPATCH_COOKIE}
|
||||
|
||||
${PREPATCH_COOKIE}:
|
||||
@echo "===> Applying ISO-2022 support patch"
|
||||
@for file in ${PATCHFILES}; do \
|
||||
gzip -c -d ${DISTDIR}/$$file | patch -d ${WRKSRC} -p1 -s; \
|
||||
done
|
||||
@${TOUCH} ${TOUCH_FLAGS} ${PREPATCH_COOKIE}
|
||||
|
||||
pre-build: ${PREBUILD_COOKIE}
|
||||
|
||||
${PREBUILD_COOKIE}:
|
||||
find ${WRKSRC} -name \*.orig -exec /bin/rm -f \{} \;
|
||||
@${TOUCH} ${TOUCH_FLAGS} ${PREBUILD_COOKIE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
japanese/less/distinfo
Normal file
1
japanese/less/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (less-237.tar.gz) = 87f1a7cee4a7e14714976771879ddb18
|
11
japanese/less/files/patch-aa
Normal file
11
japanese/less/files/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in-orig Mon Mar 6 21:42:56 1995
|
||||
+++ Makefile.in Tue Mar 7 13:52:56 1995
|
||||
@@ -78,6 +78,8 @@
|
||||
${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp
|
||||
${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
|
||||
${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
|
||||
+ rm -f ${mandir}/${manprefix}less.${manext}.gz ${mandir}/${manprefix}lesskey.${manext}.gz
|
||||
+ gzip ${mandir}/${manprefix}less.${manext} ${mandir}/${manprefix}lesskey.${manext}
|
||||
|
||||
installdirs: mkinstalldirs
|
||||
${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir}
|
43
japanese/less/files/patch-ab
Normal file
43
japanese/less/files/patch-ab
Normal file
@ -0,0 +1,43 @@
|
||||
--- Makefile.in.orig Tue Mar 7 00:08:23 1995
|
||||
+++ Makefile.in Tue Mar 7 00:07:44 1995
|
||||
@@ -22,14 +22,14 @@
|
||||
|
||||
# Where the installed binary goes.
|
||||
bindir = $(exec_prefix)/bin
|
||||
-binprefix =
|
||||
+binprefix = j
|
||||
|
||||
# Where the help file goes.
|
||||
datadir = $(prefix)/lib
|
||||
|
||||
mandir = $(prefix)/man/man$(manext)
|
||||
manext = 1
|
||||
-manprefix =
|
||||
+manprefix = j
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
@@ -70,12 +70,12 @@
|
||||
$(OBJ): less.h defines.h funcs.h
|
||||
|
||||
filename.$(O): filename.c
|
||||
- ${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
|
||||
+ ${CC} -c -DHELPFILE=\"${datadir}/jless.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
|
||||
|
||||
install: all less.hlp less.nro installdirs
|
||||
${INSTALL_PROGRAM} less ${bindir}/${binprefix}less
|
||||
${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey
|
||||
- ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp
|
||||
+ ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/jless.hlp
|
||||
${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
|
||||
${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
|
||||
rm -f ${mandir}/${manprefix}less.${manext}.gz ${mandir}/${manprefix}lesskey.${manext}.gz
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
uninstall:
|
||||
rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey
|
||||
- rm -f ${datadir}/less.hlp
|
||||
+ rm -f ${datadir}/jless.hlp
|
||||
rm -f ${mandir}/less.${manext} ${mandir}/lesskey.${manext}
|
||||
|
||||
info:
|
1
japanese/less/pkg-comment
Normal file
1
japanese/less/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
less 237 + zcat + ISO-2022 - a pager similar to more and pg
|
8
japanese/less/pkg-descr
Normal file
8
japanese/less/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
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 is support ISO 2022, EUC Japanese, SJIS and compressed(gziped)
|
||||
file viewing. This patch to make by kazusi-m@is.aist-nara.ac.jp.
|
6
japanese/less/pkg-plist
Normal file
6
japanese/less/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
@cwd ${PREFIX}
|
||||
bin/jless
|
||||
bin/jlesskey
|
||||
lib/jless.hlp
|
||||
man/man1/jless.1.gz
|
||||
man/man1/jlesskey.1.gz
|
Loading…
Reference in New Issue
Block a user