aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/dictd-database
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-10-20 21:58:38 +0800
committerclive <clive@FreeBSD.org>2001-10-20 21:58:38 +0800
commit4451cac7143d0ab3e399c497274f5584b3010928 (patch)
treeecdae8cd811e5eaafece187191abc08599ea8015 /chinese/dictd-database
parentb75070bdfd320ced674d4baf0c4460df7e5b2166 (diff)
downloadfreebsd-ports-gnome-4451cac7143d0ab3e399c497274f5584b3010928.tar.gz
freebsd-ports-gnome-4451cac7143d0ab3e399c497274f5584b3010928.tar.zst
freebsd-ports-gnome-4451cac7143d0ab3e399c497274f5584b3010928.zip
A Chinese(Big5) <-> English database for dictd.
PR: ports/31298 Submitted by: Statue <statue@softwareliberty.org>
Diffstat (limited to 'chinese/dictd-database')
-rw-r--r--chinese/dictd-database/Makefile24
-rw-r--r--chinese/dictd-database/distinfo1
-rw-r--r--chinese/dictd-database/files/patch-aa10
-rw-r--r--chinese/dictd-database/files/patch-ab10
-rw-r--r--chinese/dictd-database/files/patch-ac13
-rw-r--r--chinese/dictd-database/pkg-comment1
-rw-r--r--chinese/dictd-database/pkg-descr7
-rw-r--r--chinese/dictd-database/pkg-message12
-rw-r--r--chinese/dictd-database/pkg-plist7
9 files changed, 85 insertions, 0 deletions
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 <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>
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 <string.h>
+ #include <time.h>
+ #include <ctype.h>
++#include <unistd.h>
+
+ #if HAVE_GETOPT_H
+ #include <getopt.h>
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 <pofeng@linux.org.tw>
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