Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2000 17:09:51 +0800 (CST)
From:      keith@freebsd.sinica.edu.tw
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22145: New port: chinese/xemacs21
Message-ID:  <200010200909.RAA39427@freebsd.sinica.edu.tw>

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

>Number:         22145
>Category:       ports
>Synopsis:       New port: chinese/xemacs21
>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:   Fri Oct 20 02:10:14 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jing-Tang Keith Jang
>Release:        FreeBSD 4.0-20000406-STABLE i386
>Organization:
>Environment:

Tested under both 4-stable and 5-current.

>Description:

A zh-localized XEmacs 21.1.12

This port is a slave port of editors/xemacs21-mule, but has some
improvements for zh users and fixes for Chinese-BIG5 and Chinese-GB
language environment.

>How-To-Repeat:

	

>Fix:

Please commit, thanks.


# 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:
#
#	xemacs21
#	xemacs21/Makefile
#	xemacs21/pkg-comment
#	xemacs21/pkg-plist
#	xemacs21/pkg-message
#	xemacs21/files
#	xemacs21/files/mule-init.el.diff
#
echo c - xemacs21
mkdir -p xemacs21 > /dev/null 2>&1
echo x - xemacs21/Makefile
sed 's/^X//' >xemacs21/Makefile << 'END-of-xemacs21/Makefile'
X# New ports collection makefile for:	zh-xemacs21
X# Date created:		1 October 2000
X# Whom:			Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
X#
X# $FreeBSD$
X#
X
XCATEGORIES=	chinese editors
X
XCOMMENT=	${.CURDIR}/pkg-comment
XPLIST=		${.CURDIR}/pkg-plist
XPKGMESSAGE=	${.CURDIR}/pkg-message
X
XXEMACS_MAJOR_VER=	21
XWITH_XIM=	xlib
XBUILD_INPUT_METHOD=	xcin2.5:${PORTSDIR}/chinese/xcin25
X
X# xemacs21-mule-common needs this.
XWRKDIR=		${.CURDIR}/../../editors/xemacs21-mule/work
X
X# Fix mule-init.el
Xpost-patch::
X	@${RM} ${WRKSRC}/lisp/mule/mule-init.elc
X	@(cd ${WRKSRC}; ${PATCH} -q < ${.CURDIR}/files/mule-init.el.diff)
X
Xpost-install::
X	@${MKDIR} ${PREFIX}/lib/xemacs-${XEMACS_VER}/etc/app-defaults/zh_TW.Big5
X	@${INSTALL_DATA} ${.CURDIR}/../xemacs/files/Emacs ${PREFIX}/lib/xemacs-${XEMACS_VER}/etc/app-defaults/zh_TW.Big5
X	@${INSTALL_DATA} ${.CURDIR}/../xemacs/files/sample.emacs ${PREFIX}/lib/xemacs-${XEMACS_VER}/etc/app-defaults/zh_TW.Big5
X	@${CAT} ${PKGMESSAGE}
X
X.include	"${.CURDIR}/../../editors/xemacs21-mule/Makefile"
END-of-xemacs21/Makefile
echo x - xemacs21/pkg-comment
sed 's/^X//' >xemacs21/pkg-comment << 'END-of-xemacs21/pkg-comment'
XXEmacs text editor version 21, with XIM support and Big5 settings
END-of-xemacs21/pkg-comment
echo x - xemacs21/pkg-plist
sed 's/^X//' >xemacs21/pkg-plist << 'END-of-xemacs21/pkg-plist'
Xbin/b2m
Xbin/ctags
Xbin/etags
Xbin/gnuattach
Xbin/gnuclient
Xbin/gnudoit
Xbin/ootags
Xbin/rcs-checkin
Xbin/xemacs
Xbin/xemacs-%%XEMACS_VER%%
Xbin/xemacs21-mule
Xlib/xemacs-%%XEMACS_VER%%/etc/app-defaults/zh_TW.Big5/Emacs
Xlib/xemacs-%%XEMACS_VER%%/etc/app-defaults/zh_TW.Big5/sample.emacs
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/DOC
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/add-big-package.sh
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/config.values
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/cvtmail
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/digest-doc
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/fakemail
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/gnuserv
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/gzip-el.sh
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/hexl
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/make-docfile
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/make-path
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/mmencode
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/movemail
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/profile
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/rcs2log
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/sorted-doc
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/vcdiff
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/wakeup
Xlib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/yow
X@exec ln -sf ja %%PREFIX%%/lib/xemacs/mule-packages/etc/app-defaults/ja_JP.EUC
X@unexec rm -f %%PREFIX%%/lib/xemacs/mule-packages/etc/app-defaults/ja_JP.EUC
X@unexec rmdir %%PREFIX%%/lib/xemacs/mule-packages/etc/app-defaults 2>/dev/null || true
X@unexec rmdir %%PREFIX%%/lib/xemacs/mule-packages/etc 2>/dev/null || true
X@unexec rmdir %%PREFIX%%/lib/xemacs/mule-packages 2>/dev/null || true
X@dirrm lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%
X@dirrm lib/xemacs-%%XEMACS_VER%%/etc/app-defaults/zh_TW.Big5
END-of-xemacs21/pkg-plist
echo x - xemacs21/pkg-message
sed 's/^X//' >xemacs21/pkg-message << 'END-of-xemacs21/pkg-message'
X---
XNow you have installed zh-XEmacs, do the following:
Xcp /usr/local/lib/xemacs-21.1.2/etc/app-defaults/zh_TW.Big5/Emacs ~/Emacs
Xcp /usr/local/lib/xemacs-21.1.2/etc/app-defaults/zh_TW.Big5/sample.emacs ~/.emacs
X
XTo use XIM, execute xcin2.5 first, set BOTH LANG and LC_CTYPE to zh_TW.Big5,
Xthen execute xemacs.  You should be able to input Chinese now.
X---
END-of-xemacs21/pkg-message
echo c - xemacs21/files
mkdir -p xemacs21/files > /dev/null 2>&1
echo x - xemacs21/files/mule-init.el.diff
sed 's/^X//' >xemacs21/files/mule-init.el.diff << 'END-of-xemacs21/files/mule-init.el.diff'
X--- lisp/mule/mule-init.el.orig	Fri Oct 20 14:08:56 2000
X+++ lisp/mule/mule-init.el	Fri Oct 20 14:09:12 2000
X@@ -76,7 +76,8 @@
X 
X (defvar auto-language-alist
X   '(("^ja" . "Japanese")
X-    ("^zh" . "Chinese")
X+    ("^zh_CN" . "Chinese-GB")
X+    ("^zh_TW" . "Chinese-BIG5")
X     ("^ko" . "Korean"))
X   "Alist of LANG patterns vs. corresponding language environment.
X Each element looks like (REGEXP . LANGUAGE-ENVIRONMENT).
END-of-xemacs21/files/mule-init.el.diff
exit


>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?200010200909.RAA39427>