aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1997-06-24 13:29:03 +0800
committermax <max@FreeBSD.org>1997-06-24 13:29:03 +0800
commit4e7ce102abfead7195dda014089772a9e1aa10b3 (patch)
treed984c1e1c9669de22420862b5006fb80a4dce079 /japanese
parent6c31561596cc2c033a999504616a634c67b27cd6 (diff)
downloadfreebsd-ports-gnome-4e7ce102abfead7195dda014089772a9e1aa10b3.tar.gz
freebsd-ports-gnome-4e7ce102abfead7195dda014089772a9e1aa10b3.tar.zst
freebsd-ports-gnome-4e7ce102abfead7195dda014089772a9e1aa10b3.zip
New port, typist:
Typing lessons (Japanese version) PR: 3930 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/typist/Makefile29
-rw-r--r--japanese/typist/distinfo1
-rw-r--r--japanese/typist/files/patch-aa32
-rw-r--r--japanese/typist/files/patch-ab65
-rw-r--r--japanese/typist/files/patch-ac70
-rw-r--r--japanese/typist/pkg-comment1
-rw-r--r--japanese/typist/pkg-descr16
-rw-r--r--japanese/typist/pkg-plist23
-rw-r--r--japanese/typist/scripts/configure25
9 files changed, 262 insertions, 0 deletions
diff --git a/japanese/typist/Makefile b/japanese/typist/Makefile
new file mode 100644
index 000000000000..194dd33014d6
--- /dev/null
+++ b/japanese/typist/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: typist
+# Version required: 2.0
+# Date created: 26 May 1997
+# Whom: Satoshi TAOKA
+#
+# $Id$
+#
+
+DISTNAME= typist2.0
+PKGNAME= jp-typist-2.0
+CATEGORIES= japanese
+MASTER_SITES= ftp://tuba.csedu.kobe-u.ac.jp/pub/UNIX/
+EXTRACT_SUFX= .src.tar.gz
+
+MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+MAN1= typist.1
+
+post-install:
+ @strip ${PREFIX}/bin/typist
+.if !defined(NOPORTDOCS)
+ ${MKDIR} $(PREFIX)/share/doc/typist
+ ${INSTALL_DATA} ${WRKSRC}/../doc/INSTALL.txt $(PREFIX)/share/doc/typist
+ ${INSTALL_DATA} ${WRKSRC}/../doc/README.J $(PREFIX)/share/doc/typist
+ ${INSTALL_DATA} ${WRKSRC}/../doc/README.orig $(PREFIX)/share/doc/typist
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/typist/distinfo b/japanese/typist/distinfo
new file mode 100644
index 000000000000..1c2d1dd0fd1d
--- /dev/null
+++ b/japanese/typist/distinfo
@@ -0,0 +1 @@
+MD5 (typist2.0.src.tar.gz) = 9562de7fcd35a4b6bf17c0a538420729
diff --git a/japanese/typist/files/patch-aa b/japanese/typist/files/patch-aa
new file mode 100644
index 000000000000..8ce2a803247c
--- /dev/null
+++ b/japanese/typist/files/patch-aa
@@ -0,0 +1,32 @@
+*** Makefile.orig Wed May 21 13:41:33 1997
+--- Makefile Mon Jun 23 19:45:04 1997
+***************
+*** 54,66 ****
+ ##### INSTALL PARAMETERS #####
+ LIBS=-ltermcap
+ DEBUG=-O -s
+! LESSONDIR=/usr/local/lib/typist
+! TARGETDIR=/usr/local/bin
+! MANPATH=/usr/local/man
+ # NeXT ONLY!! To make FAT binary.
+ MAB=
+
+! CFLAGS=$(DEBUG) $(MAB) -DTERMIO
+ # -DKEYTYPE=\"e\"
+ # -DLESSONDIR=\"$(LESSONDIR)\"
+ # -DVANISHCHAR
+--- 54,67 ----
+ ##### INSTALL PARAMETERS #####
+ LIBS=-ltermcap
+ DEBUG=-O -s
+! PREFIX?=/usr/local
+! LESSONDIR=${PREFIX}/lib/typist
+! TARGETDIR=${PREFIX}/bin
+! MANPATH=${PREFIX}/man
+ # NeXT ONLY!! To make FAT binary.
+ MAB=
+
+! CFLAGS=$(DEBUG) $(MAB) -DLESSONDIR=\"$(LESSONDIR)\" -DKEYTYPE=\"j\"
+ # -DKEYTYPE=\"e\"
+ # -DLESSONDIR=\"$(LESSONDIR)\"
+ # -DVANISHCHAR
diff --git a/japanese/typist/files/patch-ab b/japanese/typist/files/patch-ab
new file mode 100644
index 000000000000..36f726502344
--- /dev/null
+++ b/japanese/typist/files/patch-ab
@@ -0,0 +1,65 @@
+Return-Path: taoka@infonets.hiroshima-u.ac.jp
+Return-Path: taoka@infonets.hiroshima-u.ac.jp
+Received: from shonan.sfc.wide.ad.jp (shonan.sfc.wide.ad.jp [203.178.140.7]) by bourbon.sfc.wide.ad.jp (8.8.5/3.5Wpl104/21/97) with ESMTP id LAA28293 for <max@bourbon.sfc.wide.ad.jp>; Tue, 24 Jun 1997 11:21:48 +0900 (JST)
+Received: from sh.wide.ad.jp (sh.wide.ad.jp [133.4.11.11]) by shonan.sfc.wide.ad.jp (8.8.5+2.7Wbeta5/3.3Wb4-shonan) with ESMTP id LAA01566 for <max@sfc.wide.ad.jp>; Tue, 24 Jun 1997 11:24:06 +0900 (JST)
+Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53]) by sh.wide.ad.jp (8.8.5+2.7Wbeta5/6.0) with ESMTP id LAA14491 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:05 +0900 (JST)
+Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61]) by diana.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) with ESMTP id LAA23813 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:04 +0900 (JST)
+Received: from cal.infonets.hiroshima-u.ac.jp (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by cal.infonets.hiroshima-u.ac.jp (8.8.5/3.5Wpl5) with ESMTP id LAA05923 for <max@wide.ad.jp>; Tue, 24 Jun 1997 11:24:03 +0900 (JST)
+Message-Id: <199706240224.LAA05923@cal.infonets.hiroshima-u.ac.jp>
+To: max@wide.ad.jp
+Subject: Re: typist copyright
+From: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
+In-Reply-To: Your message of "Tue, 24 Jun 1997 09:41:37 +0900"
+References: <199706240041.JAA27882@bourbon.sfc.wide.ad.jp>
+X-Mailer: Mew version 1.70 on Emacs 20.3 "Moscow" XEmacs Lucid (beta6)
+Mime-Version: 1.0
+Content-Type: Text/Plain; charset=iso-2022-jp
+Content-Transfer-Encoding: 7bit
+Date: Tue, 24 Jun 1997 11:24:03 +0900
+Sender: taoka@infonets.hiroshima-u.ac.jp
+X-Filter: mailagent [version 3.0 PL56] for max@bourbon.sfc.wide.ad.jp
+
+
+$BED2,$G$9!%(B
+
+>
+> $B!!$"!"0l$D5$$K$J$C$?E@$G$9$,!"KM$NC<Kv$N@_Dj(B ($B%7%j%"%kC<Kv$G;H$C$F$$$^(B
+> $B$9(B) $B$N$;$$$J$N$+$b$7$l$J$$$s$G$9$,!"%*!<%W%K%s%0$N%9%/%j!<%s$N=j$G2~9T(B
+> $B%-!<$r2!$7$F$b=*N;$7$F$/$l$^$;$s$G$7$?!#(B
+
+$B860x$,J,$+$j$^$7$?!%;d$N%_%9$G$9!%(Bpatches/patch-ab$B$rF~$l49$($F$_$F$/$@$5(B
+$B$$!%$b$H$b$H(Btypist$B$G$O(Bgets$B$r;H$C$F$$$k$N$G$9$,!$(B
+
+warning: this program uses gets(), which is unsafe.
+
+$B$,$G$k$N$G(Bfgets$B$r;H$&$h$&$KJQ99$7$F$$$?$N$G$9$,!$(Bgets$B$O(B'\n'$B$r:o$k$,!$(B
+fgets$B$O(B'\n'$B$O$=$N$^$^BeF~$7$F$$$k$3$H$rCN$j$^$;$s$G$7$?!%B?J,!$$3$l$C$F(B
+$BM-L>$JOC$G$7$g$&$M!%(B
+
+ $BED2,(B $BCR;V(B $B9-EgBg3X9)3XItBhFsN`2sO)%7%9%F%`9)3X(B Tel: 0824-24-7666
+ $B")(B739 $BEl9-Eg;T6@;30lCzL\(B4-1 Fax: 0824-22-7028
+ taoka@infonets.hiroshima-u.ac.jp
+
+
+*** lesson.c.orig Sun May 18 14:54:37 1997
+--- lesson.c Tue Jun 24 11:11:21 1997
+***************
+*** 72,78 ****
+--- 72,84 ----
+
+ nocbreak();
+
++ #ifdef __FreeBSD__
++ (void)fgets(response,STR_SIZE + 1,stdin);
++ for (lp = response; *lp != '\n'; lp++) ;
++ *lp='\0';
++ #else
+ (void)gets(response);
++ #endif
+
+ cbreak();
+ for (lp = response; *lp == ' ' || *lp == '\t'; lp++) ;
+
+
+
+
diff --git a/japanese/typist/files/patch-ac b/japanese/typist/files/patch-ac
new file mode 100644
index 000000000000..aa016c215a84
--- /dev/null
+++ b/japanese/typist/files/patch-ac
@@ -0,0 +1,70 @@
+*** sound.c.orig Sun Apr 13 08:24:24 1997
+--- sound.c Mon May 26 17:11:53 1997
+***************
+*** 49,54 ****
+--- 49,103 ----
+ }
+
+ #else
++ #ifdef __FreeBSD__
++ #include <sys/param.h>
++ #include <sys/stat.h>
++ #include <err.h>
++ #include <sys/types.h>
++ #include <sys/dir.h>
++ #include <sys/file.h>
++ #include <machine/soundcard.h>
++ #include <stdlib.h>
++ #include <string.h>
++ #include <unistd.h>
++ #include "typist.h"
++
++ #define AUDIO_DEVICE "/dev/audio"
++ char fullName[MAXNAMLEN + 1];
++
++ void sndbeep_init(dir)
++ char *dir;
++ {
++ strcpy(fullName, dir);
++ strcat(fullName, "/");
++ strcat(fullName, CLICKSND);
++ }
++
++
++ void sndbeep() /* FreeBSD */
++ {
++ register int sfile, sdev, nr;
++ static int bsize;
++ static char *buf;
++ struct stat sbuf;
++
++ if ((sfile = open(fullName, O_RDONLY)) < 0)
++ return;
++ if ((sdev = open(AUDIO_DEVICE, O_RDWR)) < 0) {
++ return;
++ }
++ ioctl(sdev, SNDCTL_DSP_RESET, 0);
++ fstat(sfile, &sbuf);
++ bsize = MAX(sbuf.st_blksize, 1024);
++ buf = malloc((u_int)bsize);
++ if ( (nr = read(sfile, buf, bsize)) > 0)
++ write(sdev, buf, nr);
++ ioctl(sdev, SNDCTL_DSP_SYNC, 0);
++ free(buf);
++ close(sdev);
++ close(sfile);
++ }
++ #else /* FreeBSD */
+
+ void sndbeep_init()
+ {
+***************
+*** 59,64 ****
+--- 108,114 ----
+ putchar('\007');
+ fflush(stdout);
+ }
++ #endif
+ #endif /* NeXT */
+
+ #endif /* SILENT */
diff --git a/japanese/typist/pkg-comment b/japanese/typist/pkg-comment
new file mode 100644
index 000000000000..5e9e06e86c21
--- /dev/null
+++ b/japanese/typist/pkg-comment
@@ -0,0 +1 @@
+Typing lessons (Japanese version)
diff --git a/japanese/typist/pkg-descr b/japanese/typist/pkg-descr
new file mode 100644
index 000000000000..bb495fc1984a
--- /dev/null
+++ b/japanese/typist/pkg-descr
@@ -0,0 +1,16 @@
+Typist provides typing drills and maintains statistics for
+learning to type. The initial menu provides following
+lessons:
+ Quick QWERTY course (q1 - q5)
+ Long QWERTY course (r1 - r14)
+ QWERTY touch typing (t1 - t16)
+ Yet Another QWERTY (v1 - v20)
+ QWERTY Review (u1 - u13)
+ Typing drills (m1 - m11)
+ Speed drills (s1 - s4)
+ Calculator keypad (n1 - n3)
+Specifying a lesson on command line, you can start the
+lesson immediately. If Japanese version is installed,
+Kana typing lessons are also available.
+
+Your history of exercises can be saved when typist exits.
diff --git a/japanese/typist/pkg-plist b/japanese/typist/pkg-plist
new file mode 100644
index 000000000000..48c46c25682c
--- /dev/null
+++ b/japanese/typist/pkg-plist
@@ -0,0 +1,23 @@
+bin/typist
+lib/typist/click.snd
+lib/typist/e.map
+lib/typist/help.typ
+lib/typist/j.map
+lib/typist/jissen.typ
+lib/typist/k.map
+lib/typist/kana.typ
+lib/typist/m.typ
+lib/typist/n.typ
+lib/typist/q.typ
+lib/typist/r.typ
+lib/typist/s.typ
+lib/typist/t.typ
+lib/typist/typist.idx
+lib/typist/u.typ
+lib/typist/v.typ
+man/man1/typist.1.gz
+share/doc/typist/INSTALL.txt
+share/doc/typist/README.J
+share/doc/typist/README.orig
+@dirrm lib/typist
+@dirrm share/doc/typist
diff --git a/japanese/typist/scripts/configure b/japanese/typist/scripts/configure
new file mode 100644
index 000000000000..e3102c5cd073
--- /dev/null
+++ b/japanese/typist/scripts/configure
@@ -0,0 +1,25 @@
+#!/bin/sh
+# typist configuration shell script
+# usage: /bin/sh configure
+
+if [ X"${BATCH}" != X"yes" ] ; then
+/usr/bin/dialog --title "typist port configuration" --radiolist \
+"Is a type of your keyboard?" -1 -1 2 \
+"106" "Japanese 106 keymap" ON \
+"101" "101 keymap" OFF 2>/tmp/typist.ports.selection
+
+if [ X`cat /tmp/typist.ports.selection` = "X101" ]
+ then
+ echo '101 keymap'
+ cp ${WRKSRC}/Makefile ${WRKSRC}/Makefile.tmp
+ sed -e 's/-DKEYTYPE=\\"j\\"/-DKEYTYPE=\\"e\\"/g' \
+ ${WRKSRC}/Makefile.tmp > ${WRKSRC}/Makefile
+else
+ echo 'Japanese 106 keymap'
+fi
+
+rm -f /tmp/typist.ports.selection
+
+else
+ echo 'Japanese 106 keymap (default) is selected'
+fi