diff --git a/chinese/Makefile b/chinese/Makefile index d769e3b8aa94..f70817428450 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -25,6 +25,7 @@ SUBDIR += cmexfonts SUBDIR += cxterm SUBDIR += dia + SUBDIR += dictd-database SUBDIR += emacs20 SUBDIR += enscript SUBDIR += eterm diff --git a/chinese/dictd-database/Makefile b/chinese/dictd-database/Makefile new file mode 100644 index 000000000000..8029349b124a --- /dev/null +++ b/chinese/dictd-database/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: dict-zh +# Date created: 25 Oct 1999 +# Whom: Shen Chuan-Hsing +# +# $FreeBSD$ +# + +PORTNAME= dictd-database +PORTVERSION= 1.1 +CATEGORIES= chinese textproc +MASTER_SITES= http://freebsd.sinica.edu.tw/~statue/ +DISTNAME= dict-zh-${PORTVERSION} + +MAINTAINER= statue@freebsd.sinica.edu.tw + +BUILD_DEPENDS= ${LOCALBASE}/bin/dictzip:${PORTSDIR}/net/dictd + +HAS_CONFIGURE= yes +USE_GMAKE= yes + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/chinese/dictd-database/distinfo b/chinese/dictd-database/distinfo new file mode 100644 index 000000000000..d0d344d039fa --- /dev/null +++ b/chinese/dictd-database/distinfo @@ -0,0 +1 @@ +MD5 (dict-zh-1.1.tar.gz) = 51dbccc2e7033ce396301644395d0f02 diff --git a/chinese/dictd-database/files/patch-aa b/chinese/dictd-database/files/patch-aa new file mode 100644 index 000000000000..c2de74ef7c25 --- /dev/null +++ b/chinese/dictd-database/files/patch-aa @@ -0,0 +1,10 @@ +--- Makefile.in.orig Sun Apr 2 00:43:40 2000 ++++ Makefile.in Sun Oct 14 10:52:13 2001 +@@ -75,7 +75,7 @@ + (cd $$subdir && $(MAKE)) || exit 1; \ + done + +-all:: $(EXES) ++all:: $(EXES) db + + db :: rawdata $(DATABASES) diff --git a/chinese/dictd-database/files/patch-ab b/chinese/dictd-database/files/patch-ab new file mode 100644 index 000000000000..6ffb9cc3811a --- /dev/null +++ b/chinese/dictd-database/files/patch-ab @@ -0,0 +1,10 @@ +--- dictfmt.c.orig Sun Apr 2 00:43:40 2000 ++++ dictfmt.c Sun Oct 14 09:58:49 2001 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + #if HAVE_GETOPT_H + #include diff --git a/chinese/dictd-database/files/patch-ac b/chinese/dictd-database/files/patch-ac new file mode 100644 index 000000000000..3821712ffe14 --- /dev/null +++ b/chinese/dictd-database/files/patch-ac @@ -0,0 +1,13 @@ +--- configure.orig Sun Oct 14 10:16:23 2001 ++++ configure Sun Oct 14 10:16:55 2001 +@@ -542,8 +542,8 @@ + + + +-prefix=/usr +-datadir=/usr/lib ++prefix=/usr/local ++datadir=/usr/local/lib + + echo Configuring for dict-misc + echo . diff --git a/chinese/dictd-database/pkg-comment b/chinese/dictd-database/pkg-comment new file mode 100644 index 000000000000..9f6c5902e9bc --- /dev/null +++ b/chinese/dictd-database/pkg-comment @@ -0,0 +1 @@ +A Chinese <-> English dictd words database diff --git a/chinese/dictd-database/pkg-descr b/chinese/dictd-database/pkg-descr new file mode 100644 index 000000000000..8abbce48b559 --- /dev/null +++ b/chinese/dictd-database/pkg-descr @@ -0,0 +1,7 @@ +A Chinese(Big5) <-> English dictd words database. + +pydict database have 177751 headwords. +moecomp database have 67263 headwords. +netterm database have 6477 headwords. + +Author: Pofeng Lee diff --git a/chinese/dictd-database/pkg-message b/chinese/dictd-database/pkg-message new file mode 100644 index 000000000000..a02e49bb1f89 --- /dev/null +++ b/chinese/dictd-database/pkg-message @@ -0,0 +1,12 @@ +***************************************************************************** + +Add the following to ${PREFIX}/etc/dictd.conf: + +database moecomp { data "/usr/local/lib/dict/moecomp.dict.dz" + index "/usr/local/lib/dict/moecomp.index" } +database netterm { data "/usr/local/lib/dict/netterm.dict.dz" + index "/usr/local/lib/dict/netterm.index" } +database pydict { data "/usr/local/lib/dict/pydict.dict.dz" + index "/usr/local/lib/dict/pydict.index" } + +***************************************************************************** diff --git a/chinese/dictd-database/pkg-plist b/chinese/dictd-database/pkg-plist new file mode 100644 index 000000000000..499c9ded957f --- /dev/null +++ b/chinese/dictd-database/pkg-plist @@ -0,0 +1,7 @@ +lib/dict/pydict.dict.dz +lib/dict/pydict.index +lib/dict/moecomp.dict.dz +lib/dict/moecomp.index +lib/dict/netterm.dict.dz +lib/dict/netterm.index +@dirrm lib/dict