From owner-freebsd-ports Wed Mar 12 07:40:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA20340 for ports-outgoing; Wed, 12 Mar 1997 07:40:12 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id HAA20323; Wed, 12 Mar 1997 07:40:07 -0800 (PST) Resent-Date: Wed, 12 Mar 1997 07:40:07 -0800 (PST) Resent-Message-Id: <199703121540.HAA20323@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-ports Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, kiri@kiri.toba-cmt.ac.jp Received: from kiri.toba-cmt.ac.jp (kiri.toba-cmt.ac.jp [202.26.248.91]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA20169 for ; Wed, 12 Mar 1997 07:37:36 -0800 (PST) Received: (from kiri@localhost) by kiri.toba-cmt.ac.jp (8.8.5/8.8.5) id AAA22502; Thu, 13 Mar 1997 00:39:25 +0900 (JST) Message-Id: <199703121539.AAA22502@kiri.toba-cmt.ac.jp> Date: Thu, 13 Mar 1997 00:39:25 +0900 (JST) From: Kazuhiko Kiriyama(System administrator) Reply-To: kiri@kiri.toba-cmt.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/2963: Update the port(jp-man-1.1):japanese/man. Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2963 >Category: ports >Synopsis: Update the port(jp-man-1.1):japanese/man. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Class: support >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 07:40:05 PST 1997 >Last-Modified: >Originator: Kazuhiko Kiriyama >Organization: Toba National College of Maritime Technology. Department of Electronic Mechanical Engineering >Release: FreeBSD 2.2-970205-GAMMA i386 >Environment: >Description: I've updated the port(jp-man-1.1):japanese/man. Current modification is (1) Include jman.el by Mitsuru IWASAKI. I put the diff from ports-current(japanese/groff) in "Fix:". Newly add files are files/jman.el pkg/DEINSTALL >How-To-Repeat: >Fix: diff -aurN ../../current/ports/japanese/man/Makefile ./Makefile --- ../../current/ports/japanese/man/Makefile Sun Feb 16 17:22:13 1997 +++ ./Makefile Mon Mar 3 23:32:03 1997 @@ -14,7 +14,10 @@ MAINTAINER= kiri@kiri.toba-cmt.ac.jp RUN_DEPENDS= ${PREFIX}/bin/groff:${PORTSDIR}/japanese/groff \ - jless:${PORTSDIR}/japanese/less + jless:${PORTSDIR}/japanese/less \ + mule:${PORTSDIR}/editors/mule + +JMANELDIR= ${PREFIX}/lib/mule/site-lisp/jman # XPG4LIBPATH specifies the path name of the xpg4 library. # The xpg4 library include setlocale() function and etc. for I18N, @@ -63,6 +66,8 @@ .endif post-install: + @${MKDIR} ${JMANELDIR} + @${INSTALL_DATA} ${FILESDIR}/jman.el ${JMANELDIR} @${SETENV} CP=${CP} PKG_PREFIX=${PREFIX} /bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL pre-clean: diff -aurN ../../current/ports/japanese/man/files/jman.el ./files/jman.el --- ../../current/ports/japanese/man/files/jman.el Thu Jan 1 09:00:00 1970 +++ ./files/jman.el Tue Mar 4 12:22:58 1997 @@ -0,0 +1,86 @@ +;;; jman.el --- browse UNIX Japanese manual pages +;;; $Id: jman.el,v 1.1 1997/03/01 13:17:54 iwasaki Exp $ + +;;; This file part of jman-1.1 - japanese man with EUC, +;;; a GNU Emacs front end to the UNIX Japanese manual pages browsing. + +;;; Everyone is granted permission to copy, modify and redistribute +;;; this program. + +;;; HISTORY +;;; +;;; Written by Mitsuru IWASAKI 1 March, 1997 +;;; jman, i18n-man, man (re-definition), +;;; and some user variables for i18ned manual pages. +;;; + +;;; Suggested USAGE +;;; +;;; In your ~/.emacs +;;;(autoload 'jman "jman" nil t) +;;; then +;;; M-x jman +;;; to get a Japanese manual page thru jman(1) and put it in a buffer. +;;; +;;; M-x man +;;; to get an original manual page thru man(1) and put it in a buffer. +;;; + +(require 'man) + +;; vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv +;; user variables + +(defvar i18n-manual-program "jman" + "The name of the i18ned program that produces man pages.") + +(defvar i18n-Man-heading-regexp "^\\([^ \t\n_][^0-9\n]+\\)$" + "*Regular expression describing a i18ned manpage heading entry.") + +(defvar i18n-Man-see-also-regexp "´ØÏ¢¹àÌÜ\\|SEE ALSO" + "*Regular expression for SEE ALSO heading (or your equivalent) of a i18ned mangage. +This regexp should not start with a `^' character.") + +(defvar i18n-Man-first-heading-regexp "^[ \t]*̾¾Î$\\|^[ \t]*NAME$\\|^[ \t]*No manual entry fo.*" + "*Regular expression describing first heading on a i18ned manpage. +This regular expression should start with a `^' character.") + +;; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +;; end user variables + +;; ====================================================================== +;; top level command and background process sentinel + +;;; This alias makes completion more predictable if ignoring case. +;;;###autoload +(defalias 'jman 'i18n-man) + +;; back some variables up +(setq manual-program-orig manual-program) +(setq Man-heading-regexp-orig Man-heading-regexp) +(setq Man-see-also-regexp-orig Man-see-also-regexp) +(setq Man-first-heading-regexp-orig Man-first-heading-regexp) + +(defun i18n-man (arg) + nil + (interactive "P") + (setq manual-program i18n-manual-program) + (setq Man-heading-regexp i18n-Man-heading-regexp) + (setq Man-see-also-regexp i18n-Man-see-also-regexp) + (setq Man-first-heading-regexp i18n-Man-first-heading-regexp) + (manual-entry arg)) + +;;;###autoload +(defun man (arg) + nil + (interactive "P") + (setq manual-program manual-program-orig) + (setq Man-heading-regexp Man-heading-regexp-orig) + (setq Man-see-also-regexp Man-see-also-regexp-orig) + (setq Man-first-heading-regexp Man-first-heading-regexp-orig) + (manual-entry arg)) + + +(provide 'jman) + +;;; jman.el ends here diff -aurN ../../current/ports/japanese/man/pkg/DEINSTALL ./pkg/DEINSTALL --- ../../current/ports/japanese/man/pkg/DEINSTALL Thu Jan 1 09:00:00 1970 +++ ./pkg/DEINSTALL Mon Mar 3 22:25:38 1997 @@ -0,0 +1,15 @@ +#!/bin/sh + +elispdir=${PKG_PREFIX}/lib/mule/site-lisp + +OptionStart=";;; Jman configuration options" +OptionEnd=";;; End of Jman configuration options" + +if [ "X$2" = X"DEINSTALL" ]; then + if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then + echo "Deleting \"Jman\" entry from ${elispdir}/site-start.el" + sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \ + ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak + mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el + fi +fi diff -aurN ../../current/ports/japanese/man/pkg/INSTALL ./pkg/INSTALL --- ../../current/ports/japanese/man/pkg/INSTALL Fri Feb 14 14:20:19 1997 +++ ./pkg/INSTALL Mon Mar 3 22:37:22 1997 @@ -4,8 +4,26 @@ usr_tmac=/usr/share/tmac local_tmac=${PKG_PREFIX}/share/groff/tmac +elispdir=${PKG_PREFIX}/lib/mule/site-lisp + +OptionStart=";;; Jman configuration options" +OptionEnd=";;; End of Jman configuration options" if [ "X$2" = X"POST-INSTALL" ]; then ${CP} -p ${usr_tmac}/tmac.an ${local_tmac} ${CP} -p ${usr_tmac}/tmac.groff_an ${local_tmac} + if [ "`grep \"^${OptionStart}\" ${elispdir}/site-start.el`" ]; then + sed -e "/^${OptionStart}/,/^${OptionEnd}/d" \ + ${elispdir}/site-start.el > ${elispdir}/site-start.el.bak + mv ${elispdir}/site-start.el.bak ${elispdir}/site-start.el + fi + echo "Adding \"Jman\" entry to ${elispdir}/site-start.el" + echo "${OptionStart}" >> ${elispdir}/site-start.el + echo "(setq load-path (cons \"${elispdir}/jman\" load-path))" \ + >> ${elispdir}/site-start.el + echo "(autoload 'jman \"jman\" nil t)" >> ${elispdir}/site-start.el + echo "${OptionEnd}" \ + >> ${elispdir}/site-start.el + exit 0 fi + diff -aurN ../../current/ports/japanese/man/pkg/PLIST ./pkg/PLIST --- ../../current/ports/japanese/man/pkg/PLIST Sun Dec 8 08:16:13 1996 +++ ./pkg/PLIST Mon Mar 3 22:11:55 1997 @@ -10,3 +10,5 @@ man/ja_JP.EUC/man1/japropos.1.gz man/ja_JP.EUC/man1/jwhatis.1.gz man/ja_JP.EUC/man1/jmakewhatis.1.gz +lib/mule/site-lisp/jman/jman.el +@dirrm lib/mule/site-lisp/jman >Audit-Trail: >Unformatted: