1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

xcin is a chinese input program.

PR:		ports/5164
Submitted by:	Yen-Shuo SU <yssu@CCCA.Nctu.edu.tw>
This commit is contained in:
Vanilla I. Shu 1997-12-15 17:57:54 +00:00
parent c5d1290f89
commit 4ee04e0666
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=9085
14 changed files with 464 additions and 0 deletions

36
chinese/xcin/Makefile Normal file
View File

@ -0,0 +1,36 @@
# New ports collection makefile for: xcin
# Version required: xcin-2.3.01
# Date created: Nov 28 ,1997
# Whom: Yen-Shuo Su <yssu@CCCA.NCTU.edu.tw>
#
# $Id$
#
DISTNAME= xcin-2.3.01
PKGNAME= zh-xcin-2.3.01
CATEGORIES= chinese x11
MASTER_SITES= ftp://ftp.ncu.edu.tw/OS/linux/chinese/xcin/ \
ftp://linux.cis.nctu.edu.tw/packages/chinese/xcin/
MAINTAINER= yssu@CCCA.NCTU.edu.tw
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/chinese/kc15.pcf.gz:${PORTSDIR}/chinese/kcfonts
USE_X11= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=-prefix="${X11BASE}" \
-x-font-prefix="${X11BASE}/lib/X11/fonts"
MAN1= xcin.1 cin2tab.1
.if !defined(USE_24_FONT)
pre-fetch:
@echo
@echo You can set USE_24_FONT=YES if you want to use 24 fonts
@echo as default when xcin is running.
@echo
.else
pre-configure:
CONFIGURE_ARGS+=-use-24-fonts
.endif
.include <bsd.port.mk>

1
chinese/xcin/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (xcin-2.3.01.tar.gz) = ff3a13e72524033a3baa2c0c257b5398

View File

@ -0,0 +1,73 @@
--- configure.orig Wed Nov 19 13:00:56 1997
+++ configure Mon Dec 15 10:43:02 1997
@@ -19,9 +19,10 @@
# Usage: configure [-help] [-prefix=PREFIX] [-bin-prefix=PREFIX]
# [-x-include-prefix=PREFIX] [-x-lib-prefix=PREFIX]
-# [-x-font-prefix=PREFIX]
+# [-x-font-prefix=PREFIX] [-use-24-fonts]
+use_24_fonts=0
for arg in $@; do
case $arg in
-bin-prefix=*)
@@ -34,6 +35,8 @@
x_lib_prefix=`echo $arg | sed 's/[-a-z]*=//'` ;;
-x-font-prefix=*)
x_font_prefix=`echo $arg | sed 's/[-a-z]*=//'` ;;
+ -use-24-fonts)
+ use_24_fonts=1 ;;
-help)
cat << EOF >&2
Usage: configure [-help] [-prefix=PREFIX] [-exec-prefix=PREFIX]
@@ -52,6 +55,8 @@
-x-font-prefix: Prefix dir of the X-win .pcf fonts.
+ -use-24-fonts: Use 24 Fonts
+
EOF
exit 0
;;
@@ -94,11 +99,11 @@
echo 'Chinese interface to setting up your XCIN system.'
echo
echo 'Do you want to use the Chinese interface [y/n]?'
-read chinese
+#read chinese
if [ "$chinese" = 'y' ] || [ "$chinese" = 'Y' ]; then
unique_file=script/configure.Cinstall
fi
-$srcdir/$unique_file -root=$srcdir -prefix=$prefix -bin-prefix=$bin_prefix -x-font-prefix=$x_font_prefix
+$srcdir/$unique_file -root=$srcdir -prefix=$prefix -bin-prefix=$bin_prefix -x-font-prefix=$x_font_prefix -use-24-fonts=$use_24_fonts
if [ "$?" = '1' ]; then
echo 'Stop!'
echo
@@ -155,7 +160,7 @@
# Test the -O2 for CFLAGS.
${CC-cc} -O2 conftest.c >/dev/null 2>&1
-test -f a.out && CFLAGS=-O2
+test -f a.out && CFLAGS="-O2 -m486"
CFLAGS="${CFLAGS--O}"
rm -f a.out
@@ -248,7 +253,7 @@
IFS="$saveifs"
fi
INSTALL=${INSTALL-cp}
-INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
+INSTALL_PROGRAM="/usr/bin/install -c -s"
INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
INSTALL_DIR=${INSTALL_DIR-mkdir}
@@ -800,7 +805,7 @@
grep $1 install.status | sed "s%$1=%%"
}
INSTALL_XCIN=`GetData INSTALL_XCIN`
-INSTALL_CRXVT=`GetData INSTALL_CRXVT`
+#INSTALL_CRXVT=`GetData INSTALL_CRXVT`
INSTALL_FONTS=`GetData INSTALL_FONTS`
INSTALL_INPTABS=`GetData INSTALL_INPTABS`
INSTALL_DOCS=`GetData INSTALL_DOCS`

View File

@ -0,0 +1,61 @@
--- script/configure.install.orig Wed Nov 19 13:16:00 1997
+++ script/configure.install Wed Dec 10 23:16:32 1997
@@ -11,6 +11,7 @@
# General setup.
#
+use_24_fonts=0
for arg in $@; do
case $arg in
-root=*)
@@ -21,6 +22,9 @@
BIN_PREFIX=`echo $arg | sed 's/[-a-z]*=//'` ;;
-x-font-prefix=*)
X_FONT_PREFIX=`echo $arg | sed 's/[-a-z]*=//'` ;;
+ -use-24-fonts=*)
+ echo "Use 24 fonts!!!!!!!!!!"
+ use_24_fonts=`echo $arg | sed 's/[-a-z0-9]*=//'` ;;
*) echo "Invalid arguement $arg. Stop."
exit 1 ;;
esac
@@ -105,10 +109,17 @@
PATH_XCIN_ETEN=
OPT_XCIN_DELETEK=0
- OPT_XCIN_CFONT=taipei15
- OPT_XCIN_EFONT=8x16
- OPT_CRXVT_CFONT=taipei15
- OPT_CRXVT_EFONT=8x16
+ if [ "$use_24_fonts" = '1' ]; then
+ OPT_XCIN_CFONT=kc24
+ OPT_XCIN_EFONT=12x24
+ OPT_CRXVT_CFONT=kc24
+ OPT_CRXVT_EFONT=12x24
+ else
+ OPT_XCIN_CFONT=kc15
+ OPT_XCIN_EFONT=8x15
+ OPT_CRXVT_CFONT=kc15
+ OPT_CRXVT_EFONT=8x15
+ fi
OPT_FONT_ET15=no
OPT_FONT_ET24K=no
OPT_FONT_ET24L=no
@@ -133,7 +144,7 @@
fi
test ! -z "$PREFIX" && PATH_XCIN_BIN=`echo $PREFIX | sed 's/\/$//'`/bin \
- && PATH_XCIN_DIR=`echo $PREFIX | sed 's/\/$//'`/xcin \
+ && PATH_XCIN_DIR=`echo $PREFIX/lib/X11 | sed 's/\/$//'`/xcin \
&& PATH_XCIN_MAN=`echo $PREFIX | sed 's/\/$//'`/man
test ! -z "$BIN_PREFIX" && PATH_XCIN_BIN=`echo $BIN_PREFIX | sed 's/\/$//'`/bin
test ! -z "$X_FONT_PREFIX" && PATH_XCIN_CFONT=`echo $X_FONT_PREFIX | sed 's/\/$//'`/chinese \
@@ -258,7 +269,8 @@
EOF
$ECHO 'Your choice [CDFHISQUX123456] : '
-read ch
+#read ch
+ch=s
echo
case $ch in

1
chinese/xcin/pkg-comment Normal file
View File

@ -0,0 +1 @@
A chinese input utility in X.

15
chinese/xcin/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
Thanks to Mr. Edward Der-Hua Liu and others who developed the xcin
system. With the wonderful program, we can do a lot of operation with
Chinese under X-window in the UN*X world. As time goes on, more and
more people use it, and more and more comments appear. The package
upgraded with time but it seems that the install process is not
convenient and self-consistent. These confuse a lot of people,
especially for new users in the UN*X world. We often see the `Big FAQs'
about xcin such as `how can I install the Chinese fonts' or `the
cj2cin command not found' or `the crxvt terminal is too big!!' or
something appears in the newsgroup again and again. In fact, such
problems are easy to modify. Beasuse I really like this program and
feel that I may do something to improve this package, so I try my best
to re-write the Makefiles and auto-configuration programs of this
package to try to solve these troubles. This comes the `xcin-2.3'
project.

45
chinese/xcin/pkg-plist Normal file
View File

@ -0,0 +1,45 @@
bin/xcin
lib/X11/xcin/3-dayi.cin
lib/X11/xcin/3-dayi.tab
lib/X11/xcin/3-dayi.tab.rev
lib/X11/xcin/array30.cin
lib/X11/xcin/array30.tab
lib/X11/xcin/array30.tab.phr
lib/X11/xcin/array30.tab.quick
lib/X11/xcin/array30.tab.rev
lib/X11/xcin/cin2tab
lib/X11/xcin/docs/Boshiamy.HOWTO
lib/X11/xcin/docs/README.xcin
lib/X11/xcin/docs/XCIN.client.doc
lib/X11/xcin/docs/Xfonts.HOWTO
lib/X11/xcin/docs/cin2tab.HOWTO
lib/X11/xcin/docs/xcin.HOWTO
lib/X11/xcin/et.kbm
lib/X11/xcin/et26.kbm
lib/X11/xcin/hsu.kbm
lib/X11/xcin/lphrase
lib/X11/xcin/pho.sel1st
lib/X11/xcin/pho.tab
lib/X11/xcin/phone.cin
lib/X11/xcin/phone.tab
lib/X11/xcin/phone.tab.rev
lib/X11/xcin/phs_out
lib/X11/xcin/pin2tsin
lib/X11/xcin/pinyin.cin
lib/X11/xcin/pinyin.tab
lib/X11/xcin/pinyin.tab.rev
lib/X11/xcin/sample.phs.out
lib/X11/xcin/tsa2d
lib/X11/xcin/tsd2a
lib/X11/xcin/tsin
lib/X11/xcin/tsin.idx
lib/X11/xcin/tsin_pin.map
lib/X11/xcin/voca.box
lib/X11/xcin/zmdbosh.cin
lib/X11/xcin/zmdbosh.tab
lib/X11/xcin/zmdbosh.tab.rev
lib/X11/xcin/zo.kbm
man/man1/cin2tab.1.gz
man/man1/xcin.1.gz
@dirrm lib/X11/xcin/docs
@dirrm lib/X11/xcin

36
chinese/xcin25/Makefile Normal file
View File

@ -0,0 +1,36 @@
# New ports collection makefile for: xcin
# Version required: xcin-2.3.01
# Date created: Nov 28 ,1997
# Whom: Yen-Shuo Su <yssu@CCCA.NCTU.edu.tw>
#
# $Id$
#
DISTNAME= xcin-2.3.01
PKGNAME= zh-xcin-2.3.01
CATEGORIES= chinese x11
MASTER_SITES= ftp://ftp.ncu.edu.tw/OS/linux/chinese/xcin/ \
ftp://linux.cis.nctu.edu.tw/packages/chinese/xcin/
MAINTAINER= yssu@CCCA.NCTU.edu.tw
RUN_DEPENDS= ${X11BASE}/lib/X11/fonts/chinese/kc15.pcf.gz:${PORTSDIR}/chinese/kcfonts
USE_X11= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=-prefix="${X11BASE}" \
-x-font-prefix="${X11BASE}/lib/X11/fonts"
MAN1= xcin.1 cin2tab.1
.if !defined(USE_24_FONT)
pre-fetch:
@echo
@echo You can set USE_24_FONT=YES if you want to use 24 fonts
@echo as default when xcin is running.
@echo
.else
pre-configure:
CONFIGURE_ARGS+=-use-24-fonts
.endif
.include <bsd.port.mk>

1
chinese/xcin25/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (xcin-2.3.01.tar.gz) = ff3a13e72524033a3baa2c0c257b5398

View File

@ -0,0 +1,73 @@
--- configure.orig Wed Nov 19 13:00:56 1997
+++ configure Mon Dec 15 10:43:02 1997
@@ -19,9 +19,10 @@
# Usage: configure [-help] [-prefix=PREFIX] [-bin-prefix=PREFIX]
# [-x-include-prefix=PREFIX] [-x-lib-prefix=PREFIX]
-# [-x-font-prefix=PREFIX]
+# [-x-font-prefix=PREFIX] [-use-24-fonts]
+use_24_fonts=0
for arg in $@; do
case $arg in
-bin-prefix=*)
@@ -34,6 +35,8 @@
x_lib_prefix=`echo $arg | sed 's/[-a-z]*=//'` ;;
-x-font-prefix=*)
x_font_prefix=`echo $arg | sed 's/[-a-z]*=//'` ;;
+ -use-24-fonts)
+ use_24_fonts=1 ;;
-help)
cat << EOF >&2
Usage: configure [-help] [-prefix=PREFIX] [-exec-prefix=PREFIX]
@@ -52,6 +55,8 @@
-x-font-prefix: Prefix dir of the X-win .pcf fonts.
+ -use-24-fonts: Use 24 Fonts
+
EOF
exit 0
;;
@@ -94,11 +99,11 @@
echo 'Chinese interface to setting up your XCIN system.'
echo
echo 'Do you want to use the Chinese interface [y/n]?'
-read chinese
+#read chinese
if [ "$chinese" = 'y' ] || [ "$chinese" = 'Y' ]; then
unique_file=script/configure.Cinstall
fi
-$srcdir/$unique_file -root=$srcdir -prefix=$prefix -bin-prefix=$bin_prefix -x-font-prefix=$x_font_prefix
+$srcdir/$unique_file -root=$srcdir -prefix=$prefix -bin-prefix=$bin_prefix -x-font-prefix=$x_font_prefix -use-24-fonts=$use_24_fonts
if [ "$?" = '1' ]; then
echo 'Stop!'
echo
@@ -155,7 +160,7 @@
# Test the -O2 for CFLAGS.
${CC-cc} -O2 conftest.c >/dev/null 2>&1
-test -f a.out && CFLAGS=-O2
+test -f a.out && CFLAGS="-O2 -m486"
CFLAGS="${CFLAGS--O}"
rm -f a.out
@@ -248,7 +253,7 @@
IFS="$saveifs"
fi
INSTALL=${INSTALL-cp}
-INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
+INSTALL_PROGRAM="/usr/bin/install -c -s"
INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
INSTALL_DIR=${INSTALL_DIR-mkdir}
@@ -800,7 +805,7 @@
grep $1 install.status | sed "s%$1=%%"
}
INSTALL_XCIN=`GetData INSTALL_XCIN`
-INSTALL_CRXVT=`GetData INSTALL_CRXVT`
+#INSTALL_CRXVT=`GetData INSTALL_CRXVT`
INSTALL_FONTS=`GetData INSTALL_FONTS`
INSTALL_INPTABS=`GetData INSTALL_INPTABS`
INSTALL_DOCS=`GetData INSTALL_DOCS`

View File

@ -0,0 +1,61 @@
--- script/configure.install.orig Wed Nov 19 13:16:00 1997
+++ script/configure.install Wed Dec 10 23:16:32 1997
@@ -11,6 +11,7 @@
# General setup.
#
+use_24_fonts=0
for arg in $@; do
case $arg in
-root=*)
@@ -21,6 +22,9 @@
BIN_PREFIX=`echo $arg | sed 's/[-a-z]*=//'` ;;
-x-font-prefix=*)
X_FONT_PREFIX=`echo $arg | sed 's/[-a-z]*=//'` ;;
+ -use-24-fonts=*)
+ echo "Use 24 fonts!!!!!!!!!!"
+ use_24_fonts=`echo $arg | sed 's/[-a-z0-9]*=//'` ;;
*) echo "Invalid arguement $arg. Stop."
exit 1 ;;
esac
@@ -105,10 +109,17 @@
PATH_XCIN_ETEN=
OPT_XCIN_DELETEK=0
- OPT_XCIN_CFONT=taipei15
- OPT_XCIN_EFONT=8x16
- OPT_CRXVT_CFONT=taipei15
- OPT_CRXVT_EFONT=8x16
+ if [ "$use_24_fonts" = '1' ]; then
+ OPT_XCIN_CFONT=kc24
+ OPT_XCIN_EFONT=12x24
+ OPT_CRXVT_CFONT=kc24
+ OPT_CRXVT_EFONT=12x24
+ else
+ OPT_XCIN_CFONT=kc15
+ OPT_XCIN_EFONT=8x15
+ OPT_CRXVT_CFONT=kc15
+ OPT_CRXVT_EFONT=8x15
+ fi
OPT_FONT_ET15=no
OPT_FONT_ET24K=no
OPT_FONT_ET24L=no
@@ -133,7 +144,7 @@
fi
test ! -z "$PREFIX" && PATH_XCIN_BIN=`echo $PREFIX | sed 's/\/$//'`/bin \
- && PATH_XCIN_DIR=`echo $PREFIX | sed 's/\/$//'`/xcin \
+ && PATH_XCIN_DIR=`echo $PREFIX/lib/X11 | sed 's/\/$//'`/xcin \
&& PATH_XCIN_MAN=`echo $PREFIX | sed 's/\/$//'`/man
test ! -z "$BIN_PREFIX" && PATH_XCIN_BIN=`echo $BIN_PREFIX | sed 's/\/$//'`/bin
test ! -z "$X_FONT_PREFIX" && PATH_XCIN_CFONT=`echo $X_FONT_PREFIX | sed 's/\/$//'`/chinese \
@@ -258,7 +269,8 @@
EOF
$ECHO 'Your choice [CDFHISQUX123456] : '
-read ch
+#read ch
+ch=s
echo
case $ch in

View File

@ -0,0 +1 @@
A chinese input utility in X.

15
chinese/xcin25/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
Thanks to Mr. Edward Der-Hua Liu and others who developed the xcin
system. With the wonderful program, we can do a lot of operation with
Chinese under X-window in the UN*X world. As time goes on, more and
more people use it, and more and more comments appear. The package
upgraded with time but it seems that the install process is not
convenient and self-consistent. These confuse a lot of people,
especially for new users in the UN*X world. We often see the `Big FAQs'
about xcin such as `how can I install the Chinese fonts' or `the
cj2cin command not found' or `the crxvt terminal is too big!!' or
something appears in the newsgroup again and again. In fact, such
problems are easy to modify. Beasuse I really like this program and
feel that I may do something to improve this package, so I try my best
to re-write the Makefiles and auto-configuration programs of this
package to try to solve these troubles. This comes the `xcin-2.3'
project.

45
chinese/xcin25/pkg-plist Normal file
View File

@ -0,0 +1,45 @@
bin/xcin
lib/X11/xcin/3-dayi.cin
lib/X11/xcin/3-dayi.tab
lib/X11/xcin/3-dayi.tab.rev
lib/X11/xcin/array30.cin
lib/X11/xcin/array30.tab
lib/X11/xcin/array30.tab.phr
lib/X11/xcin/array30.tab.quick
lib/X11/xcin/array30.tab.rev
lib/X11/xcin/cin2tab
lib/X11/xcin/docs/Boshiamy.HOWTO
lib/X11/xcin/docs/README.xcin
lib/X11/xcin/docs/XCIN.client.doc
lib/X11/xcin/docs/Xfonts.HOWTO
lib/X11/xcin/docs/cin2tab.HOWTO
lib/X11/xcin/docs/xcin.HOWTO
lib/X11/xcin/et.kbm
lib/X11/xcin/et26.kbm
lib/X11/xcin/hsu.kbm
lib/X11/xcin/lphrase
lib/X11/xcin/pho.sel1st
lib/X11/xcin/pho.tab
lib/X11/xcin/phone.cin
lib/X11/xcin/phone.tab
lib/X11/xcin/phone.tab.rev
lib/X11/xcin/phs_out
lib/X11/xcin/pin2tsin
lib/X11/xcin/pinyin.cin
lib/X11/xcin/pinyin.tab
lib/X11/xcin/pinyin.tab.rev
lib/X11/xcin/sample.phs.out
lib/X11/xcin/tsa2d
lib/X11/xcin/tsd2a
lib/X11/xcin/tsin
lib/X11/xcin/tsin.idx
lib/X11/xcin/tsin_pin.map
lib/X11/xcin/voca.box
lib/X11/xcin/zmdbosh.cin
lib/X11/xcin/zmdbosh.tab
lib/X11/xcin/zmdbosh.tab.rev
lib/X11/xcin/zo.kbm
man/man1/cin2tab.1.gz
man/man1/xcin.1.gz
@dirrm lib/X11/xcin/docs
@dirrm lib/X11/xcin