Modify for FLIM 1.6.0.
[elisp/semi.git] / SEMI-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; SEMI-CFG: installation setting about SEMI.
4
5 ;;; Code:
6
7 (require 'cl)
8
9 (defvar default-load-path load-path)
10
11 (add-to-list 'load-path
12              (expand-file-name "../../site-lisp/apel" data-directory))
13 (add-to-list 'load-path
14              (expand-file-name "." data-directory))
15
16 (when (boundp 'LISPDIR)
17   (add-to-list 'default-load-path LISPDIR)
18   (add-to-list 'load-path LISPDIR)
19   (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
20   )
21
22 (condition-case nil
23     (require 'install)
24   (error (error "Please install APEL 8.7 or later.")))
25
26 (add-path "bitmap-mule")
27 (add-path "flim")
28
29 (add-to-list 'load-path (expand-file-name "."))
30
31 (or (module-installed-p 'calist)
32     (error "Please install APEL 8.7 or later."))
33 (or (module-installed-p 'mime-lib)
34     (error "Please install FLIM 1.6.0 or later."))
35 (if (module-installed-p 'tm-view)
36     (message "Please remove tm from load-path."))
37
38
39 ;;; @ Please specify optional package directory if you use them.
40 ;;;
41
42 ;; It is only necessary to use `add-path' if these packages are not
43 ;; already on the standard load-path of Emacs.
44
45 ;; Function `get-latest-path' detect latest version of such package
46 ;; under load-path directories. If you want to use a version of a
47 ;; package instead of latest version, please specify by argument of
48 ;; function `add-path'.
49
50 ;; Function `add-path' finds path under load-path directories. If a
51 ;; package does not exist in load-path, please specify by absolutely
52 ;; (`~/' is available), for example
53 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
54 ;; or
55 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
56
57
58 ;;; @@ Please specify Mailcrypt path.
59 ;;;
60
61 ;; Use latest version installed in load-path.
62
63 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
64   (if path
65       (add-path path)
66     ))
67
68 ;; Or please specify path.
69 ;; (add-path "mailcrypt-3.4" 'all-paths)
70
71
72 ;;; @@ Please specify BBDB path.
73 ;;;
74
75 (let ((path (get-latest-path "bbdb" 'all-paths)))
76   (when path
77     (add-path path)
78     (add-path (expand-file-name "lisp" path)) ; run-in-place installation
79     ))
80
81 ;; Or please specify path.
82 ;; (add-path "bbdb-1.50" 'all-paths)
83
84
85 ;;;
86 ;;; @@ Please specify Emacs/W3 path.
87 ;;;
88
89 (let ((path (get-latest-path "w3" 'all-paths)))
90   (when path
91     (add-path path)
92     (add-path (expand-file-name "lisp" path)) ; run-in-place installation
93     ))
94
95 ;; Or please specify path.
96 ;; (add-path "w3-4.0pre.20" 'all-paths)
97
98
99 ;;; @ shell
100 ;;;
101
102 ;; Please specify shell command path.
103 (setq SHELL
104       (find-if (function file-exists-p)
105                '("/bin/sh" "/usr/bin/sh")
106                ))
107
108 ;; Please specify shell command option.
109 (setq SHELLOPTION "-c")
110
111
112 ;;; @ Please specify prefix of install directory.
113 ;;;
114
115 ;; Please specify install path prefix.
116 ;; If it is omitted, shared directory (maybe /usr/local is used).
117 (defvar PREFIX install-prefix)
118 ;;(setq PREFIX "~/")
119
120 ;; Please specify install path prefix for binaries.
121 (defvar EXEC_PREFIX
122   (if (or running-emacs-18 running-xemacs)
123       (expand-file-name "../../.." exec-directory)
124     (expand-file-name "../../../.." exec-directory)
125     ))
126
127 ;; Please specify emu prefix [optional]
128 (setq EMU_PREFIX
129       (if (string-match "XEmacs" emacs-version)
130           "emu"
131         ""))
132
133 ;; Please specify SEMI prefix [optional]
134 (setq SEMI_PREFIX "semi")
135
136
137 ;;; @ executables
138 ;;;
139
140 ;; Please specify binary path.
141 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
142
143 ;; Please specify binary path. (for external method scripts)
144 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
145
146
147 \f
148
149 ;;; @ optional settings
150 ;;;
151
152 ;; It is generated by automatically. Please set variable `PREFIX'.
153 ;; If you don't like default directory tree, please set it.
154 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
155 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
156
157 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
158 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
159
160 (setq METHOD_SRC_DIR "methods")
161 (setq METHODS
162       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
163         "tm-plain" "tm-ps"
164         "tmdecode"))
165
166 ;;; SEMI-CFG ends here