- Modify for FLIM 1.5.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.5.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   (if path
77       (add-path path)
78     ))
79
80 ;; Or please specify path.
81 ;; (add-path "bbdb-1.50" 'all-paths)
82
83
84 ;;; @ shell
85 ;;;
86
87 ;; Please specify shell command path.
88 (setq SHELL
89       (find-if (function file-exists-p)
90                '("/bin/sh" "/usr/bin/sh")
91                ))
92
93 ;; Please specify shell command option.
94 (setq SHELLOPTION "-c")
95
96
97 ;;; @ Please specify prefix of install directory.
98 ;;;
99
100 ;; Please specify install path prefix.
101 ;; If it is omitted, shared directory (maybe /usr/local is used).
102 (defvar PREFIX install-prefix)
103 ;;(setq PREFIX "~/")
104
105 ;; Please specify install path prefix for binaries.
106 (defvar EXEC_PREFIX
107   (if (or running-emacs-18 running-xemacs)
108       (expand-file-name "../../.." exec-directory)
109     (expand-file-name "../../../.." exec-directory)
110     ))
111
112 ;; Please specify emu prefix [optional]
113 (setq EMU_PREFIX
114       (if (string-match "XEmacs" emacs-version)
115           "emu"
116         ""))
117
118 ;; Please specify SEMI prefix [optional]
119 (setq SEMI_PREFIX "semi")
120
121
122 ;;; @ executables
123 ;;;
124
125 ;; Please specify binary path.
126 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
127
128 ;; Please specify binary path. (for external method scripts)
129 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
130
131
132 \f
133
134 ;;; @ optional settings
135 ;;;
136
137 ;; It is generated by automatically. Please set variable `PREFIX'.
138 ;; If you don't like default directory tree, please set it.
139 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
140 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
141
142 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
143 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
144
145 (setq METHOD_SRC_DIR "methods")
146 (setq METHODS
147       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
148         "tm-plain" "tm-ps"
149         "tmdecode"))
150
151 ;;; SEMI-CFG ends here