Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 1997 11:52:56 +0800 (CST)
From:      yssu@CCCA.NCTU.edu.tw
To:        FreeBSD-gnats-submit@FreeBSD.ORG, yssu@CCCA.NCTU.edu.tw
Subject:   ports/5164: New ports: zh-xcin-2.3.01,
Message-ID:  <199711280352.LAA25384@serv.ccca.nctu.edu.tw>
Resent-Message-ID: <199711280400.UAA16619@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         5164
>Category:       ports
>Synopsis:       New ports
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 27 20:00:01 PST 1997
>Last-Modified:
>Originator:     Yen-Shuo Su
>Organization:
Campus Comupter Communication Association
>Release:        FreeBSD 2.2.5-STABLE i386
>Environment:


>Description:

	New ports, please.

>How-To-Repeat:


>Fix:
	
	New ports directory diff file as following.
	Also available under
		ftp://ftp.me.nctu.edu.tw/Packages/FreeBSD/ports/chinese/xcin

diff -ruN xcin.orig/Makefile xcin/Makefile
--- xcin.orig/Makefile	Thu Jan  1 08:00:00 1970
+++ xcin/Makefile	Fri Nov 28 11:47:55 1997
@@ -0,0 +1,41 @@
+# 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$
+#
+
+# Pick an initial default, else it doesn't get set in the INDEX.
+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
+
+USE_24_FONT=	no
+USE_X11=	yes
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS+=-prefix="${X11BASE}" \
+		-x-font-prefix="${X11BASE}/lib/X11/fonts"
+
+MAN1=		xcin.1 crxvt.1 cin2tab.1
+
+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
+
+pre-configure:
+.if ${USE_24_FONT} == YES || ${USE_24_FONT} == yes
+CONFIGURE_ARGS+=-use-24-fonts
+RUN_DEPENDS=	${X11BASE}/lib/X11/fonts/misc/taipei24.pcf.Z:${PORTSDIR}/chinese/big5fonts
+.else
+RUN_DEPENDS=	${X11BASE}/lib/X11/fonts/misc/taipei16.pcf.Z:${PORTSDIR}/chinese/big5fonts
+.endif
+
+
+.include <bsd.port.mk>
diff -ruN xcin.orig/files/md5 xcin/files/md5
--- xcin.orig/files/md5	Thu Jan  1 08:00:00 1970
+++ xcin/files/md5	Fri Nov 28 11:00:09 1997
@@ -0,0 +1 @@
+MD5 (xcin-2.3.01.tar.gz) = ff3a13e72524033a3baa2c0c257b5398
diff -ruN xcin.orig/patches/patch-aa xcin/patches/patch-aa
--- xcin.orig/patches/patch-aa	Thu Jan  1 08:00:00 1970
+++ xcin/patches/patch-aa	Fri Nov 28 11:15:18 1997
@@ -0,0 +1,46 @@
+--- configure.orig	Wed Nov 19 13:00:56 1997
++++ configure	Fri Nov 28 11:13:45 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
diff -ruN xcin.orig/patches/patch-ab xcin/patches/patch-ab
--- xcin.orig/patches/patch-ab	Thu Jan  1 08:00:00 1970
+++ xcin/patches/patch-ab	Fri Nov 28 11:29:52 1997
@@ -0,0 +1,57 @@
+--- script/configure.install.orig	Wed Nov 19 13:16:00 1997
++++ script/configure.install	Fri Nov 28 11:29:42 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
++    if [ "$use_24_fonts" = '1' ]; then
++    OPT_XCIN_CFONT=taipei24
++    OPT_XCIN_EFONT=12x24
++    OPT_CRXVT_CFONT=taipei24
++    OPT_CRXVT_EFONT=12x24
++    else
+     OPT_XCIN_CFONT=taipei15
+     OPT_XCIN_EFONT=8x16
+     OPT_CRXVT_CFONT=taipei15
+     OPT_CRXVT_EFONT=8x16
++    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
diff -ruN xcin.orig/patches/patch-ac xcin/patches/patch-ac
--- xcin.orig/patches/patch-ac	Thu Jan  1 08:00:00 1970
+++ xcin/patches/patch-ac	Fri Nov 28 10:55:08 1997
@@ -0,0 +1,34 @@
+--- fonts/source/Makefile.in.orig	Wed Nov 26 03:00:13 1997
++++ fonts/source/Makefile.in	Wed Nov 26 03:00:58 1997
+@@ -44,7 +44,9 @@
+ install: all @INSTALLALL@
+ 
+ install.fonts:
+-	ff=`ls ../* | grep pcf`
++	if [ "X"$(FONTS) != "X" ]; then \
++		ff=`ls ../* | grep pcf`; \
++	fi
+ 	if [ ! -z "$ff" ]; then \
+ 	    for f in $$ff; do cat $$f | compress > $$f.Z; rm $$f; done \
+ 	fi
+@@ -54,15 +56,17 @@
+ 	        $(INSTALL_DATA) $$f $(PATH_XCIN_EFONT);\
+ 		echo $(PATH_XCIN_EFONT)/`basename $$f` >> ../filelist;\
+ 	    done;\
+-	    mkfontdir $(PATH_XCIN_EFONT);\
++	    $(X11BASE)/bin/mkfontdir $(PATH_XCIN_EFONT);\
+ 	fi
+ 	if [ ! -d $(PATH_XCIN_CFONT) ]; then $(INSTALL_DIR) $(PATH_XCIN_CFONT); fi
+ 	for f in `ls ../*.pcf.Z`; do\
+ 	    $(INSTALL_DATA) $$f $(PATH_XCIN_CFONT);\
+ 	    echo $(PATH_XCIN_CFONT)/`basename $$f` >> ../filelist;\
+ 	done
+-	mkfontdir $(PATH_XCIN_CFONT)
+-	cat $(PATH_XCIN_CFONT)/fonts.dir | awk 'NR>1 {print}' | sed 's/\.pcf\.Z//' > ../fonts.alias
++	$(X11BASE)/bin/mkfontdir $(PATH_XCIN_CFONT)
++	if [ -f $(PATH_XCIN_CFONT)/fonts.dir ]; then \
++		cat $(PATH_XCIN_CFONT)/fonts.dir | awk 'NR>1 {print}' | sed 's/\.pcf\.Z//' > ../fonts.alias; \
++	fi
+ 
+ install.et2bdf:
+ 	if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi
diff -ruN xcin.orig/pkg/COMMENT xcin/pkg/COMMENT
--- xcin.orig/pkg/COMMENT	Thu Jan  1 08:00:00 1970
+++ xcin/pkg/COMMENT	Fri Nov 28 10:55:07 1997
@@ -0,0 +1 @@
+XCIN version 2.3.01 Package. A chinese input utility in X.
diff -ruN xcin.orig/pkg/DESCR xcin/pkg/DESCR
--- xcin.orig/pkg/DESCR	Thu Jan  1 08:00:00 1970
+++ xcin/pkg/DESCR	Fri Nov 28 10:55:08 1997
@@ -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. 
diff -ruN xcin.orig/pkg/PLIST xcin/pkg/PLIST
--- xcin.orig/pkg/PLIST	Thu Jan  1 08:00:00 1970
+++ xcin/pkg/PLIST	Fri Nov 28 10:55:08 1997
@@ -0,0 +1,45 @@
+bin/crxvt
+man/man1/xcin.1.gz
+man/man1/crxvt.1.gz
+man/man1/cin2tab.1.gz
+lib/X11/xcin/docs/xcin.HOWTO
+lib/X11/xcin/docs/cin2tab.HOWTO
+lib/X11/xcin/docs/Boshiamy.HOWTO
+lib/X11/xcin/docs/Xfonts.HOWTO
+lib/X11/xcin/docs/README.xcin
+lib/X11/xcin/docs/XCIN.client.doc
+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/phone.cin
+lib/X11/xcin/phone.tab
+lib/X11/xcin/phone.tab.rev
+lib/X11/xcin/pinyin.cin
+lib/X11/xcin/pinyin.tab
+lib/X11/xcin/pinyin.tab.rev
+lib/X11/xcin/zmdbosh.cin
+lib/X11/xcin/zmdbosh.tab
+lib/X11/xcin/zmdbosh.tab.rev
+bin/xcin
+lib/X11/xcin/tsin
+lib/X11/xcin/tsin.idx
+lib/X11/xcin/pho.sel1st
+lib/X11/xcin/sample.phs.out
+lib/X11/xcin/tsin_pin.map
+lib/X11/xcin/zo.kbm
+lib/X11/xcin/et.kbm
+lib/X11/xcin/et26.kbm
+lib/X11/xcin/hsu.kbm
+lib/X11/xcin/pho.tab
+lib/X11/xcin/voca.box
+lib/X11/xcin/cin2tab
+lib/X11/xcin/tsa2d
+lib/X11/xcin/tsd2a
+lib/X11/xcin/phs_out
+lib/X11/xcin/lphrase
+lib/X11/xcin/pin2tsin

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711280352.LAA25384>