Debian Codegraph @

SEMI-CFG

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