Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 1999 11:30:19 +0900 (JST)
From:      KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13389: Update ports: i18n-man-1.1(misc/man.el)
Message-ID:  <199908260230.LAA97900@pis.toba-cmt.ac.jp>

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

>Number:         13389
>Category:       ports
>Synopsis:       Update ports: i18n-man-1.1(misc/man.el)
>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:   Wed Aug 25 19:40:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     KIRIYAMA Kazuhiko
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Toba National College of Maritime Technology.
	Department of Electronic Mechanical Engineering
>Environment:
>Description:
Updated the port i18n-man-1.1(misc/man.el). 

Current modifications are :

(1) Add XEmacs package installation
(2) Add byte-compile script 

Update files are respecively :

[Add] :
-rw-r--r--  1    kiri   staff    3317 Aug 26 11:28 misc/man.el/files/byte-compile
[Delete] :
(NONE)
[Update] :
-rw-r--r--  1    kiri   staff    1138 Aug 26 11:28 misc/man.el/pkg/DESCR
-rw-r--r--  1    kiri   staff      67 Aug 26 11:28 misc/man.el/pkg/COMMENT
-rw-r--r--  1    kiri   staff     845 Aug 26 11:28 misc/man.el/pkg/PLIST
-rwxr-xr-x  1    kiri   staff    1395 Aug 26 11:28 misc/man.el/Makefile
I put the diff from ports-current in "Fix:".
>How-To-Repeat:
>Fix:
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/Makefile ./Makefile
--- /usr/ports/current/misc/man.el/Makefile	Wed Aug 25 20:35:26 1999
+++ ./Makefile	Thu Aug 26 11:28:10 1999
@@ -13,16 +13,29 @@
 
 MAINTAINER=	kiri@kiri.toba-cmt.ac.jp
 
-RUN_DEPENDS=	jman:${PORTSDIR}/japanese/man
+# If you use Japanese manuals, install japanese/man as well.
 
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}
 
 ELISPDIR=	${PREFIX}/share/emacs/site-lisp
+SITEPKGDIR=	${PREFIX}/lib/xemacs/site-packages
+PKGMODULES=	i18n-man-de i18n-man-en i18n-man-ja
 
 do-install:
-	@${MKDIR} ${ELISPDIR}
+	@${MKDIR} ${ELISPDIR} ${PREFIX}/share/doc/i18n-man
 	@cd ${WRKSRC}; \
 	${INSTALL_DATA} `${TAR} tzf ${DISTDIR}/${DISTFILES}` ${ELISPDIR}
+# For xemacs package install configuration
+	${MKDIR}  ${SITEPKGDIR}/pkginfo
+.for f in ${PKGMODULES}
+	${MKDIR} ${SITEPKGDIR}/lisp/${f}
+	${LN} -sf ${ELISPDIR}/${f}.el ${SITEPKGDIR}/lisp/${f}/${f}.el
+	${LN} -sf ${ELISPDIR}/i18n-man.el ${SITEPKGDIR}/lisp/${f}/i18n-man.el
+	${ECHO} "pkginfo/MANIFEST.${f}" > ${SITEPKGDIR}/pkginfo/MANIFEST.${f}
+	${ECHO} "lisp/${f}/${f}.el" >> ${SITEPKGDIR}/pkginfo/MANIFEST.${f}
+	${ECHO} "lisp/${f}/i18n-man.el" >> ${SITEPKGDIR}/pkginfo/MANIFEST.${f}
+.endfor
+	${INSTALL_SCRIPT} ${FILESDIR}/byte-compile ${PREFIX}/share/doc/i18n-man
 
 .include <bsd.port.mk>
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/files/byte-compile ./files/byte-compile
--- /usr/ports/current/misc/man.el/files/byte-compile	Thu Jan  1 09:00:00 1970
+++ ./files/byte-compile	Wed Aug 25 12:21:48 1999
@@ -0,0 +1,131 @@
+#!/bin/sh
+
+PREFIX=${PREFIX:-/usr/local}
+WRKDIR=${WRKDIR:-`pwd`}
+
+tmprfx=`basename $0`
+
+Usage="\
+byte_compile [options] emacs_name port_name [files]
+	-l load_el	: load *.el file when byte-compile
+	-h		: show this message
+	emacs_name	: should be one of below
+			  \"emacs\", \"emacs20\", \"mule\", \"xemacs19\", \"xemacs20\",
+			  \"xemacs21\", \"xemacs-mule\"
+	port_name	: port name(replaced *.el when files not specified)
+	files		: *.el files should be compiled"
+
+while [ -z "`getopts "l: h" opt > /tmp/${tmprfx}:getopt_err.log`" \
+	-a X"${opt}" != "X?" ]; do
+    case ${opt} in
+	l)
+	    load_el=${OPTARG}
+	    break
+	    ;;
+	h)
+	    echo "${Usage}"
+	    exit 1
+	    ;;
+	*)
+	    ;;
+    esac
+#    echo "opt=${opt},OPTARG=${OPTARG}"
+done
+
+if [ -s /tmp/${tmprfx}:getopt_err.log ]; then
+    cat /tmp/${tmprfx}:getopt_err.log
+    rm -f /tmp/${tmprfx}:getopt_err.log
+    exit 1
+fi
+rm -f /tmp/${tmprfx}:getopt_err.log
+
+shift `expr ${OPTIND} - 1`
+
+if [ -z "$1" -o -z "$2" ]; then
+    echo "${Usage}"
+    exit 1
+fi
+
+emacs_name=$1
+shift
+port_name=$1
+
+if [ $# -le 1 ]; then
+    files=${port_name}.el
+else
+    files=`echo $* | sed -e "s/${port_name} *//"`
+fi
+
+#echo "emacs_name=${emacs_name}"
+#echo "port_name=${port_name}"
+#echo "files=${files}"
+#echo "load_el=${load_el}"
+#exit 1
+
+case ${emacs_name} in
+    emacs)
+	load_path=${PREFIX}/share/emacs/19.34/${load_el}
+	emacscmd=emacs
+	;;
+    emacs20)
+	load_path=${PREFIX}/share/emacs/20.3/${load_el}
+	emacscmd=emacs20
+	;;
+    mule)
+	load_path=${PREFIX}/share/mule/19.34/${load_el}
+	emacscmd=mule
+	;;
+    xemacs19)
+	load_path=${PREFIX}/lib/xemacs-19.16/${load_el}
+	emacscmd=xemacs
+	;;
+    xemacs20)
+	load_path=${PREFIX}/lib/xemacs-20.4/${load_el}
+	emacscmd=xemacs
+	;;
+    xemacs21)
+	load_path=${PREFIX}/lib/xemacs-21.1.4/${load_el}
+	pkg_path=${PREFIX}/lib/xemacs/site-packages
+	emacscmd=xemacs
+	;;
+    xemacs-mule)
+	load_path=${PREFIX}/lib/xemacs/xemacs-packages/lisp/${load_el}
+	pkg_path=${PREFIX}/lib/xemacs/site-packages
+	emacscmd=xemacs
+	;;
+    *)
+	echo "${Usage}"
+	exit 1
+	;;
+esac
+if [ -n "${load_el}" ]; then
+    echo "(setq load-path (cons \"${load_path}\" load-path))" > /tmp/${tmprfx}:load.el
+fi
+cp ${pkg_path}/pkginfo/MANIFEST.${port_name} ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
+for f in ${files}; do
+    if [ -f ${WRKDIR}/${f} ]; then
+	if [ -n "${load_el}" ]; then
+	    ${emacscmd} -batch -l /tmp/${tmprfx}:load.el -q -no-site-file \
+		-f batch-byte-compile ${WRKDIR}/${f}
+	else
+	    ${emacscmd} -batch -q -no-site-file -f batch-byte-compile ${WRKDIR}/${f}
+	fi
+	if [ $? -eq 0 -a -d ${pkg_path}/lisp/${port_name} ]; then
+	    rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
+	    ln -s ${WRKDIR}/${f}.elc ${pkg_path}/lisp/${port_name}/${f}.elc
+	    cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile
+	    grep -v "${f}.elc" /tmp/${tmprfx}:tempfile \
+		> ${pkg_path}/pkginfo/MANIFEST.${port_name}
+	    echo "lisp/${port_name}/${f}.elc" >> ${pkg_path}/pkginfo/MANIFEST.${port_name}
+	else
+	    cp ${pkg_path}/pkginfo/MANIFEST.${port_name} /tmp/${tmprfx}:tempfile
+	    grep -v "${f}.elc" /tmp/${tmprfx}:tempfile \
+		> ${pkg_path}/pkginfo/MANIFEST.${port_name}
+	    rm -f ${pkg_path}/lisp/${port_name}/${f}.elc
+	fi
+    else
+	echo "\"${WRKDIR}/${f}\": file not found!"
+    fi
+done
+
+rm -f /tmp/${tmprfx}:load.el ${pkg_path}/pkginfo/MANIFEST.${port_name}.bak
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/patches/patch-aa ./patches/patch-aa
--- /usr/ports/current/misc/man.el/patches/patch-aa	Tue Apr 27 22:09:14 1999
+++ ./patches/patch-aa	Tue Dec  8 16:10:33 1998
@@ -1,5 +1,5 @@
---- i18n-man-ja.el~    Tue Dec  8 01:48:18 1998
-+++ i18n-man-ja.el     Tue Dec  8 01:48:48 1998
+--- i18n-man-ja.el~	Tue Dec  8 01:48:18 1998
++++ i18n-man-ja.el	Tue Dec  8 01:48:48 1998
 @@ -62,7 +62,6 @@
    "Hook for the Japanese manpage depend default coding system setting.
  Also save original values of variable to the local variable temporary."
@@ -7,4 +7,4 @@
 -  (setenv "MANPATH" (format "/usr/share/man/ja:" (getenv "MANPATH")))
    (if (featurep 'mule)
        (case emacs-major-version
-       (20 ;; XEmacs or Emacs-20.x (Mule-2.4, 3.0 or later)
+ 	(20 ;; XEmacs or Emacs-20.x (Mule-2.4, 3.0 or later)
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/pkg/COMMENT ./pkg/COMMENT
--- /usr/ports/current/misc/man.el/pkg/COMMENT	Sun Jun 27 20:35:01 1999
+++ ./pkg/COMMENT	Thu Sep 17 20:04:32 1998
@@ -1 +1 @@
-Browse I18N capable UNIX manual pages with Mule, Emacs and XEmacs
+Browse I18N capable UNIX manual pages with Mule, Emacs and XEmacs.
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/pkg/DESCR ./pkg/DESCR
--- /usr/ports/current/misc/man.el/pkg/DESCR	Fri Oct  9 09:46:03 1998
+++ ./pkg/DESCR	Wed Aug 25 12:48:28 1999
@@ -5,8 +5,29 @@
 ALSO references, and other features.  See below or do `?' in a
 manual page buffer for details.
 
-For working with Japanese, put your dot.emacs file to 
+For working with Japanese, English and German, put your dot.emacs file
+following:
 
-(load "i18n-man-ja")
+(autoload 'jman "i18n-man-ja" nil t)
+(autoload 'eman "i18n-man-en" nil t)
+(autoload 'dman "i18n-man-de" nil t)
 
-Then M-x jman in minibuffer, and specify man page name.
+then
+
+  M-x jman
+    to get a Japanese manual page thru jman(1) and put it in a buffer.
+  M-x eman
+    to get a English manual page thru man(1) and put it in a buffer.
+  M-x dman
+    to get a German manual page thru man(1) and put it in a buffer.
+
+If you want byte-compile with your favorite "Emacs", use "byte-comile"
+script as:
+
+  # cd /usr/local/share/emacs/site-lisp
+  # /usr/local/share/doc/prom-mew/byte-compile xemacs-mule i18n-man-ja i18n-man-ja.el i18n-man.el
+
+For usage of byte_compile scripts, run byte_compile with -h option.
+
+-KIRIYAMA Kazuhiko
+<kiri@kiri.toba-cmt.ac.jp>
diff -u -r -x CVS -x work -x *~ -x *.orig -N -I ^# *\$Id.*$ /usr/ports/current/misc/man.el/pkg/PLIST ./pkg/PLIST
--- /usr/ports/current/misc/man.el/pkg/PLIST	Fri Oct  9 09:46:03 1998
+++ ./pkg/PLIST	Wed Aug 25 12:25:31 1999
@@ -2,3 +2,17 @@
 share/emacs/site-lisp/i18n-man-en.el
 share/emacs/site-lisp/i18n-man-ja.el
 share/emacs/site-lisp/i18n-man.el
+lib/xemacs/site-packages/lisp/i18n-man-de/i18n-man.el
+lib/xemacs/site-packages/lisp/i18n-man-de/i18n-man-de.el
+lib/xemacs/site-packages/pkginfo/MANIFEST.i18n-man-de
+lib/xemacs/site-packages/lisp/i18n-man-en/i18n-man.el
+lib/xemacs/site-packages/lisp/i18n-man-en/i18n-man-en.el
+lib/xemacs/site-packages/pkginfo/MANIFEST.i18n-man-en
+lib/xemacs/site-packages/lisp/i18n-man-ja/i18n-man.el
+lib/xemacs/site-packages/lisp/i18n-man-ja/i18n-man-ja.el
+lib/xemacs/site-packages/pkginfo/MANIFEST.i18n-man-ja
+share/doc/i18n-man/byte-compile
+@dirrm lib/xemacs/site-packages/lisp/i18n-man-de
+@dirrm lib/xemacs/site-packages/lisp/i18n-man-en
+@dirrm lib/xemacs/site-packages/lisp/i18n-man-ja
+@dirrm share/doc/i18n-man

>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?199908260230.LAA97900>