1809e1837e185b284d8b0b78c29f3446310d2c63
[elisp/semi.git] / SEMI-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: SEMI-CFG,v 0.3 1997-02-28 04:20:28 tmorioka Exp $
4 ;;;
5
6 (defvar default-load-path load-path)
7 (setq load-path (append
8                  (mapcar (function
9                           (lambda (path)
10                             (expand-file-name path default-directory)
11                             ))
12                          '("." "../emu" "../tl" "../bitmap-mule"
13                            "../mu" "../mel"
14                            "../emh" "../gnus-mime" "../rmail-mime")
15                          )
16                  load-path))
17
18 (require 'install)
19 (require 'cl)
20
21
22 ;;; @ Please specify optional package directory if you use them.
23 ;;;
24
25 ;; It is only necessary to use `add-path' if these packages are not
26 ;; already on the standard load-path of Emacs.
27
28 ;; Function `get-latest-path' detect latest version of such package
29 ;; under load-path directories. If you want to use a version of a
30 ;; package instead of latest version, please specify by argument of
31 ;; function `add-path'.
32
33 ;; Function `add-path' finds path under load-path directories. If a
34 ;; package does not exist in load-path, please specify by absolutely
35 ;; (`~/' is available), for example
36 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
37 ;; or
38 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
39
40
41 ;;; @@ Please specify Mailcrypt path.
42 ;;;
43
44 ;; Use latest version installed in load-path.
45
46 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
47   (if path
48       (add-path path)
49     ))
50
51 ;; Or please specify path.
52 ;; (add-path "mailcrypt-3.4" 'all-paths)
53
54
55 ;;; @@ Please specify BBDB path.
56 ;;;
57
58 (let ((path (get-latest-path "bbdb" 'all-paths)))
59   (if path
60       (add-path path)
61     ))
62
63 ;; Or please specify path.
64 ;; (add-path "bbdb-1.50" 'all-paths)
65
66
67 ;;; @ shell
68 ;;;
69
70 ;; Please specify shell command path.
71 (setq SHELL
72       (find-if (function file-exists-p)
73                '("/bin/sh" "/usr/bin/sh")
74                ))
75
76 ;; Please specify shell command option.
77 (setq SHELLOPTION "-c")
78
79
80 ;;; @ Please specify prefix of install directory.
81 ;;;
82
83 ;; Please specify install path prefix.
84 ;; If it is omitted, shared directory (maybe /usr/local is used).
85 (defvar PREFIX install-prefix)
86 ;;(setq PREFIX "~/")
87
88 ;; Please specify install path prefix for binaries.
89 (defvar EXEC_PREFIX
90   (if (or running-emacs-18 running-xemacs)
91       (expand-file-name "../../.." exec-directory)
92     (expand-file-name "../../../.." exec-directory)
93     ))
94
95 ;; Please specify prefix for ``bitmap-mule'' [optional]
96 (setq BITMAP_PREFIX "bitmap")
97
98 ;; Please specify MU prefix [optional]
99 (setq MU_PREFIX "mu")
100
101 ;; Please specify MEL prefix [optional]
102 (setq MEL_PREFIX "mel")
103
104 ;; Please specify SEMI prefix [optional]
105 (setq SEMI_PREFIX "semi")
106
107 ;; lisp files of SEMI are installed into following directory tree:
108 ;;
109 ;;      <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
110 ;;      <LISPDIR>/mime-setup.{el|elc}
111 ;;      <LISPDIR>/<BITMAP_PREFIX>/      --- bitmap lisp files
112 ;;      <LISPDIR>/<MU_PREFIX>/          --- MU lisp files
113 ;;      <LISPDIR>/<MEL_PREFIX>/         --- MEL lisp files
114 ;;      <LISPDIR>/<SEMI_PREFIX>/        --- SEMI lisp files
115 ;;
116 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
117 ;;
118 ;;      <LISPDIR> = /usr/local/share/emacs/site-lisp/
119 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
120 ;;      /usr/local/share/emacs/site-lisp/       --- tl  lisp files
121 ;;      /usr/local/share/emacs/site-lisp/mu/    --- MU lisp files
122 ;;      /usr/local/share/emacs/site-lisp/mel/   --- MEL lisp files
123 ;;      /usr/local/share/emacs/site-lisp/semi/  --- SEMI lisp files
124 ;;
125 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
126 ;;
127 ;;      <LISPDIR> = ~/share/xemacs/site-lisp/
128 ;;      ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
129 ;;      ~/lib/xemacs/site-lisp/tl/  --- tl  lisp files
130 ;;      ~/lib/xemacs/site-lisp/mu/  --- MU  lisp files
131 ;;      ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
132 ;;      ~/lib/xemacs/site-lisp/semi/ --- SEMI lisp files
133
134
135 ;;; @ executables
136 ;;;
137
138 ;; Please specify binary path.
139 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
140
141 ;; Please specify binary path. (for external method scripts)
142 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
143
144
145 \f
146
147 ;;; @ optional settings
148 ;;;
149
150 ;; It is generated by automatically. Please set variable `PREFIX'.
151 ;; If you don't like default directory tree, please set it.
152 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
153 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
154
155 (setq BITMAP_DIR        (expand-file-name BITMAP_PREFIX LISPDIR))
156 (setq MU_DIR            (expand-file-name MU_PREFIX     LISPDIR))
157 (setq MEL_DIR           (expand-file-name MEL_PREFIX    LISPDIR))
158 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
159 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
160 (setq EMH_DIR           SEMI_KERNEL_DIR)
161 (setq Gnus_MIME_DIR     SEMI_KERNEL_DIR)
162 (setq RMAIL_MIME_DIR    SEMI_KERNEL_DIR)
163 (setq SEMI_VM_DIR       SEMI_KERNEL_DIR)
164
165 (cond ((member LISPDIR default-load-path)
166        (setq BITMAP_RELATIVE_DIR        BITMAP_PREFIX)
167        (setq MU_RELATIVE_DIR            MU_PREFIX)
168        (setq MEL_RELATIVE_DIR           MEL_PREFIX)
169        (setq SEMI_KERNEL_RELATIVE_DIR   SEMI_PREFIX)
170        )
171       ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
172                      LISPDIR)
173        (setq BITMAP_RELATIVE_DIR
174              (concat "~/" (file-relative-name BITMAP_DIR "~/"))
175              )
176        (setq MU_RELATIVE_DIR
177              (concat "~/" (file-relative-name MU_DIR "~/"))
178              )
179        (setq MEL_RELATIVE_DIR
180              (concat "~/" (file-relative-name MEL_DIR "~/"))
181              )
182        (setq SEMI_KERNEL_RELATIVE_DIR
183              (concat "~/" (file-relative-name SEMI_KERNEL_DIR "~/"))
184              )
185        )
186       (t
187        (setq BITMAP_RELATIVE_DIR        BITMAP_DIR)
188        (setq MU_RELATIVE_DIR            MU_DIR)
189        (setq MEL_RELATIVE_DIR           MEL_DIR)
190        (setq SEMI_KERNEL_RELATIVE_DIR   SEMI_KERNEL_DIR)
191        ))
192 (setq EMH_RELATIVE_DIR          SEMI_KERNEL_RELATIVE_DIR)
193 (setq Gnus_MIME_RELATIVE_DIR    SEMI_KERNEL_RELATIVE_DIR)
194
195 (setq METHOD_SRC_DIR "methods")
196 (setq METHODS
197       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
198         "tm-plain" "tm-ps"
199         "tmdecode"))
200
201 ;;; SEMI-CFG ends here