diff options
Diffstat (limited to 'japanese/diclookup-emacs20/files')
-rw-r--r-- | japanese/diclookup-emacs20/files/README.diclookup-setup.txt | 31 | ||||
-rw-r--r-- | japanese/diclookup-emacs20/files/deinstall-diclookup.sh | 4 | ||||
-rw-r--r-- | japanese/diclookup-emacs20/files/patch-aa | 11 | ||||
-rw-r--r-- | japanese/diclookup-emacs20/files/patch-ab | 10 | ||||
-rw-r--r-- | japanese/diclookup-emacs20/files/patch-ac | 10 | ||||
-rw-r--r-- | japanese/diclookup-emacs20/files/setup-diclookup.sh | 16 |
6 files changed, 30 insertions, 52 deletions
diff --git a/japanese/diclookup-emacs20/files/README.diclookup-setup.txt b/japanese/diclookup-emacs20/files/README.diclookup-setup.txt index 4fab25a09caf..70da16e96c58 100644 --- a/japanese/diclookup-emacs20/files/README.diclookup-setup.txt +++ b/japanese/diclookup-emacs20/files/README.diclookup-setup.txt @@ -14,29 +14,32 @@ One of mule (ja-*mule-2.3 or mule-2.3) is necessary for this program. dserver: Dictionary server. NDTP has been a protocol for dserver. It supports EB/EBG/EBXA/EPWING CDROM dictionaries. - FreeBSD port is ready for installation: ja-dserver-2.2.2 + FreeBSD port is ready for installation: ja-dserver-2.2.2_1 Dserver packages includes `dictionary file compression tool' ndtpd: Dserver-compatible Network Dictionary server. It also supports EB/EBG/EBXA/EPWING CDROM dictionaries. + FreeBSD port is redy for installation: ja-ndtpd-2.3.8 + Also includes `dictionary file compression tool' + Also refer documents to each packages for setup of server. 1. Add startup code to site-start.el Typing - % /usr/local/lib/dserver/setup-diclookup.sh + % /usr/local/share/doc/diclookup-emacs20/setup-diclookup.sh displays you `ja-diclookup setup dialog': ------------------------ja-diclookup setup -------------------------- | | | You have to install appropreate startup code for diclookup-mule. | | This setup script automatically it to: | - | /usr/local/share/mule/19.34/site-lisp/site-start.el. | + | /usr/local/share/emacs/20.7/site-lisp/site-start.el. | | | | Are you sure? | |-------------------------------------------------------------------| | [ Yes ] No | |-------------------------------------------------------------------| By answering [ Yes ], startup code is automatically added to - /usr/local/share/mule/19.34/site-lisp/site-start.el + /usr/local/share/emacs/20.7/site-lisp/site-start.el (Deinstallation is possible by deinstall-diclookup.sh) 2. Usage. @@ -73,29 +76,30 @@ diclookup-mule は, mule の上で, 電子辞書を引けるようにするための しておくことが必須です. NDTP サーバとしては, 老舗の dserver や, SRA の笠原さんが開発なさっている ndtpd などが知られています. - dserver は, ja-dserver-2.2.2 というパッケージになっています. - ndtp も近日 FreeBSD ports colleciton に取り込まれることでしょう. + dserver は, ja-dserver-2.2.2_1 というパッケージになっています. + ndtp も というパッケージになっています. dserver または, ndtp の設定は, それぞれのパッケージに附属の 文書を参照してください. I. 起動の準備. - ~/.emacs もしくは ${PREFIX}/share/mule/19.34/site-lisp/site-start.el などの, - 初期設定ファイルに, diclookup-mule 起動のためのエントリを追加します. - [${PREFIX}/lib/dserver/setup-diclookup.sh] を起動すると, 自動的に - 設定をsite-start.el に追加してくれます. + ~/.emacs もしくは ${PREFIX}/share/emacs/20.7/site-lisp/site-start.el + などの初期設定ファイルに, diclookup-mule 起動のためのエントリを追加します. + [${PREFIX}/share/doc/diclookup-emacs20/setup-diclookup.sh] を起動すると, + 自動的に設定をsite-start.el に追加してくれます. ※ ${PREFIX} ここで ${PREFIX} とは ports をコンパイル時の環境変数 PREFIX を 示します. packages では, [/usr/local] となります. 上記の場合, - [/usr/local/lib/dserver/setup-diclookup.sh] と適時読みかえてください. + [/usr/local/share/doc/diclookup-emacs20/setup-diclookup.sh] と適時 + 読みかえてください. II. site-start.el の再編集. setup-diclookup.sh を起動すれば, 自動的に設定を追加してくれるのですが, 一点だけ修正するところがあります. - ${PREFIX}/share/mule/19.34/site-lisp/site-start.el の次の行です. + ${PREFIX}/share/emacs/20.7/site-lisp/site-start.el の次の行です. -------- (setq od-dictfile-list '("od-chujiten" "od-kojien" "od-readers" "od-crown")) ; diclookup-mule @@ -132,7 +136,8 @@ II. site-start.el の再編集. III. 削除(uninstall) 削除は,インストールの逆を行えばよいわけですが,自動的に削除を - 行うためのシェルスクリプト,[${PREFIX}/lib/dserver/deinstall.sh] を + 行うためのシェルスクリプト, + [${PREFIX}/share/doc/diclookup-emacs20/deinstall.sh] を 用意しておきました. その後で,pkg_deleteを行えばOKのはずです. diff --git a/japanese/diclookup-emacs20/files/deinstall-diclookup.sh b/japanese/diclookup-emacs20/files/deinstall-diclookup.sh index 2735c2b69593..1b5079b4eb96 100644 --- a/japanese/diclookup-emacs20/files/deinstall-diclookup.sh +++ b/japanese/diclookup-emacs20/files/deinstall-diclookup.sh @@ -6,8 +6,8 @@ Are you sure?" -1 -1 RETVAL=$? if [ "X${RETVAL}" = "X0" ] ; then # answer is `Yes'. hack diclookup-mule. -cp PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el.bak -grep -v diclookup-mule PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el.bak > PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el +cp PREFIX_DIR/share/emacs/20.7/site-lisp/site-start.el PREFIX_DIR/share/emacs/20.7/site-lisp/site-start.el.bak +grep -v diclookup-mule PREFIX_DIR/share/emacs/20.7/site-lisp/site-start.el.bak > PREFIX_DIR/share/emacs/20.7/site-lisp/site-start.el /usr/bin/dialog --title "Message" --clear \ --msgbox "Thank you for using diclookup-mule. A bientot." -1 -1 diff --git a/japanese/diclookup-emacs20/files/patch-aa b/japanese/diclookup-emacs20/files/patch-aa deleted file mode 100644 index 8fe67e3198b0..000000000000 --- a/japanese/diclookup-emacs20/files/patch-aa +++ /dev/null @@ -1,11 +0,0 @@ ---- diclookup-mule.el.orig Sun Aug 2 15:52:36 1998 -+++ diclookup-mule.el Sun Aug 2 15:52:47 1998 -@@ -2562,7 +2562,7 @@ - (set-process-coding-system - process od-no-conversion od-no-conversion) - (message "transferring sound data...") -- (setq rate (* rate 100)) -+ (setq rate (* rate 1000)) - (process-send-string - process - (concat "RIFF" diff --git a/japanese/diclookup-emacs20/files/patch-ab b/japanese/diclookup-emacs20/files/patch-ab deleted file mode 100644 index 1a2b8872de03..000000000000 --- a/japanese/diclookup-emacs20/files/patch-ab +++ /dev/null @@ -1,10 +0,0 @@ ---- Makefile.org Sat Feb 20 20:14:36 1999 -+++ Makefile Sat Feb 20 20:14:44 1999 -@@ -1,6 +1,6 @@ - EMACS = mule - --LISPDIR = /usr/local/lib/mule/site-lisp -+LISPDIR = /usr/local/share/mule/19.34/site-lisp - - RM = rm -f - diff --git a/japanese/diclookup-emacs20/files/patch-ac b/japanese/diclookup-emacs20/files/patch-ac deleted file mode 100644 index 670545580f5e..000000000000 --- a/japanese/diclookup-emacs20/files/patch-ac +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/Makefile.org Sat Feb 20 20:15:09 1999 -+++ lib/Makefile Sat Feb 20 20:15:15 1999 -@@ -1,6 +1,6 @@ - EMACS = mule - --LISPDIR = /usr/local/lib/mule/site-lisp -+LISPDIR = /usr/local/share/mule/19.34/site-lisp - - RM = rm -f - diff --git a/japanese/diclookup-emacs20/files/setup-diclookup.sh b/japanese/diclookup-emacs20/files/setup-diclookup.sh index ecde9f684544..247fd0eec5de 100644 --- a/japanese/diclookup-emacs20/files/setup-diclookup.sh +++ b/japanese/diclookup-emacs20/files/setup-diclookup.sh @@ -1,16 +1,19 @@ #!/bin/sh +EMACS=emacs +EMACS_VER=20.7 + /usr/bin/dialog --title "ja-diclookup setup" --clear \ --yesno "\n\ You have to install appropreate startup code for diclookup-mule. \n\ This setup script automatically it to: \n\ -PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el. \n\n\ +/usr/local/share/${EMACS}/${EMACS_VER}/site-lisp/site-start.el. \n\n\ Are you sure?" -1 -1 RETVAL=$? # RETVAL=0 for yes, 1 for no, 255 for ESC. if [ "X${RETVAL}" = "X0" ] ; then # answer is `Yes'. hack diclookup-mule. -# Hack PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el +# Hack /usr/local/share/${EMACS}/${EMACS_VER}/site-lisp/site-start.el rm -f /tmp/hack-site-start.el echo "(defun hack-site-start ()" >> /tmp/hack-site-start.el echo " (interactive)" >> /tmp/hack-site-start.el @@ -46,16 +49,17 @@ echo " (insert \" '(\\\"Online Dictionary\\\" . online-dictionary) 'calenda echo " (insert \"; diclookup-mule\n\")" >> /tmp/hack-site-start.el echo " (write-file fname))))" >> /tmp/hack-site-start.el -mule -batch -q -l /tmp/hack-site-start.el -f hack-site-start \ - PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el ; +${EMACS}-${EMACS_VER} -batch -q -l /tmp/hack-site-start.el -f hack-site-start \ + /usr/local/share/${EMACS}/${EMACS_VER}/site-lisp/site-start.el ; rm -f /tmp/hack-site-start.el /usr/bin/dialog --title "ja-diclookup setup" --clear \ --msgbox "\n\ -original file is saved in PREFIX_DIR/share/mule/19.34/site-lisp/site-start.el.bak" -1 -1 +original file is saved in /usr/local/share/${EMACS}/${EMACS_VER}/site-lisp/site-start.el.bak" -1 -1 else /usr/bin/dialog --title "ja-diclookup setup" --clear \ --msgbox "\n\ -For setup, documents under PREFIX_DIR/lib/dserver will be helpful." -1 -1 +For setup, documents under /usr/local/share/doc/diclookup-emacs20 +will be helpful." -1 -1 fi |