diff options
author | ahze <ahze@FreeBSD.org> | 2005-03-11 10:52:25 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2005-03-11 10:52:25 +0800 |
commit | a843134c79c1c0040051d08078c60b573c25bee1 (patch) | |
tree | 68c14b66d384c8b14a861a3f921b724ca31bab72 /chinese | |
parent | a22167725894101c3fcfc23b4fb56298e1c63eca (diff) | |
download | freebsd-ports-gnome-a843134c79c1c0040051d08078c60b573c25bee1.tar.gz freebsd-ports-gnome-a843134c79c1c0040051d08078c60b573c25bee1.tar.zst freebsd-ports-gnome-a843134c79c1c0040051d08078c60b573c25bee1.zip |
- Readd chinese/dictd-database
PR: 78111
Submitted by: Rong-En Fan <rafan@infor.org>
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/dictd-database/Makefile | 41 | ||||
-rw-r--r-- | chinese/dictd-database/distinfo | 2 | ||||
-rw-r--r-- | chinese/dictd-database/files/patch-aa | 11 | ||||
-rw-r--r-- | chinese/dictd-database/files/patch-ac | 13 | ||||
-rw-r--r-- | chinese/dictd-database/pkg-descr | 8 | ||||
-rw-r--r-- | chinese/dictd-database/pkg-message | 18 | ||||
-rw-r--r-- | chinese/dictd-database/pkg-plist | 9 |
8 files changed, 103 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 867c6869989b..e220a26080a8 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -35,6 +35,7 @@ SUBDIR += cwtex SUBDIR += cwtexttf SUBDIR += cxterm + 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..cd9439a6d93d --- /dev/null +++ b/chinese/dictd-database/Makefile @@ -0,0 +1,41 @@ +# 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.5 +CATEGORIES= chinese textproc +MASTER_SITES= ftp://freebsd.csie.ntu.edu.tw/users/rafan/ \ + ftp://freebsd.sinica.edu.tw/pub/statue/dictd-database/ +DISTNAME= dict-zh-${PORTVERSION} + +MAINTAINER= rafan@infor.org +COMMENT= A Chinese <-> English dictd words database + +BUILD_DEPENDS= ${LOCALBASE}/bin/dictfmt:${PORTSDIR}/textproc/dictfmt \ + ${LOCALBASE}/bin/dictzip:${PORTSDIR}/net/dictd + +USE_LIBTOOL_VER= 13 +USE_GMAKE= yes +USE_PERL5_BUILD=yes +USE_REINPLACE= yes + +MSG_FILE= ${PKGDIR}/pkg-message +PKGMESSAGE= ${WRKSRC}/pkg-message + +post-patch: + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/configure + +post-install: + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 502110 +BUILD_DEPENDS+= ${LOCALBASE}/share/locale/zh_TW.UTF-8/LC_CTYPE:${PORTSDIR}/misc/utf8locale +.endif + +.include <bsd.port.post.mk> diff --git a/chinese/dictd-database/distinfo b/chinese/dictd-database/distinfo new file mode 100644 index 000000000000..b9a07c8dbf84 --- /dev/null +++ b/chinese/dictd-database/distinfo @@ -0,0 +1,2 @@ +MD5 (dict-zh-1.5.tar.gz) = 0f1afe9a123700aa6a2441d7128e11d9 +SIZE (dict-zh-1.5.tar.gz) = 8544336 diff --git a/chinese/dictd-database/files/patch-aa b/chinese/dictd-database/files/patch-aa new file mode 100644 index 000000000000..4305e3d83ec1 --- /dev/null +++ b/chinese/dictd-database/files/patch-aa @@ -0,0 +1,11 @@ +--- Makefile.in.orig Wed Nov 28 02:53:55 2001 ++++ Makefile.in Fri Jul 19 02:15:58 2002 +@@ -75,7 +75,7 @@ + (cd $$subdir && $(MAKE)) || exit 1; \ + done + +-all:: $(EXES) ++all:: $(EXES) db + + db :: $(DATABASES) + diff --git a/chinese/dictd-database/files/patch-ac b/chinese/dictd-database/files/patch-ac new file mode 100644 index 000000000000..6376b4797cd4 --- /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=%%PREFIX%% ++datadir=%%PREFIX%%/lib + + echo Configuring for dict-misc + echo . diff --git a/chinese/dictd-database/pkg-descr b/chinese/dictd-database/pkg-descr new file mode 100644 index 000000000000..d95c3aa4d506 --- /dev/null +++ b/chinese/dictd-database/pkg-descr @@ -0,0 +1,8 @@ +A Chinese(Big5) <-> English dictd words database. + +pydict database have 177751 headwords. +moecomp database have 67263 headwords. +netterm database have 6477 headwords. +cedict database have 26348 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..77354db78505 --- /dev/null +++ b/chinese/dictd-database/pkg-message @@ -0,0 +1,18 @@ +***************************************************************************** + +You need to add following to /etc/rc.conf: + +dictd_flags="--locale zh_TW.UTF-8" + +And, you also need adding the following to PREFIX/etc/dictd.conf: + +database moecomp { data "PREFIX/lib/dict/moecomp.dict.dz" + index "PREFIX/lib/dict/moecomp.index" } +database netterm { data "PREFIX/lib/dict/netterm.dict.dz" + index "PREFIX/lib/dict/netterm.index" } +database pydict { data "PREFIX/lib/dict/pydict.dict.dz" + index "PREFIX/lib/dict/pydict.index" } +database cedict { data "PREFIX/lib/dict/cedict.dict.dz" + index "PREFIX/lib/dict/cedict.index" } + +***************************************************************************** diff --git a/chinese/dictd-database/pkg-plist b/chinese/dictd-database/pkg-plist new file mode 100644 index 000000000000..e082bfc6cdf5 --- /dev/null +++ b/chinese/dictd-database/pkg-plist @@ -0,0 +1,9 @@ +lib/dict/cedict.dict.dz +lib/dict/cedict.index +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 |