summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-11-13 06:15:26 +0000
committerBrian Feldman <green@FreeBSD.org>2000-11-13 06:15:26 +0000
commitc9a003239ec3718437203f37e8712ca09f036141 (patch)
tree205f7e1789466710e69c72728c7d8add463c7a09 /japanese
parent- Provide the full path for gmake(1) so configure doesn't fall over. (diff)
Add kdrill, a kanji tutor/quiz program.
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
Notes
Notes: svn path=/head/; revision=35053
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/kdrill/Makefile45
-rw-r--r--japanese/kdrill/distinfo1
-rw-r--r--japanese/kdrill/files/patch-Imakefile13
-rw-r--r--japanese/kdrill/files/patch-makedic-Makefile18
-rw-r--r--japanese/kdrill/pkg-comment1
-rw-r--r--japanese/kdrill/pkg-descr13
-rw-r--r--japanese/kdrill/pkg-plist9
8 files changed, 101 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index eeb50fb346d6..5ebd8078be7d 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -107,6 +107,7 @@
SUBDIR += kappa20
SUBDIR += kbanner
SUBDIR += kcc
+ SUBDIR += kdrill
SUBDIR += kebook
SUBDIR += kinput2-canna
SUBDIR += kinput2-canna+freewnn
diff --git a/japanese/kdrill/Makefile b/japanese/kdrill/Makefile
new file mode 100644
index 000000000000..7069ad843dbe
--- /dev/null
+++ b/japanese/kdrill/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: kdrill
+# Date created: 14 November 2000
+# Whom: Seth Kingsley <sethk@osd.bsdi.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= kdrill
+PORTVERSION= 5.10
+CATEGORIES= japanese
+MASTER_SITES= ftp://ftp.bolthole.com/kdrill/
+DISTNAME= ${PORTNAME}${PORTVERSION}
+
+MAINTAINER= sethk@osd.bsdi.com
+
+MAN1= kdrill.1 makedic.1 makeedict.1
+MANCOMPRESSED= yes
+USE_IMAKE= yes
+MAKE_ENV+= LOCALBASE=${LOCALBASE}
+
+RUN_DEPENDS+= xjdic:${PORTSDIR}/japanese/edict
+
+post-build:
+ @cd ${WRKSRC}/makedic && ${MAKE} ${MAKE_ENV} clean all
+
+DATADIR= ${PREFIX}/share/dict/kdrill
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/makedic/makedic ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/makedic/makeedict ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${INSTALL_MAN} ${WRKSRC}/makedic/makedic.1 \
+ ${PREFIX}/man/man1
+ ${GZIP_CMD} ${PREFIX}/man/man1/makedic.1
+ ${INSTALL_MAN} ${WRKSRC}/makedic/makeedict.1 \
+ ${PREFIX}/man/man1
+ ${GZIP_CMD} ${PREFIX}/man/man1/makeedict.1
+.endif
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/makedic/fullkatahira.edic ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/makedic/hira.edic ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/makedic/hiraplus.edic ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/makedic/kata.edic ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/makedic/kataplus.edic ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/kdrill/distinfo b/japanese/kdrill/distinfo
new file mode 100644
index 000000000000..10f126e7c41d
--- /dev/null
+++ b/japanese/kdrill/distinfo
@@ -0,0 +1 @@
+MD5 (kdrill5.10.tar.gz) = 7eb37b9fe771f726f9b1a8d742d0053d
diff --git a/japanese/kdrill/files/patch-Imakefile b/japanese/kdrill/files/patch-Imakefile
new file mode 100644
index 000000000000..6fc330790a3c
--- /dev/null
+++ b/japanese/kdrill/files/patch-Imakefile
@@ -0,0 +1,13 @@
+--- Imakefile.orig Sun Nov 12 00:57:27 2000
++++ Imakefile Sun Nov 12 03:38:54 2000
+@@ -32,8 +32,8 @@
+ /* You can change these here, and KDrill.ad will
+ * get created with the matching values. Yaaay!
+ */
+-DICTLOCATION= /usr/local/lib/kanjidic.gz
+-EDICTLOCATION= /usr/local/lib/edict.gz
++DICTLOCATION= $(LOCALBASE)/share/dict/edict/kanjidic
++EDICTLOCATION= $(LOCALBASE)/share/dict/edict/edict
+
+ # If for some reason, the user prefs stuff isn't working for you,
+ # and you can't compile, uncomment this
diff --git a/japanese/kdrill/files/patch-makedic-Makefile b/japanese/kdrill/files/patch-makedic-Makefile
new file mode 100644
index 000000000000..2a507b7216cf
--- /dev/null
+++ b/japanese/kdrill/files/patch-makedic-Makefile
@@ -0,0 +1,18 @@
+--- makedic/Makefile.orig Sun Nov 12 16:18:27 2000
++++ makedic/Makefile Sun Nov 12 16:19:21 2000
+@@ -5,13 +5,13 @@
+ all: makeedict makedic
+
+ makeedict: makeedict.c
+- gcc -o $@ makeedict.c
++ $(CC) $(CFLAGS) -o $@ makeedict.c
+
+ #This old version is just kept here for posterity's sake
+ #It's doubtful you will want to make a new kanjidic entry.
+ #but if you do, it's here
+ makedic: makedic.c
+- gcc -o $@ makedic.c
++ $(CC) $(CFLAGS) -o $@ makedic.c
+
+ DICTS=hira.edic hiraplus.edic kata.edic kataplus.edic fullkatahira.edic
+
diff --git a/japanese/kdrill/pkg-comment b/japanese/kdrill/pkg-comment
new file mode 100644
index 000000000000..1cbb5b6817ef
--- /dev/null
+++ b/japanese/kdrill/pkg-comment
@@ -0,0 +1 @@
+A program to quiz you on the meanings of Kanji
diff --git a/japanese/kdrill/pkg-descr b/japanese/kdrill/pkg-descr
new file mode 100644
index 000000000000..4e23d627691a
--- /dev/null
+++ b/japanese/kdrill/pkg-descr
@@ -0,0 +1,13 @@
+Kdrill is a program to quiz folks on
+ { English } { English }
+ { Kanji } <-> { Kanji }
+ { Kana } { Kana }
+
+It will quiz you on either the whole dictionary [around 6000 Kanji?]
+or specific Kanji, that you hand-pick. There are also other ways to
+narrow down which Kanji you are quizzed on.
+
+WWW: http://www.bolthole.com/kdrill/
+
+- Seth
+sethk@osd.bsdi.com
diff --git a/japanese/kdrill/pkg-plist b/japanese/kdrill/pkg-plist
new file mode 100644
index 000000000000..c90926a5ebe7
--- /dev/null
+++ b/japanese/kdrill/pkg-plist
@@ -0,0 +1,9 @@
+bin/kdrill
+bin/makedic
+bin/makeedict
+share/dict/kdrill/fullkatahira.edic
+share/dict/kdrill/hira.edic
+share/dict/kdrill/hiraplus.edic
+share/dict/kdrill/kata.edic
+share/dict/kdrill/kataplus.edic
+@dirrm share/dict/kdrill