mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New chinese language port, cxterm, tested and ready!
Submitted by: David O'Brien
This commit is contained in:
parent
6bf31ff92d
commit
97f9ab6d19
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3798
42
chinese/cxterm/Makefile
Normal file
42
chinese/cxterm/Makefile
Normal file
@ -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>
|
1
chinese/cxterm/distinfo
Normal file
1
chinese/cxterm/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (cxterm5.0.p3.tar.gz) = de542ec3e12b04f5589a7c1583d8c512
|
21
chinese/cxterm/files/patch-aa
Normal file
21
chinese/cxterm/files/patch-aa
Normal file
@ -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");
|
||||
}
|
22
chinese/cxterm/files/patch-ab
Normal file
22
chinese/cxterm/files/patch-ab
Normal file
@ -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
|
1
chinese/cxterm/pkg-comment
Normal file
1
chinese/cxterm/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An xterm that speaks Chinese
|
10
chinese/cxterm/pkg-descr
Normal file
10
chinese/cxterm/pkg-descr
Normal file
@ -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
|
53
chinese/cxterm/pkg-plist
Normal file
53
chinese/cxterm/pkg-plist
Normal file
@ -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
|
21
chinese/cxterm/scripts/pre-install
Normal file
21
chinese/cxterm/scripts/pre-install
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user