summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/kdrill/DESCR6
-rw-r--r--misc/kdrill/MESSAGE12
-rw-r--r--misc/kdrill/Makefile27
-rw-r--r--misc/kdrill/PLIST10
-rw-r--r--misc/kdrill/distinfo5
-rw-r--r--misc/kdrill/patches/patch-aa15
6 files changed, 75 insertions, 0 deletions
diff --git a/misc/kdrill/DESCR b/misc/kdrill/DESCR
new file mode 100644
index 00000000000..3fde3ab2eb6
--- /dev/null
+++ b/misc/kdrill/DESCR
@@ -0,0 +1,6 @@
+Kdrill: the free kanji quiz and Japanese dictionary for unix and X
+window systems.
+
+KDrill stands for "Kanji Drill". It's a program to help people learn
+kanji and kana (the Japanese character set). It also doubles as a
+dictionary lookup program. Kdrill runs under the X window GUI system.
diff --git a/misc/kdrill/MESSAGE b/misc/kdrill/MESSAGE
new file mode 100644
index 00000000000..35174f9c15e
--- /dev/null
+++ b/misc/kdrill/MESSAGE
@@ -0,0 +1,12 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2002/02/07 13:49:06 wiz Exp $
+
+To learn kana, start kdrill with:
+ kdrill -kdictfile none -edictfile hira.edic
+or any of the other edic files from ${PREFIX}/share/kdrill.
+
+To learn kanji, download edict.gz and kanjidic.gz from
+ ftp://ftp.monash.edu.au/pub/nihongo
+and install them in ${PREFIX}/share/kdrill.
+
+===========================================================================
diff --git a/misc/kdrill/Makefile b/misc/kdrill/Makefile
new file mode 100644
index 00000000000..bd1193c2ac9
--- /dev/null
+++ b/misc/kdrill/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/02/07 13:49:06 wiz Exp $
+#
+
+DISTNAME= kdrill5.11.6
+PKGNAME= kdrill-5.11.6
+CATEGORIES= japanese misc
+MASTER_SITES= http://www.bolthole.com/kdrill/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.bolthole.com/kdrill/
+COMMENT= kanji quiz and japanese dictionary
+
+USE_IMAKE= yes
+USE_X11BASE= yes
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/kdrill
+ cd ${WRKSRC}/makedic && \
+ ${INSTALL_DATA} hira.edic hiraplus.edic kata.edic kataplus.edic \
+ fullkatahira.edic ${PREFIX}/share/kdrill
+ for f in hira.edic hiraplus.edic kata.edic kataplus.edic \
+ fullkatahira.edic; do \
+ ${GZIP_CMD} -9 ${PREFIX}/share/kdrill/$$f; \
+ done
+
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/kdrill/PLIST b/misc/kdrill/PLIST
new file mode 100644
index 00000000000..b348365b2c2
--- /dev/null
+++ b/misc/kdrill/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/02/07 13:49:06 wiz Exp $
+bin/kdrill
+lib/X11/app-defaults/KDrill
+man/cat1/kdrill.0
+share/kdrill/hira.edic.gz
+share/kdrill/hiraplus.edic.gz
+share/kdrill/kata.edic.gz
+share/kdrill/kataplus.edic.gz
+share/kdrill/fullkatahira.edic.gz
+@unexec rmdir %D/share/kdrill 2>/dev/null || true
diff --git a/misc/kdrill/distinfo b/misc/kdrill/distinfo
new file mode 100644
index 00000000000..5c8004db805
--- /dev/null
+++ b/misc/kdrill/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/02/07 13:49:06 wiz Exp $
+
+SHA1 (kdrill5.11.6.tar.gz) = 8ce3594c81f717a4fd1488a952b0a05111679cd0
+Size (kdrill5.11.6.tar.gz) = 182956 bytes
+SHA1 (patch-aa) = 42fc93ca33c380cc947a526c97cb887c2e778ebb
diff --git a/misc/kdrill/patches/patch-aa b/misc/kdrill/patches/patch-aa
new file mode 100644
index 00000000000..328ee0466a9
--- /dev/null
+++ b/misc/kdrill/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/02/07 13:49:06 wiz Exp $
+
+--- Imakefile.orig Wed Feb 6 01:56:16 2002
++++ Imakefile
+@@ -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= ${PREFIX}/share/kdrill/kanjidic.gz
++EDICTLOCATION= ${PREFIX}/share/kdrill/edict.gz
+
+ # If for some reason, the user prefs stuff isn't working for you,
+ # and you can't compile, uncomment this