summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
Diffstat (limited to 'japanese')
-rw-r--r--japanese/xjdic/DESCR4
-rw-r--r--japanese/xjdic/MESSAGE5
-rw-r--r--japanese/xjdic/Makefile53
-rw-r--r--japanese/xjdic/PLIST23
-rw-r--r--japanese/xjdic/distinfo10
-rw-r--r--japanese/xjdic/patches/patch-aa13
-rw-r--r--japanese/xjdic/patches/patch-ab13
7 files changed, 121 insertions, 0 deletions
diff --git a/japanese/xjdic/DESCR b/japanese/xjdic/DESCR
new file mode 100644
index 00000000000..6b7419143b1
--- /dev/null
+++ b/japanese/xjdic/DESCR
@@ -0,0 +1,4 @@
+XJDIC is an electronic Japanese-English dictionary program designed to
+operate in the X11 window environment. In particular, it must run in an
+"xterm" environment which has Japanese language support such as provided by
+"kterm" or internationalized xterm, aixterm, etc.
diff --git a/japanese/xjdic/MESSAGE b/japanese/xjdic/MESSAGE
new file mode 100644
index 00000000000..017dfaf1bf5
--- /dev/null
+++ b/japanese/xjdic/MESSAGE
@@ -0,0 +1,5 @@
+===========================================================================
+
+ Copy ${PREFIX}/share/doc/xjdic/.xjdicrc to your $HOME/.xjdicrc !
+
+===========================================================================
diff --git a/japanese/xjdic/Makefile b/japanese/xjdic/Makefile
new file mode 100644
index 00000000000..afe930732fe
--- /dev/null
+++ b/japanese/xjdic/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/01/03 01:02:24 hubertf Exp $
+#
+
+DISTNAME= xjdic23
+PKGNAME= xjdic-2.3
+CATEGORIES= japanese
+MASTER_SITES= http://www.bcit-broadcast.com/monash/
+EXTRACT_SUFX= .tgz
+DISTFILES+= edict.gz \
+ kanjidic.gz \
+ ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://www.csse.monash.edu.au/~jwb/xjdic/
+COMMENT= Japanese dictionary
+
+WRKSRC= ${WRKDIR}
+MESSAGE_SUBST+= PREFIX=${PREFIX}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+do-install:
+ cd ${WRKSRC} ; \
+ for i in exjdxgen xjdic_cl xjdic_sa xjdserver xjdxgen ; \
+ do \
+ ${INSTALL_PROGRAM} $$i ${PREFIX}/bin ; \
+ done
+ ${MV} ${PREFIX}/bin/xjdic_sa ${PREFIX}/bin/xjdic
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/xjdic
+ ${INSTALL_DATA} \
+ ${WRKSRC}/kanjstroke \
+ ${WRKSRC}/radicals.tm \
+ ${WRKSRC}/radkfile \
+ ${WRKSRC}/romkana.cnv \
+ ${WRKSRC}/vconj \
+ ${PREFIX}/share/xjdic
+ ${INSTALL_MAN_DIR} ${PREFIX}/share/doc/xjdic
+ ${INSTALL_MAN} \
+ ${WRKSRC}/xjdic22.WHATSNEW \
+ ${WRKSRC}/xjdic23.WHATSNEW \
+ ${WRKSRC}/xjdic23.inf \
+ ${WRKSRC}/xjdic23.install \
+ ${PREFIX}/share/doc/xjdic
+ ${INSTALL_MAN} ${WRKSRC}/xjdic.1 ${PREFIX}/man/man1
+ ${GZIP_CMD} -cd ${DISTDIR}/kanjidic.gz >${PREFIX}/share/xjdic/kanjidic
+ ${GZIP_CMD} -cd ${DISTDIR}/edict.gz >${PREFIX}/share/xjdic/edict
+ ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/edict
+ ${PREFIX}/bin/xjdxgen ${PREFIX}/share/xjdic/kanjidic
+ ${SED} \
+ -e 's,/home/jwb/nihongo/dics,${PREFIX}/share/xjdic,' \
+ -e '/^kdicfile/s/kanjidic_b/kanjidic/' \
+ < ${WRKSRC}/.xjdicrc.skel >${PREFIX}/share/doc/xjdic/.xjdicrc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/japanese/xjdic/PLIST b/japanese/xjdic/PLIST
new file mode 100644
index 00000000000..b445b6ac5ee
--- /dev/null
+++ b/japanese/xjdic/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/03 01:02:24 hubertf Exp $
+bin/exjdxgen
+bin/xjdic_cl
+bin/xjdic
+bin/xjdserver
+bin/xjdxgen
+share/doc/xjdic/xjdic22.WHATSNEW
+share/doc/xjdic/xjdic23.WHATSNEW
+share/doc/xjdic/xjdic23.inf
+share/doc/xjdic/xjdic23.install
+share/doc/xjdic/.xjdicrc
+share/xjdic/kanjstroke
+share/xjdic/radkfile
+share/xjdic/vconj
+share/xjdic/romkana.cnv
+share/xjdic/radicals.tm
+share/xjdic/kanjidic
+share/xjdic/kanjidic.xjdx
+share/xjdic/edict
+share/xjdic/edict.xjdx
+man/man1/xjdic.1
+@dirrm share/doc/xjdic
+@dirrm share/xjdic
diff --git a/japanese/xjdic/distinfo b/japanese/xjdic/distinfo
new file mode 100644
index 00000000000..0ea09a98e67
--- /dev/null
+++ b/japanese/xjdic/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/01/03 01:02:24 hubertf Exp $
+
+SHA1 (edict.gz) = a4b5f0e25e6eb83be9f1442de511ae6cb2e0cb45
+Size (edict.gz) = 1706759 bytes
+SHA1 (kanjidic.gz) = b0e0fbe07791f711633c6df6bfa507afe2dfd338
+Size (kanjidic.gz) = 470456 bytes
+SHA1 (xjdic23.tgz) = f5b364b7b50abaa4ffc862f5140d0c47b4438d16
+Size (xjdic23.tgz) = 136415 bytes
+SHA1 (patch-aa) = 7e3dad15962b0ac69bf25c6f98cbbff8925aed8d
+SHA1 (patch-ab) = 32dfe757b0a20a72cb336177eec08ba85e89231a
diff --git a/japanese/xjdic/patches/patch-aa b/japanese/xjdic/patches/patch-aa
new file mode 100644
index 00000000000..083f9130fe1
--- /dev/null
+++ b/japanese/xjdic/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/01/03 01:02:24 hubertf Exp $
+
+--- Makefile.orig Wed Sep 16 13:08:01 1998
++++ Makefile
+@@ -54,7 +54,7 @@
+ #
+ #LIBS= -lsocket -lnsl
+ #
+-CC=gcc -g
++CC=gcc -D__STRICT_BSD__ -DPREFIX=\"${PREFIX}\"
+ all: xjdic_sa xjdic_cl xjdserver xjdxgen exjdxgen
+ client: xjdic_cl
+ server: xjdserver
diff --git a/japanese/xjdic/patches/patch-ab b/japanese/xjdic/patches/patch-ab
new file mode 100644
index 00000000000..1ca2a9c8443
--- /dev/null
+++ b/japanese/xjdic/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/01/03 01:02:24 hubertf Exp $
+
+--- xjdic.h.orig Thu Sep 3 11:05:28 1998
++++ xjdic.h
+@@ -3,7 +3,7 @@
+ #define NRKANA 250*2 /* size of the romaji to kana tables*/
+ #define NOFILT 10 /* maximum number of general filters */
+ #define VMAX 350 /* maximum entries in the verb table */
+-#define DEFAULT_DICDIR "" /* could be: "/usr/local/lib/xjdic" */
++#define DEFAULT_DICDIR PREFIX "share/xjdic" /* could be: "/usr/local/lib/xjdic" */
+ #define NOHITS 1000 /* size of hittab */
+ #define SPTAG '@' /* character that flags priority entries */
+ #define KFBUFFSIZE 2000 /* size of the KFlush buffer */