aboutsummaryrefslogtreecommitdiff
path: root/japanese/less
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1995-03-20 12:48:03 +0000
committerSatoshi Asami <asami@FreeBSD.org>1995-03-20 12:48:03 +0000
commit4c1abff30fb7e39ce1f8caa3556bef9dac0c08ae (patch)
tree80c92ddd639f01822167bc91d838a346f3f34f4a /japanese/less
parent62407901509983fad591f9315b5468cd7b46822f (diff)
downloadports-4c1abff30fb7e39ce1f8caa3556bef9dac0c08ae.tar.gz
ports-4c1abff30fb7e39ce1f8caa3556bef9dac0c08ae.zip
Notes
Diffstat (limited to 'japanese/less')
-rw-r--r--japanese/less/Makefile47
-rw-r--r--japanese/less/distinfo1
-rw-r--r--japanese/less/files/patch-aa11
-rw-r--r--japanese/less/files/patch-ab43
-rw-r--r--japanese/less/pkg-comment1
-rw-r--r--japanese/less/pkg-descr8
-rw-r--r--japanese/less/pkg-plist6
7 files changed, 117 insertions, 0 deletions
diff --git a/japanese/less/Makefile b/japanese/less/Makefile
new file mode 100644
index 000000000000..54c68a4934dc
--- /dev/null
+++ b/japanese/less/Makefile
@@ -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>
diff --git a/japanese/less/distinfo b/japanese/less/distinfo
new file mode 100644
index 000000000000..f02b53cbba1c
--- /dev/null
+++ b/japanese/less/distinfo
@@ -0,0 +1 @@
+MD5 (less-237.tar.gz) = 87f1a7cee4a7e14714976771879ddb18
diff --git a/japanese/less/files/patch-aa b/japanese/less/files/patch-aa
new file mode 100644
index 000000000000..54a43e2a64fb
--- /dev/null
+++ b/japanese/less/files/patch-aa
@@ -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}
diff --git a/japanese/less/files/patch-ab b/japanese/less/files/patch-ab
new file mode 100644
index 000000000000..f6eaa7df7a3a
--- /dev/null
+++ b/japanese/less/files/patch-ab
@@ -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:
diff --git a/japanese/less/pkg-comment b/japanese/less/pkg-comment
new file mode 100644
index 000000000000..d5635b230f3a
--- /dev/null
+++ b/japanese/less/pkg-comment
@@ -0,0 +1 @@
+less 237 + zcat + ISO-2022 - a pager similar to more and pg
diff --git a/japanese/less/pkg-descr b/japanese/less/pkg-descr
new file mode 100644
index 000000000000..9bca35c960d8
--- /dev/null
+++ b/japanese/less/pkg-descr
@@ -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.
diff --git a/japanese/less/pkg-plist b/japanese/less/pkg-plist
new file mode 100644
index 000000000000..46c8dc54753c
--- /dev/null
+++ b/japanese/less/pkg-plist
@@ -0,0 +1,6 @@
+@cwd ${PREFIX}
+bin/jless
+bin/jlesskey
+lib/jless.hlp
+man/man1/jless.1.gz
+man/man1/jlesskey.1.gz