A Chinese(Big5) <-> English database for dictd.

PR: ports/31298
Submitted by: Statue <statue@softwareliberty.org>
This commit is contained in:
Clive Lin 2001-10-20 13:58:38 +00:00
parent 96fa6ef313
commit 9d13bf1b41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48987
10 changed files with 86 additions and 0 deletions

View file

@ -25,6 +25,7 @@
SUBDIR += cmexfonts
SUBDIR += cxterm
SUBDIR += dia
SUBDIR += dictd-database
SUBDIR += emacs20
SUBDIR += enscript
SUBDIR += eterm

View file

@ -0,0 +1,24 @@
# New ports collection makefile for: dict-zh
# Date created: 25 Oct 1999
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $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 <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (dict-zh-1.1.tar.gz) = 51dbccc2e7033ce396301644395d0f02

View file

@ -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)

View file

@ -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 <string.h>
#include <time.h>
#include <ctype.h>
+#include <unistd.h>
#if HAVE_GETOPT_H
#include <getopt.h>

View file

@ -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 .

View file

@ -0,0 +1 @@
A Chinese <-> English dictd words database

View file

@ -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 <pofeng@linux.org.tw>

View file

@ -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" }
*****************************************************************************

View file

@ -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