Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 1999 01:39:21 +0800 (CST)
From:      jtjang@gcn.net.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11468: New port: xcin-devel
Message-ID:  <199905031739.BAA17743@phantom>

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

>Number:         11468
>Category:       ports
>Synopsis:       New port: xcin-devel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  3 10:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Keith Jang
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Home user
>Environment:

	

>Description:

	This is a port of xcin-devel, a Chinese XIM server for
	X11 clients.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	xcin-devel
#	xcin-devel/pkg
#	xcin-devel/pkg/COMMENT
#	xcin-devel/pkg/DESCR
#	xcin-devel/pkg/PLIST
#	xcin-devel/patches
#	xcin-devel/patches/patch-aa
#	xcin-devel/patches/patch-ab
#	xcin-devel/files
#	xcin-devel/files/md5
#	xcin-devel/Makefile
#	xcin-devel/scripts
#	xcin-devel/scripts/pre-install
#	xcin-devel/scripts/post-install
#
echo c - xcin-devel
mkdir -p xcin-devel > /dev/null 2>&1
echo c - xcin-devel/pkg
mkdir -p xcin-devel/pkg > /dev/null 2>&1
echo x - xcin-devel/pkg/COMMENT
sed 's/^X//' >xcin-devel/pkg/COMMENT << 'END-of-xcin-devel/pkg/COMMENT'
XA Chinese XIM input server for X11 applications.
END-of-xcin-devel/pkg/COMMENT
echo x - xcin-devel/pkg/DESCR
sed 's/^X//' >xcin-devel/pkg/DESCR << 'END-of-xcin-devel/pkg/DESCR'
XThis is xcin-2.5, a descendant of the xcin-2.3 project. Major improvement
Xincludes:
X
XStandard XIM protocol
XLocale /w gettext supported
XIndependent IM modules
XDynamic loading of IM modules
XNew cin system based on locale and encodings
XIM-independent rcfile handling
X
XNotes for xcin-2.3 users: xcin-2.3 and xcin-2.5 can *co-exist* in the same
Xsystem. Use `xcin' for the legacy xcin-crxvt protocol, and `xcin-devel` or
X`cin2tab' for I18N XIM clients.
X
XSince this is still at alpha stage, there may be some problems. But it
Xnow follows X standard, so the future will be quite promising. For more
Xinformation, contact:
X
XXCIN Team.  <mailing-list:  xcin@linux.org.tw>
X            <www:           http://xcin.linux.org.tw>;
X            <ftp:           ftp://xcin.linux.org.tw/pub/xcin>;
X
END-of-xcin-devel/pkg/DESCR
echo x - xcin-devel/pkg/PLIST
sed 's/^X//' >xcin-devel/pkg/PLIST << 'END-of-xcin-devel/pkg/PLIST'
Xbin/cin2tab-devel
Xbin/xcin-devel
Xlib/X11/xcin-devel/doc/Bugs
Xlib/X11/xcin-devel/doc/Changes
Xlib/X11/xcin-devel/doc/Cin
Xlib/X11/xcin-devel/doc/FAQ
Xlib/X11/xcin-devel/doc/README
Xlib/X11/xcin-devel/doc/SETUP
Xlib/X11/xcin-devel/doc/Todo
Xlib/X11/xcin-devel/doc/Usage
Xlib/X11/xcin-devel/doc/modules/gen_inp
Xlib/X11/xcin-devel/doc/modules/im_comm
Xlib/X11/xcin-devel/doc/modules/zh_hex
Xlib/X11/xcin-devel/doc/old/programming/module
Xlib/X11/xcin-devel/doc/old/programming/structer
Xlib/X11/xcin-devel/doc/old/programming/xcin_rc
Xlib/X11/xcin-devel/doc/old/programming/xcintool
Xlib/X11/xcin-devel/gen_inp.so
Xlib/X11/xcin-devel/lcGen.so
Xlib/X11/xcin-devel/tab/zh_CN.GB2312/sys.cin
Xlib/X11/xcin-devel/tab/zh_CN.GB2312/sys.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/array30.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/array30.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/cantonese.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/cantonese.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/cj.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/cj.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/default.phr
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/phone.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/phone.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/pinyin.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/pinyin.tab
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/sys.cin
Xlib/X11/xcin-devel/tab/zh_TW.BIG5/sys.tab
Xlib/X11/xcin-devel/xcinrc
Xlib/X11/xcin-devel/zh_hex.so
X@dirrm lib/X11/xcin-devel/doc/modules
X@dirrm lib/X11/xcin-devel/doc/old/programming
X@dirrm lib/X11/xcin-devel/doc/old
X@dirrm lib/X11/xcin-devel/doc
X@dirrm lib/X11/xcin-devel/tab/zh_CN.GB2312
X@dirrm lib/X11/xcin-devel/tab/zh_TW.BIG5
X@dirrm lib/X11/xcin-devel/tab
X@dirrm lib/X11/xcin-devel
END-of-xcin-devel/pkg/PLIST
echo c - xcin-devel/patches
mkdir -p xcin-devel/patches > /dev/null 2>&1
echo x - xcin-devel/patches/patch-aa
sed 's/^X//' >xcin-devel/patches/patch-aa << 'END-of-xcin-devel/patches/patch-aa'
X--- configure.orig	Mon May  3 00:23:03 1999
X+++ configure		Mon May  3 20:17:37 1999
X@@ -9,9 +9,9 @@
X #  BINPATH:   path of xcin binary files.
X #  RCPATH:    path of default xcin rcfile.
X #
X-XCINPATH=/usr/local/lib/xcin
X-BINPATH=/usr/local/bin
X-RCPATH=/usr/local/etc
X+XCINPATH=/usr/X11R6/lib/X11/xcin-devel
X+BINPATH=/usr/X11R6/bin
X+RCPATH=/usr/X11R6/lib/X11/xcin-devel
X 
X #  If you want to debug xcin, please enable this option.
X #
X@@ -23,7 +23,7 @@
X 
X #  If you want to use quick sorting funcion, please enable this option.
X #
X-# QUICKSORT=-DQUICKSORT
X+QUICKSORT=-DQUICKSORT
X 
X MAKE="make"
X CC=gcc
X@@ -49,6 +49,10 @@
X FREEBSD)  SHARELIBFLAG='-shared -Wl,-R,'
X 	  EXTRAINC=""
X 	  EXTRALIB="-lxpg4"
X+	  if [ ! -z "$GETTEXT" ]; then
X+	      EXTRAINC="$EXTRAINC -I/usr/local/include"
X+	      EXTRALIB="$EXTRALIB -L/usr/local/lib -lintl"
X+	  fi
X 	  ;;
X *)	  SHARELIBFLAG='-shared -Wl,-soname,'
X 	  EXTRAINC=""
END-of-xcin-devel/patches/patch-aa
echo x - xcin-devel/patches/patch-ab
sed 's/^X//' >xcin-devel/patches/patch-ab << 'END-of-xcin-devel/patches/patch-ab'
X--- src/Makefile.in.orig	Tue Apr 27 20:45:18 1999
X+++ src/Makefile.in	Mon May  3 22:15:02 1999
X@@ -44,7 +44,7 @@
X 
X .PHONY: install clean distclean depend subsys
X 
X-install: install_path install_xcin install_util
X+install: install_path install_xcin install_util install_doc
X 
X install_path:
X 	if [ -d "$(XCINPATH)" ] && [ ! -d "$(XCINPATH)/tab" ]; then mv $(XCINPATH) $(XCINPATH).old; fi
X@@ -52,26 +52,27 @@
X 	if [ ! -d "$(RCPATH)" ]; then install -d $(RCPATH); fi
X 	if [ ! -d "$(XCINPATH)" ]; then install -d $(XCINPATH); fi
X 	if [ ! -d "$(XCINPATH)/tab" ]; then cp -r ../cin $(XCINPATH)/tab; fi
X+	mv $(XCINPATH)/tab/zh_TW.Big5 $(XCINPATH)/tab/zh_TW.BIG5
X 
X install_xcin: xcin
X #	cp xcin $(MODULES) $(XCINPATH)
X 	cp $(MODULES) $(XCINPATH)
X-	if [ -f $(BINPATH)/xcin ]; then mv $(BINPATH)/xcin $(BINPATH)/xcin.old; fi
X-	cp xcin $(BINPATH)/xcin
X+	install -C -s -m 755 xcin $(BINPATH)/xcin-devel
X #	cp xcin-s $(BINPATH)/xcin
X-	chmod 755 $(BINPATH)/xcin
X-	if [ ! -f $(RCPATH)/xcinrc ]; then cp xcinrc $(RCPATH); fi
X+	if [ ! -f $(RCPATH)/xcinrc ]; then install -C -m 644 xcinrc $(RCPATH); fi
X 
X install_util: util_bin
X-	if [ -f $(BINPATH)/cin2tab ]; then mv $(BINPATH)/cin2tab $(BINPATH)/cin2tab.old; fi
X-	cp $(UTILS) $(BINPATH)
X+	install -C -s -m 755 $(UTILS) $(BINPATH)/cin2tab-devel
X 	@( cd $(XCINPATH)/tab; \
X 	  cin="`find . -name sys.cin -print` `find . -name '*.cin' -print`"; \
X 	  for f in $$cin; do \
X 	    ff=`echo $$f | sed 's/cin/tab/'`; \
X-	    if [ ! -f $$ff ]; then $(BINPATH)/cin2tab $$f; fi\
X+	    if [ ! -f $$ff ]; then $(BINPATH)/cin2tab-devel -s zh_TW.BIG5/sys.tab $$f; fi\
X 	  done; )
X 
X+install_doc:
X+	if [ ! -d $(XCINPATH)/doc ]; then install -d $(XCINPATH)/doc; fi
X+	cp -R ../doc/* $(XCINPATH)/doc
X 
X depend:
X 	$(CC) -M $(CFLAGS) $(INC) $(SRC) > .depend
END-of-xcin-devel/patches/patch-ab
echo c - xcin-devel/files
mkdir -p xcin-devel/files > /dev/null 2>&1
echo x - xcin-devel/files/md5
sed 's/^X//' >xcin-devel/files/md5 << 'END-of-xcin-devel/files/md5'
XMD5 (xcin-2.5.0-pre1-4.tar.gz) = 155de4e7f3c641113005248767eaf079
END-of-xcin-devel/files/md5
echo x - xcin-devel/Makefile
sed 's/^X//' >xcin-devel/Makefile << 'END-of-xcin-devel/Makefile'
X# New ports collection makefile for:	xcin-devel
X# Version required:	xcin-2.5.0-pre1-4
X# Date created:		3 May 1999
X# Whom:			Keith Jang <jtjang@gcn.net.tw>
X#
X# $Id$
X#
X
XDISTNAME=	xcin-2.5.0-pre1-4
XPKGNAME=	zh-xcin-devel-2.5.0
XCATEGORIES=	chinese
XMASTER_SITES=	ftp://xcin.linux.org.tw/pub/xcin/xcin/
X
XMAINTAINER=	jtjang@gcn.net.tw
X
X.if !defined $(NO_GETTEXT)
XLIB_DEPENDS=	intl.1:${PORTSDIR}/devel/gettext:install
XCONFIGURE_ENV+=	GETTEXT=-DUSE_GETTEXT
X.endif
X
XWRKSRC=		${WRKDIR}/xcin-2.5
XUSE_X_PREFIX=	yes
XHAS_CONFIGURE=	yes
X
X.if defined $(DEBUG)
XCONFIGURE_ENV+= DEBUG="-DDEBUG"
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 300005
XBROKEN=		"Only FreeBSD 3.0R or later support zh_TW.BIG5 locale."
X.endif
X
Xdo-build:
X	@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${MAKE} depend all)
X
Xdo-install:
X	@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${MAKE} install)
X.include <bsd.port.post.mk>
END-of-xcin-devel/Makefile
echo c - xcin-devel/scripts
mkdir -p xcin-devel/scripts > /dev/null 2>&1
echo x - xcin-devel/scripts/pre-install
sed 's/^X//' >xcin-devel/scripts/pre-install << 'END-of-xcin-devel/scripts/pre-install'
X#!/bin/sh -vx
Xif [ ! -d ${X11BASE}/lib/X11/locale/zh_TW.BIG5 ]; then
X   mkdir -p ${X11BASE}/lib/X11/locale/zh_TW.BIG5
X   cp ${WRKSRC}/localedata/zh_TW.Big5/XLC_LOCALE ${X11BASE}/lib/X11/locale/zh_TW.BIG5
X   echo "zh_TW.BIG5/XLC_LOCALE   zh_TW.BIG5" >> ${X11BASE}/lib/X11/locale/locale.dir
Xfi
END-of-xcin-devel/scripts/pre-install
echo x - xcin-devel/scripts/post-install
sed 's/^X//' >xcin-devel/scripts/post-install << 'END-of-xcin-devel/scripts/post-install'
X#!/bin/sh
Xif [ ! -z "`nm ${X11BASE}/lib/libX11.a |grep Xsetlocale`" ]
Xthen
X	echo "-------------------------------------------------------"
X	echo "It seems that you have patched libX11.a & libX11.so."
X	echo "Although you can still build & run xcin-devel, many"
X	echo "XIM client will just coredump under those patched"
X	echo "X11 libs. It is strongly recommended using original"
X	echo "version, and use LD_PRELOAD=lcGen.so instead to handle"
X	echo "BIG5 encoding."
X	echo
X	echo "See FAQ/Usage for more details."
X	echo "-------------------------------------------------------"
Xfi
END-of-xcin-devel/scripts/post-install
exit


>How-To-Repeat:

	

>Fix:
	
	Please commit this port. Thanks.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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