aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2003-07-25 03:06:34 +0800
committeroliver <oliver@FreeBSD.org>2003-07-25 03:06:34 +0800
commit01bee4095bc3998f599b3f3254ff7219e4be0543 (patch)
treef98e49ccd4e136ce997f23a3af32d6e86302b97c
parentefe1e0c53a2b5e094fd038c85ce9323cbd5c8236 (diff)
downloadfreebsd-ports-gnome-01bee4095bc3998f599b3f3254ff7219e4be0543.tar.gz
freebsd-ports-gnome-01bee4095bc3998f599b3f3254ff7219e4be0543.tar.zst
freebsd-ports-gnome-01bee4095bc3998f599b3f3254ff7219e4be0543.zip
Add xtr 1.50e.0.2, a powerful Japanese text formatting processor.
PR: 44932 Submitted by: TANAKA Hiroyuki <kattyo@abk.nu>
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/xtr/Makefile44
-rw-r--r--japanese/xtr/distinfo1
-rw-r--r--japanese/xtr/files/patch-dosio.c20
-rw-r--r--japanese/xtr/files/patch-main.c15
-rw-r--r--japanese/xtr/files/patch-man-Makefile.in11
-rw-r--r--japanese/xtr/files/patch-xtr.h15
-rw-r--r--japanese/xtr/pkg-descr5
-rw-r--r--japanese/xtr/pkg-plist19
9 files changed, 131 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index fda39c284cd8..29b1626daac5 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -426,6 +426,7 @@
SUBDIR += xpdf
SUBDIR += xshodo
SUBDIR += xshodou
+ SUBDIR += xtr
SUBDIR += xv
SUBDIR += xvi-euc
SUBDIR += xvi-sjis
diff --git a/japanese/xtr/Makefile b/japanese/xtr/Makefile
new file mode 100644
index 000000000000..d07af0f6fc1c
--- /dev/null
+++ b/japanese/xtr/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: xtr
+# Date created: 5 November 2002
+# Whom: TANAKA Hiroyuki <kattyo@abk.nu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xtr
+PORTVERSION= 1.50e.0.2
+CATEGORIES= japanese textproc
+MASTER_SITES= ftp://ftp.abk.nu/pub/redist/xtr/
+DISTNAME= ${PORTNAME}1.50e-0.2
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= kattyo-ports@abk.nu
+COMMENT= A powerful Japanese text formatting processor
+
+MAN1= xtr.1
+MANCOMPRESSED= no
+
+HAS_CONFIGURE= yes
+GNU_CONFIGURE= yes
+
+NO_CDROM= "Need to obtain permission for commercial redistribution."
+
+.include <bsd.port.pre.mk>
+
+post-extract:
+ @${ECHO_MSG} "===> Converting Kanji code for ${DISTNAME}"
+ @(cd ${WRKSRC} && $(SH) EUCsetup )
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/xtr ${PREFIX}/bin/xtr
+ ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in README doc/xtr.doc
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+ @${MKDIR} ${PREFIX}/share/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/sample/*.xtr ${PREFIX}/share/${PORTNAME}
+
+.include <bsd.port.post.mk>
diff --git a/japanese/xtr/distinfo b/japanese/xtr/distinfo
new file mode 100644
index 000000000000..86dd146f143c
--- /dev/null
+++ b/japanese/xtr/distinfo
@@ -0,0 +1 @@
+MD5 (xtr1.50e-0.2.tgz) = ac617d60d1023436b166ea1090a18325
diff --git a/japanese/xtr/files/patch-dosio.c b/japanese/xtr/files/patch-dosio.c
new file mode 100644
index 000000000000..ff3a0d27ac2e
--- /dev/null
+++ b/japanese/xtr/files/patch-dosio.c
@@ -0,0 +1,20 @@
+--- src/dosio.c.orig Tue Nov 5 18:29:49 2002
++++ src/dosio.c Tue Nov 5 18:30:30 2002
+@@ -287,12 +287,14 @@
+ {
+ static int raw_mode = 0;
+
+- if (close_tty)
+- FError("There is no control-terminal.");
+-
+ #if HAVE_TERMIOS_H && HAVE_TERMIOS_FUNCS
+ struct termios s;
+ static struct termios os;
++#endif
++
++#if HAVE_TERMIOS_H && HAVE_TERMIOS_FUNCS
++ if (close_tty)
++ FError("There is no control-terminal.");
+
+ if (flag > 0) {
+ tcgetattr(fileno(stdin), &s);
diff --git a/japanese/xtr/files/patch-main.c b/japanese/xtr/files/patch-main.c
new file mode 100644
index 000000000000..6e061c5cc786
--- /dev/null
+++ b/japanese/xtr/files/patch-main.c
@@ -0,0 +1,15 @@
+--- src/main.c.orig Wed Jul 23 17:02:16 2003
++++ src/main.c Wed Jul 23 17:03:32 2003
+@@ -401,10 +401,10 @@
+ int stdinmode; /* 標準入力から入力 */
+ uchar *ifilename; /* 現在の入力ファイル名 */
+ uchar *ifilename1; /* 入力ファイル名の代表 */
+-FILE *ifp = stdin;
++FILE *ifp;
+ int stdoutmode; /* 標準出力へ出力 */
+ uchar *ofilename;
+-FILE *ofp = stdout;
++FILE *ofp;
+ uchar *bakfilename; /* .BAK にリネームされた入力ファイル名 */
+
+
diff --git a/japanese/xtr/files/patch-man-Makefile.in b/japanese/xtr/files/patch-man-Makefile.in
new file mode 100644
index 000000000000..c411727e683f
--- /dev/null
+++ b/japanese/xtr/files/patch-man-Makefile.in
@@ -0,0 +1,11 @@
+--- man/Makefile.in.orig Tue Nov 5 18:52:36 2002
++++ man/Makefile.in Tue Nov 5 18:52:52 2002
+@@ -40,7 +40,7 @@
+ all: xtr.1
+
+ xtr.1: xtr.n
+- sed -e "s#@XTRPATH@#$(XTRPATH)#g" $< > $@
++ sed -e "s#@XTRPATH@#$(XTRPATH)#g" xtr.n > $@
+
+ install:
+ # $(top_dir)/mkinstalldirs $(mandir)
diff --git a/japanese/xtr/files/patch-xtr.h b/japanese/xtr/files/patch-xtr.h
new file mode 100644
index 000000000000..ed5feaeb5fe6
--- /dev/null
+++ b/japanese/xtr/files/patch-xtr.h
@@ -0,0 +1,15 @@
+--- src/xtr.h.orig Wed Jul 23 17:02:22 2003
++++ src/xtr.h Wed Jul 23 17:04:42 2003
+@@ -493,10 +493,12 @@
+ #endif
+ #endif
+
++#ifndef __P
+ #ifdef __STDC__
+ #define __P(args) args
+ #else
+ #define __P(args) ()
++#endif
+ #endif
+
+ typedef int (*sffnp_t) __P((uchar *d));
diff --git a/japanese/xtr/pkg-descr b/japanese/xtr/pkg-descr
new file mode 100644
index 000000000000..1dac360d903e
--- /dev/null
+++ b/japanese/xtr/pkg-descr
@@ -0,0 +1,5 @@
+XTR is text processor to format text document.
+Easy to start, but this is powerful to write document in Japanese.
+
+XTR syntax is just a little bit different from
+other text formatters like *roff.
diff --git a/japanese/xtr/pkg-plist b/japanese/xtr/pkg-plist
new file mode 100644
index 000000000000..0820e889df3e
--- /dev/null
+++ b/japanese/xtr/pkg-plist
@@ -0,0 +1,19 @@
+bin/xtr
+%%PORTDOCS%%%%DOCSDIR%%/xtr.doc
+%%PORTDOCS%%%%DOCSDIR%%/README
+share/xtr/antinec.xtr
+share/xtr/cmt.xtr
+share/xtr/esc.xtr
+share/xtr/escp.xtr
+share/xtr/fmpr.xtr
+share/xtr/greek.xtr
+share/xtr/hint.xtr
+share/xtr/inutil.xtr
+share/xtr/kei98jis.xtr
+share/xtr/keicnv.xtr
+share/xtr/keijis98.xtr
+share/xtr/mode.xtr
+share/xtr/pcpr.xtr
+share/xtr/prev.xtr
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm share/xtr