diff options
author | chuckr <chuckr@FreeBSD.org> | 1996-09-18 06:51:49 +0800 |
---|---|---|
committer | chuckr <chuckr@FreeBSD.org> | 1996-09-18 06:51:49 +0800 |
commit | 0e1ecc111555f8f4f40ba8370e6f89e5ecaeaf9d (patch) | |
tree | 4d3e42e50ee4368e397db42a0e042620272b0499 /chinese | |
parent | 3c4d59f63bd8b811f0af782b0d59aa41448d5757 (diff) | |
download | freebsd-ports-gnome-0e1ecc111555f8f4f40ba8370e6f89e5ecaeaf9d.tar.gz freebsd-ports-gnome-0e1ecc111555f8f4f40ba8370e6f89e5ecaeaf9d.tar.zst freebsd-ports-gnome-0e1ecc111555f8f4f40ba8370e6f89e5ecaeaf9d.zip |
New chinese language port, cxterm, tested and ready!
Submitted by: David O'Brien
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/cxterm/Makefile | 42 | ||||
-rw-r--r-- | chinese/cxterm/distinfo | 1 | ||||
-rw-r--r-- | chinese/cxterm/files/patch-aa | 21 | ||||
-rw-r--r-- | chinese/cxterm/files/patch-ab | 22 | ||||
-rw-r--r-- | chinese/cxterm/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/cxterm/pkg-descr | 10 | ||||
-rw-r--r-- | chinese/cxterm/pkg-plist | 53 | ||||
-rw-r--r-- | chinese/cxterm/scripts/pre-install | 21 |
8 files changed, 171 insertions, 0 deletions
diff --git a/chinese/cxterm/Makefile b/chinese/cxterm/Makefile new file mode 100644 index 000000000000..d3e7f050eaf5 --- /dev/null +++ b/chinese/cxterm/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: cxterm +# Version required: 5.0 +# Date created: Sat Aug 10, 1996 +# Whom: David O'Brien (obrien@cs.ucdavis.edu) +# +# $Id: Makefile,v 1.1.1.1 1996/08/09 04:17:16 asami Exp $ +# + +DISTNAME= cxterm5.0.p3 +PKGNAME= ${DISTNAME:S/cxterm/cxterm-/:S/p//} +CATEGORIES+= chinese x11 +MASTER_SITES= ftp://ftp.cs.purdue.edu/pub/ygz/ \ + ftp://ftp.ifcss.org/pub/software/x-win/cxterm/ \ + ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/x-win/cxterm/ \ + ftp://ftp.edu.tw/Chinese/ifcss/software/x-win/cxterm/ \ + ftp://ftp.mpi-sb.mpg.de/pub/chinese/mirror/ftp.ifcss.org/software/x-win/cxterm/ + + +MAINTAINER= obrien@cs.ucdavis.edu + +WRKSRC= ${WRKDIR}/cxterm-5.0 +USE_IMAKE= yes + +XMKMF= xmkmf +ALL_TARGET= xrelease Makefiles includes all + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/CXterm.sh \ + ${PREFIX}/bin/CXterm + # standard X11 place + ${INSTALL_DATA} ${WRKDIR}/CXterm.ad \ + ${PREFIX}/lib/X11/app-defaults/CXterm + # standard CXterm place + ${INSTALL_DATA} ${WRKDIR}/CXterm.ad \ + ${PREFIX}/lib/X11/cxterm.dic/ +.if !defined(NOPORTDOCS) + mkdir -p ${PREFIX}/share/doc/cxterm + ${INSTALL_DATA} ${WRKSRC}/Doc/CXTERM.FAQ ${PREFIX}/share/doc/cxterm + ${INSTALL_DATA} ${WRKSRC}/Doc/input.doc ${PREFIX}/share/doc/cxterm +.endif + +.include <bsd.port.mk> diff --git a/chinese/cxterm/distinfo b/chinese/cxterm/distinfo new file mode 100644 index 000000000000..9c2292964a35 --- /dev/null +++ b/chinese/cxterm/distinfo @@ -0,0 +1 @@ +MD5 (cxterm5.0.p3.tar.gz) = de542ec3e12b04f5589a7c1583d8c512 diff --git a/chinese/cxterm/files/patch-aa b/chinese/cxterm/files/patch-aa new file mode 100644 index 000000000000..84c1c3f409cf --- /dev/null +++ b/chinese/cxterm/files/patch-aa @@ -0,0 +1,21 @@ +--- cxterm/misc.c.orig Tue Jan 17 02:57:48 1995 ++++ cxterm/misc.c Sat Aug 10 05:46:57 1996 +@@ -34,6 +34,7 @@ + * SOFTWARE. + */ + ++#include <sys/param.h> + #include "ptyx.h" /* X headers included here. */ + + #include <X11/Xos.h> +@@ -796,8 +797,10 @@ + char *SysErrorMsg (n) + int n; + { ++#if !(defined(BSD) && (BSD >= 199306)) + extern char *sys_errlist[]; + extern int sys_nerr; ++#endif + + return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error"); + } diff --git a/chinese/cxterm/files/patch-ab b/chinese/cxterm/files/patch-ab new file mode 100644 index 000000000000..6936e6a8e08e --- /dev/null +++ b/chinese/cxterm/files/patch-ab @@ -0,0 +1,22 @@ +--- scripts/CXterm.sh.orig Tue Jan 31 20:05:00 1995 ++++ scripts/CXterm.sh Sat Aug 24 14:36:03 1996 +@@ -11,14 +11,17 @@ + check_use_font () + { + for f in "$@" ; do +- if [ "`xlsfonts $f 2>/dev/null`" = "$f" ]; then ++ # the awk'ing is needed if $f exists in more than one font dir - DEO ++ TRYFONT=`xlsfonts $f 2>/dev/null | /usr/bin/awk '{print $1 ; exit}'` ++ if [ "$TRYFONT" = "$f" ]; then + echo $f + return 0 + fi + done + xset fp+ "$XFONTDIR" + for f in "$@" ; do +- if [ "`xlsfonts $f 2>/dev/null`" = "$f" ]; then ++ TRYFONT=`xlsfonts $f 2>/dev/null | /uar/bin/awk '{print $1 ; exit}'` ++ if [ "$TRYFONT" = "$f" ]; then + echo $f + return 0 + fi diff --git a/chinese/cxterm/pkg-comment b/chinese/cxterm/pkg-comment new file mode 100644 index 000000000000..70312f63b70a --- /dev/null +++ b/chinese/cxterm/pkg-comment @@ -0,0 +1 @@ +An xterm that speaks Chinese diff --git a/chinese/cxterm/pkg-descr b/chinese/cxterm/pkg-descr new file mode 100644 index 000000000000..7ee9f2c8c4b2 --- /dev/null +++ b/chinese/cxterm/pkg-descr @@ -0,0 +1,10 @@ +cxterm is a xterm replacement with Chinese (Simple/GB and Complex/Big5) +support. This version of cxterm is derived from the X11R6 xterm, and thus +has simular capabilities. + +Note, if you are a new user, or not quite understand X resources or X font +paths, etc., simply use the command "CXterm". + + +David O'Brien +obrien@cs.ucdavis.edu diff --git a/chinese/cxterm/pkg-plist b/chinese/cxterm/pkg-plist new file mode 100644 index 000000000000..32aa9b8996ce --- /dev/null +++ b/chinese/cxterm/pkg-plist @@ -0,0 +1,53 @@ +bin/cxterm +bin/tit2cit +bin/cit2tit +bin/hzimctrl +bin/CXterm +man/man1/cxterm.1.gz +man/man1/tit2cit.1.gz +man/man1/cit2tit.1.gz +man/man1/hzimctrl.1.gz +lib/X11/cxterm.dic/gb/CCDOSPY.cit +lib/X11/cxterm.dic/gb/CTLau.cit +lib/X11/cxterm.dic/gb/CangJie.cit +lib/X11/cxterm.dic/gb/English.cit +lib/X11/cxterm.dic/gb/HIRAGANA.cit +lib/X11/cxterm.dic/gb/KATAKANA.cit +lib/X11/cxterm.dic/gb/PY.cit +lib/X11/cxterm.dic/gb/Punct.cit +lib/X11/cxterm.dic/gb/QJ.cit +lib/X11/cxterm.dic/gb/QianMa.cit +lib/X11/cxterm.dic/gb/SW.cit +lib/X11/cxterm.dic/gb/TONEPY.cit +lib/X11/cxterm.dic/gb/TeleCode.cit +lib/X11/cxterm.dic/gb/WuBi.cit +lib/X11/cxterm.dic/gb/simple.lx +lib/X11/cxterm.dic/big5/4Corner.cit +lib/X11/cxterm.dic/big5/ARRAY30.cit +lib/X11/cxterm.dic/big5/Boshiamy.cit +lib/X11/cxterm.dic/big5/CangJie.cit +lib/X11/cxterm.dic/big5/ETZY.cit +lib/X11/cxterm.dic/big5/English.cit +lib/X11/cxterm.dic/big5/HSU.cit +lib/X11/cxterm.dic/big5/PY.cit +lib/X11/cxterm.dic/big5/Punct.cit +lib/X11/cxterm.dic/big5/QJ.cit +lib/X11/cxterm.dic/big5/Simplex.cit +lib/X11/cxterm.dic/big5/ZOZY.cit +lib/X11/cxterm.dic/big5/simple.lx +lib/X11/cxterm.dic/jis/Punct.cit +lib/X11/cxterm.dic/jis/QJ.cit +lib/X11/cxterm.dic/jis/ROMKANA.cit +lib/X11/cxterm.dic/jis/TCODE.cit +lib/X11/cxterm.dic/ks/HANGUL.cit +lib/X11/cxterm.dic/ks/HANJA.cit +lib/X11/cxterm.dic/ks/Punct.cit +lib/X11/cxterm.dic/ks/QJ.cit +lib/X11/fonts/chinese/gb16st.pcf.Z +lib/X11/fonts/chinese/hku16et.pcf.Z +lib/X11/fonts/chinese/fonts.dir +lib/X11/fonts/chinese/fonts.alias +lib/X11/app-defaults/CXterm +lib/X11/cxterm.dic/CXterm.ad +share/doc/cxterm/CXTERM.FAQ +share/doc/cxterm/input.doc diff --git a/chinese/cxterm/scripts/pre-install b/chinese/cxterm/scripts/pre-install new file mode 100644 index 000000000000..00ffeed0a712 --- /dev/null +++ b/chinese/cxterm/scripts/pre-install @@ -0,0 +1,21 @@ +#!/bin/sh -x + +# set up the resource file +RESFILE=${PREFIX}/lib/X11/cxterm.dic +sed -e 's|^\(cxterm[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/gb|; + s|^\(cxtermb5[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/big5| + s|^\(cxtermjis[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/jis| + s|^\(cxtermks[*.].*hanziInputDir:\).*$|\1 '"${RESFILE}"'/ks|' \ + ${WRKSRC}/cxterm/CXterm.ad > ${WRKDIR}/CXterm.ad + + +# setup helper script +echo "creating CXterm script for inexperienced users" +CXTERM_SH=${WRKDIR}/CXterm.sh + +echo "#!/bin/sh" > $CXTERM_SH +echo "" >> $CXTERM_SH +echo "CXTERM_AD=${PREFIX}/lib/X11/cxterm.dic/CXterm.ad" >> $CXTERM_SH +echo "XFONTDIR=${PREFIX}/lib/X11/fonts/chinese" >> $CXTERM_SH +echo "" >> $CXTERM_SH +/bin/cat ${WRKSRC}/scripts/CXterm.sh >> $CXTERM_SH |