aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f3bb93222766..8be053d45b35 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 000000000000..f9b7180c4768
--- /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 000000000000..84ba15a703d3
--- /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 000000000000..359d440258b0
--- /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 000000000000..41dc62eabe48
--- /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 000000000000..e960938e0629
--- /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