Add emu subdirectory to load-path when LISPDIR is specified.
[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 (if (boundp 'LISPDIR)
15     (progn
16       (add-to-list 'default-load-path LISPDIR)
17       (add-to-list 'load-path LISPDIR)
18       (add-to-list 'load-path (expand-file-name "emu" LISPDIR))
19       (add-to-list 'load-path (expand-file-name "apel" LISPDIR))
20       ))
21
22 (defvar VERSION_SPECIFIC_LISPDIR nil)
23
24 (if VERSION_SPECIFIC_LISPDIR
25     (add-to-list 'load-path VERSION_SPECIFIC_LISPDIR))
26
27 (condition-case nil
28     (require 'install)
29   (error (error "Please install APEL 8.7 or later.")))
30
31 (add-path "bitmap-mule")
32 (add-path "flim")
33
34 (add-to-list 'load-path (expand-file-name "."))
35
36 (or (module-installed-p 'calist)
37     (error "Please install APEL 8.7 or later."))
38 (or (module-installed-p 'mime)
39     (error "Please install FLIM 1.6.0 or later."))
40 (if (module-installed-p 'tm-view)
41     (message "Please remove tm from load-path."))
42
43
44 ;;; @ Please specify optional package directory if you use them.
45 ;;;
46
47 ;; It is only necessary to use `add-path' if these packages are not
48 ;; already on the standard load-path of Emacs.
49
50 ;; Function `get-latest-path' detect latest version of such package
51 ;; under load-path directories. If you want to use a version of a
52 ;; package instead of latest version, please specify by argument of
53 ;; function `add-path'.
54
55 ;; Function `add-path' finds path under load-path directories. If a
56 ;; package does not exist in load-path, please specify by absolutely
57 ;; (`~/' is available), for example
58 ;;      (add-path "~/lib/elisp/bbdb")
59 ;; or
60 ;;      (add-path "/opt/share/xmule/site-lisp/bbdb")
61
62
63 ;;; @@ Please specify BBDB path.
64 ;;;
65
66 (let ((path (get-latest-path "bbdb" 'all-paths)))
67   (if path
68       (progn
69         (add-path path)
70         (add-path (expand-file-name "lisp" path)) ; run-in-place installation
71         )))
72
73 ;; Or please specify path.
74 ;; (add-path "bbdb-1.50" 'all-paths)
75
76
77 ;;;
78 ;;; @@ Please specify Emacs/W3 path.
79 ;;;
80
81 (let ((path (get-latest-path "w3" 'all-paths)))
82   (if path
83       (progn
84         (add-path path)
85         (add-path (expand-file-name "lisp" path)) ; run-in-place installation
86         )))
87
88 ;; Or please specify path.
89 ;; (add-path "w3-4.0pre.20" 'all-paths)
90
91
92 ;;;
93 ;;; @@ Please specify CUSTOM path.
94 ;;;
95
96 (add-latest-path "custom")
97
98
99 ;;; @ Please specify prefix of install directory.
100 ;;;
101
102 ;; Please specify install path prefix.
103 ;; If it is omitted, shared directory (maybe /usr/local is used).
104 (defvar PREFIX install-prefix)
105 ;;(setq PREFIX "~/")
106
107 ;; Please specify emu prefix [optional]
108 (setq EMU_PREFIX
109       (if (string-match "XEmacs" emacs-version)
110           "emu"
111         ""))
112
113 ;; Please specify SEMI prefix [optional]
114 (setq SEMI_PREFIX "semi")
115
116
117 ;;; @ executables
118 ;;;
119
120 ;; Please specify binary path. (for external method scripts)
121 (setq METHOD_DIR (expand-file-name "share/semi" PREFIX))
122
123
124 \f
125
126 ;;; @ optional settings
127 ;;;
128
129 ;; It is generated by automatically. Please set variable `PREFIX'.
130 ;; If you don't like default directory tree, please set it.
131 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
132 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
133
134 (setq SEMI_KERNEL_DIR   (expand-file-name SEMI_PREFIX   LISPDIR))
135 (setq SETUP_FILE_DIR    SEMI_KERNEL_DIR)
136
137 (setq METHOD_SRC_DIR "methods")
138 (setq METHODS
139       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
140         "tm-plain" "tm-ps"
141         "tmdecode"))
142
143 (defvar PACKAGEDIR (install-get-default-package-directory))
144
145 ;;; SEMI-CFG ends here