aboutsummaryrefslogtreecommitdiff
path: root/japanese/plain2
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@FreeBSD.org>1997-08-12 15:36:39 +0000
committerJun-ichiro itojun Hagino <itojun@FreeBSD.org>1997-08-12 15:36:39 +0000
commite215763fe09e1fe5485b1717851a7e05adca0513 (patch)
tree46ef6cdf5ca65c9b12fa8688a9eb839a318473b1 /japanese/plain2
parentcac6889bd78d0f0358a61294c9e1869a67ba2e29 (diff)
downloadports-e215763fe09e1fe5485b1717851a7e05adca0513.tar.gz
ports-e215763fe09e1fe5485b1717851a7e05adca0513.zip
imported plain2 port. (japanese/plain2)
A text converter from plain to any format. PR: 4049 Reviewed by: itojun@itojun.org Submitted by: nkazushi@highway.or.jp
Notes
Notes: svn path=/head/; revision=7546
Diffstat (limited to 'japanese/plain2')
-rw-r--r--japanese/plain2/Makefile26
-rw-r--r--japanese/plain2/distinfo1
-rw-r--r--japanese/plain2/files/patch-aa39
-rw-r--r--japanese/plain2/files/patch-ab11
-rw-r--r--japanese/plain2/pkg-comment1
-rw-r--r--japanese/plain2/pkg-descr17
-rw-r--r--japanese/plain2/pkg-plist7
7 files changed, 102 insertions, 0 deletions
diff --git a/japanese/plain2/Makefile b/japanese/plain2/Makefile
new file mode 100644
index 000000000000..99ae03964e89
--- /dev/null
+++ b/japanese/plain2/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: plain2
+# Version required: 2.54
+# Date created: 20 April 1997
+# Whom: nkazushi@highway.or.jp
+#
+# $Id$
+#
+
+DISTNAME= plain2-2.54
+PKGNAME= jp-plain2-2.54
+CATEGORIES= textproc
+MASTER_SITES= ftp://ftp.nec.co.jp/pub/packages/plain2/
+
+MAINTAINER= nkazushi@highway.or.jp
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+ALL_TARGET= plain2
+
+# Some hint for incorporating unofficial HTML support patch.
+# Currently it is not supported.
+#PATCH_SITES= http://shika.aist-nara.ac.jp/products/DEST/plain2/
+#PATCHFILES= plain2-2.53-html.94aug14.patch.gz
+#RUN_DEPENDS+= tcsh:${PORTSDIR}/shells/tcsh
+#PATCH_DIST_STRIP= -p2 -F 3
+
+.include <bsd.port.mk>
diff --git a/japanese/plain2/distinfo b/japanese/plain2/distinfo
new file mode 100644
index 000000000000..6c7713a89506
--- /dev/null
+++ b/japanese/plain2/distinfo
@@ -0,0 +1 @@
+MD5 (plain2-2.54.tar.gz) = fac1118541ba8e439b72a3a38061c46c
diff --git a/japanese/plain2/files/patch-aa b/japanese/plain2/files/patch-aa
new file mode 100644
index 000000000000..a7e09379fea6
--- /dev/null
+++ b/japanese/plain2/files/patch-aa
@@ -0,0 +1,39 @@
+--- Makefile.orig Tue Apr 19 19:35:38 1994
++++ Makefile Wed Aug 13 00:20:49 1997
+@@ -5,8 +5,8 @@
+ # Makefile for plain2 1993 by A.Uchida
+ #
+ #
+-BINDIR=/usr/local/bin
+-LIBDIR=/usr/local/lib/plain2
++BINDIR=${PREFIX}/bin
++LIBDIR=${PREFIX}/lib/plain2
+
+ SHELL=/bin/sh
+
+@@ -15,8 +15,8 @@
+ #CC=gcc
+ #CFLAGS= -fwritable-strings ${DEFINES} -DBSD -DDEBUG
+
+-CC=cc
+-CFLAGS= -O ${DEFINES} -DBSD -DDEBUG
++CC=cc
++CFLAGS= -O ${DEFINES} -DBSD -DDEBUG -fwritable-strings
+ #CFLAGS= -g ${DEFINES} -DDEBUG
+
+ SRCS=plain2.c readfile.c analyze.c miscutil.c\
+@@ -46,8 +46,12 @@
+ etags ${SRCS}
+
+ install:
+- install -s plain2 ${BINDIR}
+- cp ../lib/*.p2 ${LIBDIR}
++ install -c -s -o bin -g bin -m 555 plain2 ${BINDIR}
++ [ -d ${LIBDIR} ] || mkdir ${LIBDIR}
++ install -c -o bin -g bin -m 444 ../lib/*.p2 ${LIBDIR}
++# hint for unofficial html patch
++# install -c -o bin -g bin -m 555 plain2html ${BINDIR}
++# install -c -o bin -g bin -m 444 pt2htcol.awk ${LIBDIR}
+
+ clean:
+ rm -f plain2 *.o asccvt x.c error.LINT
diff --git a/japanese/plain2/files/patch-ab b/japanese/plain2/files/patch-ab
new file mode 100644
index 000000000000..e69fa0a766a8
--- /dev/null
+++ b/japanese/plain2/files/patch-ab
@@ -0,0 +1,11 @@
+--- headfoot.c- Tue Apr 19 19:16:22 1994
++++ headfoot.c Sun Apr 20 18:52:25 1997
+@@ -290,7 +290,7 @@
+ {
+ char left[HF_MAXLEN];
+ char right[HF_MAXLEN];
+- char ret[64];
++ static char ret[64];
+ if (build(pat1, pat2, left, right)) {
+ (void)strcpy(ret, codeCvt(textQuote(left, roffTransQ)));
+ (void)strcat(ret, "\\\\\\\\nP");
diff --git a/japanese/plain2/pkg-comment b/japanese/plain2/pkg-comment
new file mode 100644
index 000000000000..7020232532cf
--- /dev/null
+++ b/japanese/plain2/pkg-comment
@@ -0,0 +1 @@
+A text converter from plain to any format.
diff --git a/japanese/plain2/pkg-descr b/japanese/plain2/pkg-descr
new file mode 100644
index 000000000000..7df050a3d5fa
--- /dev/null
+++ b/japanese/plain2/pkg-descr
@@ -0,0 +1,17 @@
+plain2 r2.54 1994/04 by A.Uchida NEC Corporation
+
+usage: plain2 [options] [files ...]
+ ---- parser options ---- ---- output options ----(default)
+-table=dd: table factor [0-100](def=50) -roff: troff output
+-exam=dd: example factor[0-100](def=50) -ms/-mm: troff macro (mm)
+-indsec: sections can be indented -tex: tex output
+-ktable:enable JIS keisen table -tstyle=ss:tex style
+-ref: figure/picture reference -renum: renumbering only
+ -[no]listd:list decoration (on)
+ ---- Others ---- -[no]space:spacing (on)
+-v: verbose output -[no]pre: preamble block (on)
+-dLevel: debug level -[no]acursec: section numbers (off)
+ ----- experimental ---- -raw: quote special chars(off)
+-pt=Size: font size -jis: JIS code output
+ -sjis: Shift-JIS code input/output
+ -f file: output customization
diff --git a/japanese/plain2/pkg-plist b/japanese/plain2/pkg-plist
new file mode 100644
index 000000000000..07645001dac6
--- /dev/null
+++ b/japanese/plain2/pkg-plist
@@ -0,0 +1,7 @@
+bin/plain2
+lib/plain2/OHP.p2
+lib/plain2/OHP_t.p2
+lib/plain2/header.p2
+lib/plain2/header_t.p2
+lib/plain2/jbook.p2
+lib/plain2/supsnum.p2