New port, typist:
Typing lessons (Japanese version) PR: 3930 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
This commit is contained in:
parent
354513905b
commit
8b071371d6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7054
29
japanese/typist/Makefile
Normal file
29
japanese/typist/Makefile
Normal file
@ -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>
|
1
japanese/typist/distinfo
Normal file
1
japanese/typist/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (typist2.0.src.tar.gz) = 9562de7fcd35a4b6bf17c0a538420729
|
32
japanese/typist/files/patch-aa
Normal file
32
japanese/typist/files/patch-aa
Normal file
@ -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
|
65
japanese/typist/files/patch-ab
Normal file
65
japanese/typist/files/patch-ab
Normal file
@ -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++) ;
|
||||
|
||||
|
||||
|
||||
|
70
japanese/typist/files/patch-ac
Normal file
70
japanese/typist/files/patch-ac
Normal file
@ -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 */
|
1
japanese/typist/pkg-comment
Normal file
1
japanese/typist/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Typing lessons (Japanese version)
|
16
japanese/typist/pkg-descr
Normal file
16
japanese/typist/pkg-descr
Normal file
@ -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.
|
23
japanese/typist/pkg-plist
Normal file
23
japanese/typist/pkg-plist
Normal file
@ -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
|
25
japanese/typist/scripts/configure
vendored
Normal file
25
japanese/typist/scripts/configure
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user