summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-11-06 14:37:35 +0000
committerijliao <ijliao@FreeBSD.org>2002-11-06 14:37:35 +0000
commita9bd2041c6588cd3dc7224fda4ac4f67b014927b (patch)
tree454e602e7836decda3d3c4a107e569ee4cfdfca7 /chinese
parent2482119663fbe31e36557d36a9bb109d07ddc4bc (diff)
downloadFreeBSD-ports-a9bd2041c6588cd3dc7224fda4ac4f67b014927b.zip
FreeBSD-ports-a9bd2041c6588cd3dc7224fda4ac4f67b014927b.tar.gz
add cdict5 1.3
Chinese-English dictionary
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/cdict5/Makefile45
-rw-r--r--chinese/cdict5/distinfo2
-rw-r--r--chinese/cdict5/files/patch-Makefile12
-rw-r--r--chinese/cdict5/pkg-descr15
-rw-r--r--chinese/cdict5/pkg-plist57
6 files changed, 132 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index f3bb932..8be053d4 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -19,6 +19,7 @@
SUBDIR += bitchx
SUBDIR += c2t
SUBDIR += cce
+ SUBDIR += cdict5
SUBDIR += celvis
SUBDIR += chinput
SUBDIR += chinput2
diff --git a/chinese/cdict5/Makefile b/chinese/cdict5/Makefile
new file mode 100644
index 0000000..f9b7180
--- /dev/null
+++ b/chinese/cdict5/Makefile
@@ -0,0 +1,45 @@
+# ex:ts=8
+# Ports collection makefile for: cdict5
+# Date created: Oct 31, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= cdict5
+PORTVERSION= 1.3
+PORTCOMMENT= Chinese-English dictionary
+CATEGORIES= chinese textproc
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= ijliao
+DISTFILES= cdict5.tgz cdict5-file.tgz
+EXTRACT_ONLY= cdict5.tgz
+
+MAINTAINER= ports@FreeBSD.org
+
+LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm
+
+.include <bsd.port.pre.mk>
+
+.if !exists(${DISTDIR}/cdict5-file.tgz)
+IGNORE= "You have to obtain 21st Century Dictionary v5.0 data files yourself"
+.endif
+
+USE_REINPLACE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+ALL_TARGET= # empty
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|/usr/local/lib/cdict5|${DATADIR}|" ${WRKSRC}/cdict5.h
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ ${TAR} -zxf ${DISTDIR}/cdict5-file.tgz -C ${DATADIR} && \
+ ${MV} ${DATADIR}/cdict5-file/* ${DATADIR} && \
+ ${RMDIR} ${DATADIR}/cdict5-file
+ (cd ${WRKSRC} ; \
+ ${SETENV} CFLAGS="${CFLAGS}" LOCALBASE="${LOCALBASE}" ${MAKE} index)
+ ${INSTALL_PROGRAM} ${WRKSRC}/cdict5 ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/Index.gdbm ${DATADIR}
+
+.include <bsd.port.post.mk>
diff --git a/chinese/cdict5/distinfo b/chinese/cdict5/distinfo
new file mode 100644
index 0000000..84ba15a
--- /dev/null
+++ b/chinese/cdict5/distinfo
@@ -0,0 +1,2 @@
+MD5 (cdict5.tgz) = 097b482240c64424c14524acd3f690ff
+MD5 (cdict5-file.tgz) = IGNORE
diff --git a/chinese/cdict5/files/patch-Makefile b/chinese/cdict5/files/patch-Makefile
new file mode 100644
index 0000000..359d440
--- /dev/null
+++ b/chinese/cdict5/files/patch-Makefile
@@ -0,0 +1,12 @@
+--- Makefile.orig Thu Oct 31 22:18:56 2002
++++ Makefile Thu Oct 31 22:19:26 2002
+@@ -1,6 +1,6 @@
+-CC=gcc
+-CFLAGS=-O2 -DPOSIX -D__unix__
+-LIBS=-lgdbm
++#CC=gcc
++CFLAGS+=-I${LOCALBASE}/include -DPOSIX -D__unix__
++LIBS=-L${LOCALBASE}/lib -lgdbm
+
+ cdict5: cdict5.o CE.o fnmatch.o getline.o
+ $(CC) cdict5.o CE.o fnmatch.o getline.o -o cdict5 $(LIBS)
diff --git a/chinese/cdict5/pkg-descr b/chinese/cdict5/pkg-descr
new file mode 100644
index 0000000..41dc62e
--- /dev/null
+++ b/chinese/cdict5/pkg-descr
@@ -0,0 +1,15 @@
+A paginator similar to "more" or "pg", but much more powerful and
+speaks Chinese.
+
+Cless is a port of GNU's less version 290 that suports the display of files
+written in the Chinese language using the GB (simple) or Big5 (complex)
+encodings. You can switch to reading of normal ASCII text by setting the
+environment LESSCHARSET to 'ascii'.
+
+Also, the help can be displayed in either Simple Chinese, Complex Chinese,
+or English by setting the LESSHELP environmental variable to the correct
+helpfile. Cless should be run w/in a CXterm or simular terminal emulator
+supporting Chinese language encodings.
+
+David O'Brien
+obrien@cs.ucdavis.edu
diff --git a/chinese/cdict5/pkg-plist b/chinese/cdict5/pkg-plist
new file mode 100644
index 0000000..e960938
--- /dev/null
+++ b/chinese/cdict5/pkg-plist
@@ -0,0 +1,57 @@
+bin/cdict5
+share/cdict5/Index.gdbm
+share/cdict5/a.d50
+share/cdict5/a.i50
+share/cdict5/b.d50
+share/cdict5/b.i50
+share/cdict5/c.d50
+share/cdict5/c.i50
+share/cdict5/ce.d50
+share/cdict5/ce.i50
+share/cdict5/d.d50
+share/cdict5/d.i50
+share/cdict5/e.d50
+share/cdict5/e.i50
+share/cdict5/f.d50
+share/cdict5/f.i50
+share/cdict5/g.d50
+share/cdict5/g.i50
+share/cdict5/h.d50
+share/cdict5/h.i50
+share/cdict5/i.d50
+share/cdict5/i.i50
+share/cdict5/j.d50
+share/cdict5/j.i50
+share/cdict5/k.d50
+share/cdict5/k.i50
+share/cdict5/l.d50
+share/cdict5/l.i50
+share/cdict5/m.d50
+share/cdict5/m.i50
+share/cdict5/n.d50
+share/cdict5/n.i50
+share/cdict5/o.d50
+share/cdict5/o.i50
+share/cdict5/p.d50
+share/cdict5/p.i50
+share/cdict5/q.d50
+share/cdict5/q.i50
+share/cdict5/r.d50
+share/cdict5/r.i50
+share/cdict5/s.d50
+share/cdict5/s.i50
+share/cdict5/t.d50
+share/cdict5/t.i50
+share/cdict5/u.d50
+share/cdict5/u.i50
+share/cdict5/v.d50
+share/cdict5/v.i50
+share/cdict5/w.d50
+share/cdict5/w.i50
+share/cdict5/x.d50
+share/cdict5/x.i50
+share/cdict5/y.d50
+share/cdict5/y.i50
+share/cdict5/z.d50
+share/cdict5/z.i50
+@dirrm share/cdict5
OpenPOWER on IntegriCloud