aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2001-10-20 13:58:38 +0000
committerClive Lin <clive@FreeBSD.org>2001-10-20 13:58:38 +0000
commit9d13bf1b4117bcc81a25f741477a451f05965d54 (patch)
tree638ff7278607d995b55505037ad143b4cd77a143
parent96fa6ef313a473b4301405c67251e93c3e5bc2c1 (diff)
downloadports-9d13bf1b4117bcc81a25f741477a451f05965d54.tar.gz
ports-9d13bf1b4117bcc81a25f741477a451f05965d54.zip
Notes
-rw-r--r--chinese/Makefile1
-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
10 files changed, 86 insertions, 0 deletions
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 <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