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