ports/65207: [NEW PORT FIX]vietnamese/xvnkb build fix + new man page

Nguyen Tam Chinh chinhngt at sectorb.msk.ru
Mon Apr 5 13:50:25 UTC 2004


>Number:         65207
>Category:       ports
>Synopsis:       [NEW PORT FIX]vietnamese/xvnkb build fix + new man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 05 06:50:23 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Nguyen Tam Chinh
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD chinhngt.b.gz.ru 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Mar 15 18:56:16 MSK 2004 chinhngt at chinhngt.b.gz.ru:/usr/src/sys/compile/FINALKERNEL-i686 i386


	
>Description:
xvnkb is a Vietnamese keyboard input method for X-Window. It provides
a useful way for editing Vietnamese on X-Window environment with popular
input methods and charsets.
>How-To-Repeat:
see the attached shar
>Fix:

# 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:
#
#	vietnamese/xvnkb
#	vietnamese/xvnkb/files
#	vietnamese/xvnkb/files/patch-Makefile.common
#	vietnamese/xvnkb/files/patch-scripts-new_install.sh
#	vietnamese/xvnkb/files/xvnkb.1
#	vietnamese/xvnkb/Makefile
#	vietnamese/xvnkb/distinfo
#	vietnamese/xvnkb/pkg-descr
#	vietnamese/xvnkb/pkg-plist
#	vietnamese/xvnkb/pkg-message
#
echo c - vietnamese/xvnkb
mkdir -p vietnamese/xvnkb > /dev/null 2>&1
echo c - vietnamese/xvnkb/files
mkdir -p vietnamese/xvnkb/files > /dev/null 2>&1
echo x - vietnamese/xvnkb/files/patch-Makefile.common
sed 's/^X//' >vietnamese/xvnkb/files/patch-Makefile.common << 'END-of-vietnamese/xvnkb/files/patch-Makefile.common'
X--- Makefile.common	Sat Jan 17 01:19:17 2004
X+++ Makefile.common	Mon Apr  5 02:15:35 2004
X@@ -44,7 +44,8 @@
X 	rm -f .*.sw*
X 
X install: all
X-	@./xvnkb_install
X+#	@./xvnkb_install
X+	sh xvnkb_install
X 
X uninstall:
X 	@./xvnkb_uninstall
END-of-vietnamese/xvnkb/files/patch-Makefile.common
echo x - vietnamese/xvnkb/files/patch-scripts-new_install.sh
sed 's/^X//' >vietnamese/xvnkb/files/patch-scripts-new_install.sh << 'END-of-vietnamese/xvnkb/files/patch-scripts-new_install.sh'
X--- scripts/new_install.sh	Sat Jan 17 01:19:17 2004
X+++ scripts/new_install.sh	Mon Apr  5 15:39:28 2004
X@@ -22,8 +22,9 @@
X PREFIX="/usr/local"
X 
X ID=`id -u`
X-LD="/etc/ld.so.preload"
X-SO="/lib/xvnkb.so"
X+#LD="/etc/ld.so.preload"
X+#SO="/lib/xvnkb.so"
X+SO="/usr/local/lib/xvnkb.so"
X 
X if [ "$ID" != "0" ]; then
X 	echo "You must be root to install xvnkb."
X@@ -46,56 +47,58 @@
X cp ./xvnkb $PREFIX/bin && echo ok
X echo -n "Copy xvnkb.so.$VERSION  =>  $PREFIX/lib ... "
X cp ./xvnkb.so.$VERSION $PREFIX/lib && echo ok
X-echo -n "Copy xvnkb_localeconf.sh  =>  $PREFIX/bin ... "
X-cp ./scripts/xvnkb.lconf.sh $PREFIX/bin/xvnkb_localeconf.sh && echo ok
X-echo -n "Initialize xvnkb core ... "
X-XVNKB_CORE="$SO.$VERSION"
X-while [ -f $XVNKB_CORE ]; do
X-	if [ "$N" = "" ]; then
X-		N=1;
X-	else
X-		N=$((N + 1))
X-	fi
X-	XVNKB_CORE="$SO.$VERSION-$N"
X-done
X-cp ./xvnkb.so.$VERSION $XVNKB_CORE
X-chattr +i $XVNKB_CORE
X-if [ -f "$LD" ]; then
X-	grep -v xvnkb.so $LD > $LD.xvnkb
X-	/bin/mv -f $LD.xvnkb $LD
X-fi
X-echo "$XVNKB_CORE" >> $LD
X-echo done
X-
X-if [ "$LANG" = "C" ]; then
X-	LANG="en_US"
X-fi
X-
X-if [ "`echo $LANG | grep UTF-8`" = "" ]; then
X-	echo "If you want to input Vietnamese Unicode, please run"
X-	echo
X-	echo "  # $PREFIX/bin/xvnkb_localeconf.sh $LANG.UTF-8"
X-	echo
X-	echo "and set your LANG to $LANG.UTF-8."
X-	echo "See xvnkb documents for more information."
X-fi
X-
X-if [ "$OL" != "" ]; then
X-	echo "You are using LD_PRELOAD to load xvnkb core."
X-	echo "Try to remove this old setting style..."
X-	if [ -f /etc/X11/xinit/xinitrc.d/xvnkb.sh ]; then
X-		/bin/rm -f /etc/X11/xinit/xinitrc.d/xvnkb.sh
X-	fi
X-	echo -e "\\033[1;31m"
X-	echo "* NOTICE: If you set it somewhere else (e.g. /etc/profile, /etc/bashrc,"
X-	echo "~/.bash_profile, ~/.bashrc, ~/.xinitrc) by yourself, please remove it also!"
X-	echo -e "\\033[0;39m"
X-fi
X+cp -p ../../files/xvnkb.1 ${PREFIX}/man/man1/
X 
X-echo
X-echo "You can use xvnkb now!  If you are using X, please restart your Window Manager."
X-echo "It will load xvnkb core control automatically for you and affect to all"
X-echo "applications.  Right now, xvnkb core control can affect to new starting"
X-echo "applications only.  Run \"xvnkb\" to control status."
X-echo
X+#echo -n "Copy xvnkb_localeconf.sh  =>  $PREFIX/bin ... "
X+#cp ./scripts/xvnkb.lconf.sh $PREFIX/bin/xvnkb_localeconf.sh && echo ok
X+#echo -n "Initialize xvnkb core ... "
X+#XVNKB_CORE="$SO.$VERSION"
X+#while [ -f $XVNKB_CORE ]; do
X+#	if [ "$N" = "" ]; then
X+#		N=1;
X+#	else
X+#		N=$((N + 1))
X+#	fi
X+#	XVNKB_CORE="$SO.$VERSION-$N"
X+#done
X+#cp ./xvnkb.so.$VERSION $XVNKB_CORE
X+#chattr +i $XVNKB_CORE
X+#if [ -f "$LD" ]; then
X+#	grep -v xvnkb.so $LD > $LD.xvnkb
X+#	/bin/mv -f $LD.xvnkb $LD
X+#fi
X+#echo "$XVNKB_CORE" >> $LD
X+#echo done
X+
X+#if [ "$LANG" = "C" ]; then
X+#	LANG="en_US"
X+#fi
X+
X+#if [ "`echo $LANG | grep UTF-8`" = "" ]; then
X+#	echo "If you want to input Vietnamese Unicode, please run"
X+#	echo
X+#	echo "  # $PREFIX/bin/xvnkb_localeconf.sh $LANG.UTF-8"
X+#	echo
X+#	echo "and set your LANG to $LANG.UTF-8."
X+#	echo "See xvnkb documents for more information."
X+#fi
X+
X+#if [ "$OL" != "" ]; then
X+#	echo "You are using LD_PRELOAD to load xvnkb core."
X+#	echo "Try to remove this old setting style..."
X+#	if [ -f /etc/X11/xinit/xinitrc.d/xvnkb.sh ]; then
X+#		/bin/rm -f /etc/X11/xinit/xinitrc.d/xvnkb.sh
X+#	fi
X+#	echo -e "\\033[1;31m"
X+#	echo "* NOTICE: If you set it somewhere else (e.g. /etc/profile, /etc/bashrc,"
X+#	echo "~/.bash_profile, ~/.bashrc, ~/.xinitrc) by yourself, please remove it also!"
X+#	echo -e "\\033[0;39m"
X+#fi
X+
X+#echo
X+#echo "You can use xvnkb now!  If you are using X, please restart your Window Manager."
X+#echo "It will load xvnkb core control automatically for you and affect to all"
X+#echo "applications.  Right now, xvnkb core control can affect to new starting"
X+#echo "applications only.  Run \"xvnkb\" to control status."
X+#echo
X 
END-of-vietnamese/xvnkb/files/patch-scripts-new_install.sh
echo x - vietnamese/xvnkb/files/xvnkb.1
sed 's/^X//' >vietnamese/xvnkb/files/xvnkb.1 << 'END-of-vietnamese/xvnkb/files/xvnkb.1'
X.\" $FreeBSD$
X.Dd April 05, 2004
X.Dt "xvnkb" 1
X.Os
X.Sh NAME
X.Nm xvnkb ,
X.Nd A Vietnamese keyboard input method
X.Sh SYNOPSIS
X.Nm xvnkb
X.Op Fl h
X.Op Fl m=method
X.Op Fl c=charset
X.Sh DESCRIPTION
X.Nm \&xvnkb
Xis a Vietnamese keyboard input for X-Window System. xvnkb supports a wide range of input methods and charsets.
X.Sh OPTIONS
X.Bl -tag -width indent
X.It Fl h
XPrint the help message.
X.It Fl m=method
XUse the specified input method.
XSupported methods are:
Xvni, telex, viqr.
X.It Fl c=charset
XChoose the input charset.
XSupported charsets are: utf8, tcvn, viscii, vps, viqr.
X.El
X.Sh EXAMPLES
X.Bl -tag -width 
XYou need to install a port called utf8locale (ports/misc/utf8locale) in order to use UTF-8 charset. To enable UTF-8 locale and preload xvnkb core module, you should also add these lines at top of your .xinitrc (or profile)
X.It export GTK_IM_MODULE=xim
X.It export LANG=en_US.UTF-8
X.It export LD_PRELOAD=/usr/local/lib/xvnkb.so.0.2.8
X.El
X.Sh FILES
X.Bl -tag -width 
X.It Pa /usr/local/lib/xvnkb.so
Xxvnkb core module
X.It Pa /usr/local/bin/xvnkb
Xexecutable GUI control module
X.El
X.Sh BUGS
XThere're may be some bugs. Please write the author if you catch something wrong.
X.Sh AUTHORS
Xxvnkb was mostly written by 
X.An Dao Hai Lam Aq lam at visc-network.com .
XMan page and freebsd ports created by 
X.An Nguyen Tam Chinh Aq chinhngt at sectorb.msk.ru .
END-of-vietnamese/xvnkb/files/xvnkb.1
echo x - vietnamese/xvnkb/Makefile
sed 's/^X//' >vietnamese/xvnkb/Makefile << 'END-of-vietnamese/xvnkb/Makefile'
X# ex:ts=8
X# Ports collection makefile for:    xvnkb
X# Date created:         Mon Apr 05, 2004
X# Whom:                 Nguyen Tam Chinh (chinhngt at sectorb.msk.ru)
X#
X# $FreeBSD$
X#
X
XPORTNAME=      xvnkb
XPORTVERSION=   0.2.8
XCATEGORIES=    vietnamese
XMASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=    ${PORTNAME}
X
XMAINTAINER=    chinhngt at sectorb.msk.ru
XCOMMENT=       A Vietnamese input method for X-Window
X
XUSE_BZIP2=     yes
XUSE_XLIB=      yes
X
XGNU_CONFIGURE= yes
XCONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
X.if defined(WITHOUT_XFT)
XCONFIGURE_ARGS+=       --no-xft
X.endif
X
XWRKSRC=        ${WRKDIR}/${PORTNAME}-${PORTVERSION}
XMAN1=	       xvnkb.1
X#MANCOMPRESSED= no
X
X.include <bsd.port.mk>
END-of-vietnamese/xvnkb/Makefile
echo x - vietnamese/xvnkb/distinfo
sed 's/^X//' >vietnamese/xvnkb/distinfo << 'END-of-vietnamese/xvnkb/distinfo'
XMD5 (xvnkb-0.2.8.tar.bz2) = 9ce3d7f9c25a33d574a280a5946ac27c
XSIZE (xvnkb-0.2.8.tar.bz2) = 76798
END-of-vietnamese/xvnkb/distinfo
echo x - vietnamese/xvnkb/pkg-descr
sed 's/^X//' >vietnamese/xvnkb/pkg-descr << 'END-of-vietnamese/xvnkb/pkg-descr'
Xxvnkb is a Vietnamese keyboard input method for X-Window. It provides
Xa useful way for editing Vietnamese on X-Window environment with popular
Xinput methods and charsets.
X
XWWW: http://xvnkb.sourceforge.net/
END-of-vietnamese/xvnkb/pkg-descr
echo x - vietnamese/xvnkb/pkg-plist
sed 's/^X//' >vietnamese/xvnkb/pkg-plist << 'END-of-vietnamese/xvnkb/pkg-plist'
Xbin/xvnkb
Xlib/xvnkb.so.0.2.8
END-of-vietnamese/xvnkb/pkg-plist
echo x - vietnamese/xvnkb/pkg-message
sed 's/^X//' >vietnamese/xvnkb/pkg-message << 'END-of-vietnamese/xvnkb/pkg-message'
XTo use xvnkb in X-Windows environment, you should add these lines to your
X.xinitrc:
X
X# use xim module of gtk
Xexport GTK_IM_MODULE=xim
X# change locale to UTF-8, for example en_US.UTF-8
Xexport LANG=en_US.UTF-8 
X# preload xvnkb core module 
Xexport LD_PRELOAD=/usr/local/lib/xvnkb.so.0.2.8
X
X-- Nguyen Tam Chinh
Xchinhngt at sectorb.msk.ru
END-of-vietnamese/xvnkb/pkg-message
exit




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



More information about the freebsd-ports-bugs mailing list