X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=SEMI-CFG;h=7485f10ef3b83350dd54dc28ab0ee545e4241b83;hb=d1f3df186339f3d2b91050fb1f079590c8fc30d3;hp=5261dc5157a75cf82fffbba38203dc2fc658c26c;hpb=428a8b10a94705eaef61a5898330ed02d5d0415c;p=elisp%2Fsemi.git diff --git a/SEMI-CFG b/SEMI-CFG index 5261dc5..7485f10 100644 --- a/SEMI-CFG +++ b/SEMI-CFG @@ -1,22 +1,43 @@ ;;; -*-Emacs-Lisp-*- -;;; -;;; $Id: SEMI-CFG,v 0.0 1997-02-22 17:30:15 morioka Exp $ -;;; + +;; SEMI-CFG: installation setting about SEMI. + +;;; Code: (defvar default-load-path load-path) -(setq load-path (append - (mapcar (function - (lambda (path) - (expand-file-name path default-directory) - )) - '("." "../emu" "../tl" "../bitmap-mule" - "../mu" "../mel" - "../emh" "../gnus-mime" "../rmail-mime") - ) - load-path)) -(require 'tl-misc) -(require 'install) +(add-to-list 'load-path + (expand-file-name "../../site-lisp/apel" data-directory)) +(add-to-list 'load-path + (expand-file-name "." data-directory)) + +(if (boundp 'LISPDIR) + (progn + (add-to-list 'default-load-path LISPDIR) + (add-to-list 'load-path LISPDIR) + (add-to-list 'load-path (expand-file-name "apel" LISPDIR)) + )) + +(defvar VERSION_SPECIFIC_LISPDIR nil) + +(if VERSION_SPECIFIC_LISPDIR + (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR)) + +(condition-case nil + (require 'install) + (error (error "Please install APEL 8.7 or later."))) + +(add-path "bitmap-mule") +(add-path "flim") + +(add-to-list 'load-path (expand-file-name ".")) + +(or (module-installed-p 'calist) + (error "Please install APEL 8.7 or later.")) +(or (module-installed-p 'mime) + (error "Please install FLIM 1.6.0 or later.")) +(if (module-installed-p 'tm-view) + (message "Please remove tm from load-path.")) ;;; @ Please specify optional package directory if you use them. @@ -37,19 +58,6 @@ ;; or ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4") -;;; @@ Please specify VM path. -;;; - -;; Use latest version installed in load-path. - -(let ((path (get-latest-path "vm" 'all-paths))) - (if path - (add-path path) - )) - -;; Or please specify path. -;; (add-path "vm-5.95beta" 'all-paths) - ;;; @@ Please specify Mailcrypt path. ;;; @@ -70,24 +78,35 @@ (let ((path (get-latest-path "bbdb" 'all-paths))) (if path - (add-path path) - )) + (progn + (add-path path) + (add-path (expand-file-name "lisp" path)) ; run-in-place installation + ))) ;; Or please specify path. ;; (add-path "bbdb-1.50" 'all-paths) -;;; @ shell ;;; +;;; @@ Please specify Emacs/W3 path. +;;; + +(let ((path (get-latest-path "w3" 'all-paths))) + (if path + (progn + (add-path path) + (add-path (expand-file-name "lisp" path)) ; run-in-place installation + ))) -;; Please specify shell command path. -(setq SHELL - (find-if (function file-exists-p) - '("/bin/sh" "/usr/bin/sh") - )) +;; Or please specify path. +;; (add-path "w3-4.0pre.20" 'all-paths) -;; Please specify shell command option. -(setq SHELLOPTION "-c") + +;;; +;;; @@ Please specify CUSTOM path. +;;; + +(add-latest-path "custom") ;;; @ Please specify prefix of install directory. @@ -98,75 +117,21 @@ (defvar PREFIX install-prefix) ;;(setq PREFIX "~/") -;; Please specify install path prefix for binaries. -(defvar EXEC_PREFIX - (if (or running-emacs-18 running-xemacs) - (expand-file-name "../../.." exec-directory) - (expand-file-name "../../../.." exec-directory) - )) - ;; Please specify emu prefix [optional] (setq EMU_PREFIX (if (string-match "XEmacs" emacs-version) "emu" "")) -;; Please specify tl prefix [optional] -;;(setq TL_PREFIX "tl") -(setq TL_PREFIX - (if (string-match "XEmacs" emacs-version) - "tl" - "")) - -;; Please specify prefix for ``bitmap-mule'' [optional] -(setq BITMAP_PREFIX "bitmap") - -;; Please specify MU prefix [optional] -(setq MU_PREFIX "mu") - -;; Please specify MEL prefix [optional] -(setq MEL_PREFIX "mel") - ;; Please specify SEMI prefix [optional] (setq SEMI_PREFIX "semi") -;; lisp files of SEMI are installed into following directory tree: -;; -;; = /DATA_PREFIX// -;; /mime-setup.{el|elc} -;; // --- tl lisp files -;; // --- bitmap lisp files -;; // --- MU lisp files -;; // --- MEL lisp files -;; // --- SEMI lisp files -;; -;; For example, if = "/usr/local" and you use Emacs 19.34, -;; -;; = /usr/local/share/emacs/site-lisp/ -;; /usr/local/share/emacs/site-lisp/mime-setup.{el|elc} -;; /usr/local/share/emacs/site-lisp/ --- tl lisp files -;; /usr/local/share/emacs/site-lisp/mu/ --- MU lisp files -;; /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files -;; /usr/local/share/emacs/site-lisp/semi/ --- SEMI lisp files -;; -;; For example, if = "~/" and you use XEmacs, -;; -;; = ~/share/xemacs/site-lisp/ -;; ~/lib/xemacs/site-lisp/mime-setup.{el|elc} -;; ~/lib/xemacs/site-lisp/tl/ --- tl lisp files -;; ~/lib/xemacs/site-lisp/mu/ --- MU lisp files -;; ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files -;; ~/lib/xemacs/site-lisp/semi/ --- SEMI lisp files - ;;; @ executables ;;; -;; Please specify binary path. -(defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX)) - ;; Please specify binary path. (for external method scripts) -(setq METHOD_DIR (expand-file-name "share/tm" PREFIX)) +(setq METHOD_DIR (expand-file-name "share/semi" PREFIX)) @@ -179,65 +144,27 @@ (defvar LISPDIR (install-detect-elisp-directory PREFIX)) ;; (setq install-default-elisp-directory "~/lib/emacs/lisp") -(setq EMU_DIR - (expand-file-name - EMU_PREFIX - (install-detect-elisp-directory PREFIX nil 'version-specific))) - -;; Please specify mime-setup.{el|elc} install path. -(setq SETUP_FILE_DIR LISPDIR) - -(setq TL_DIR (expand-file-name TL_PREFIX LISPDIR)) -(setq BITMAP_DIR (expand-file-name BITMAP_PREFIX LISPDIR)) -(setq MU_DIR (expand-file-name MU_PREFIX LISPDIR)) -(setq MEL_DIR (expand-file-name MEL_PREFIX LISPDIR)) (setq SEMI_KERNEL_DIR (expand-file-name SEMI_PREFIX LISPDIR)) -(setq EMH_DIR SEMI_KERNEL_DIR) -(setq Gnus_MIME_DIR SEMI_KERNEL_DIR) -(setq RMAIL_MIME_DIR SEMI_KERNEL_DIR) -(setq SEMI_VM_DIR SEMI_KERNEL_DIR) - -(cond ((member LISPDIR default-load-path) - (setq TL_RELATIVE_DIR TL_PREFIX) - (setq BITMAP_RELATIVE_DIR BITMAP_PREFIX) - (setq MU_RELATIVE_DIR MU_PREFIX) - (setq MEL_RELATIVE_DIR MEL_PREFIX) - (setq SEMI_KERNEL_RELATIVE_DIR SEMI_PREFIX) - ) - ((string-match (concat "^" (regexp-quote (expand-file-name "~/"))) - LISPDIR) - (setq TL_RELATIVE_DIR - (concat "~/" (file-relative-name TL_DIR "~/")) - ) - (setq BITMAP_RELATIVE_DIR - (concat "~/" (file-relative-name BITMAP_DIR "~/")) - ) - (setq MU_RELATIVE_DIR - (concat "~/" (file-relative-name MU_DIR "~/")) - ) - (setq MEL_RELATIVE_DIR - (concat "~/" (file-relative-name MEL_DIR "~/")) - ) - (setq SEMI_KERNEL_RELATIVE_DIR - (concat "~/" (file-relative-name SEMI_KERNEL_DIR "~/")) - ) - ) - (t - (setq TL_RELATIVE_DIR TL_DIR) - (setq BITMAP_RELATIVE_DIR BITMAP_DIR) - (setq MU_RELATIVE_DIR MU_DIR) - (setq MEL_RELATIVE_DIR MEL_DIR) - (setq SEMI_KERNEL_RELATIVE_DIR SEMI_KERNEL_DIR) - )) -(setq EMH_RELATIVE_DIR SEMI_KERNEL_RELATIVE_DIR) -(setq Gnus_MIME_RELATIVE_DIR SEMI_KERNEL_RELATIVE_DIR) - -(setq BIN_SRC_DIR "src") -(setq BINS '("ol2" "decode-b")) +(setq SETUP_FILE_DIR SEMI_KERNEL_DIR) + (setq METHOD_SRC_DIR "methods") (setq METHODS '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg" "tm-plain" "tm-ps" "tmdecode")) +(defvar PACKAGEDIR + (if (boundp 'early-packages) + (let ((dirs (append (if early-package-load-path + early-packages) + (if late-package-load-path + late-packages) + (if last-package-load-path + last-packages))) + dir) + (while (not (file-exists-p + (setq dir (car dirs)))) + (setq dirs (cdr dirs))) + dir))) + ;;; SEMI-CFG ends here