File: site-lib.5

package info (click to toggle)
findlib 1.2.5%2Bdebian-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,496 kB
  • ctags: 678
  • sloc: ml: 4,661; xml: 2,445; sh: 1,322; makefile: 306
file content (338 lines) | stat: -rw-r--r-- 5,194 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
.TH "site-lib" "5" "The findlib package manager for OCaml" "User Manual"
.SH "NAME"
.ft R
site-lib - [Location of package directories]\c
.SH "STANDARD LAYOUT"
.ft R
.ft R
.ft B
.nf
\&...somewhere\ in\ the\ filesystem\ hierarchy...\c
\&
.br
\&\ \ \ |\c
\&
.br
\&\ \ \ \e\ \c
\&
.br
\&\ \ \ \ \ site-lib\c
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ stublibs\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ postinstall\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ postremove\c
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ \c
.ft I
package1\c
.ft B
\&
.br
\&\ \ \ \ \ |\ \ |\c
\&
.br
\&\ \ \ \ \ |\ \ +-\ META\c
\&
.br
\&\ \ \ \ \ |\ \ +-\ \c
.ft I
archive\ files\c
.ft B
\&
.br
\&\ \ \ \ \ |\ \ +-\ \c
.ft I
interface\ definitions\c
.ft B
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ \c
.ft I
package2\c
.ft B
\&
.br
\&\ \ \ \ \ +\c
\&
.br
\&\ \ \ \ \ :\c
\&
.br
\&\ \ \ \ \ :\c
\&
.br
\&\ \ \ \ \ \e\c
\&
.br
\&\ \ \ \ \ \ \ \ \c
.ft I
packageN\c
.ft B
.ft R
.fi
.SH "DESCRIPTION"
.ft R
.ft R
Every installation of "findlib" has a default location for package\c
\&  
directories, which is normally a directory called "site-lib". The\c
\&  
location can be set by the configuration variables\c
\&  
path\c
\& (used to look up packages), and\c
\&  
destdir\c
\& (used to install new packages);\c
\&  
see 
findlib.conf\c
\&.\c
.PP
.ft R
The name of a package is the name of the package directory. For\c
\&  
example, if 
destdir=/usr/local/lib/ocaml/site-lib\c
, the\c
\&  
package p will be installed in the subdirectory\c
\&  
/usr/local/lib/ocaml/site-lib/p\c
\&. This subdirectory\c
\&  
must contain the META file and all other files belonging to the package.\c
\&  
Package names must not contain the '.' character.\c
.PP
.ft R
The variable 
destdir\c
\& specifies the directory for\c
\&  
new packages. You can only have one such directory at a time; but of\c
\&  
course you can change this directory in findlib.conf. The command\c
\&  
ocamlfind install\c
\& puts new packages into this\c
\&  
directory; it is recommended to use this command for installation\c
\&  
because it ensures that the directory layout is right.\c
.PP
.ft R
For searching packages, findlib uses (only) the variable\c
\&  
path\c
\& which may name several locations to look at.\c
.PP
.ft R
For systems with DLL support another directory may exist: stublibs. 
\&  
If present, findlib will install DLLs into this directory that is\c
\&  
shared by all packages at the same site-lib location. Findlib remembers\c
\&  
which DLL belongs to which package by special files with the suffix\c
\&  
".owner"; e.g. for the DLL "dllpcre.so" there is another file\c
\&  
"dllpcre.so.owner" containing the string "pcre", so findlib knows\c
\&  
that the package "pcre" owns this DLL. It is not possible that a DLL\c
\&  
is owned by several packages.\c
.PP
.ft R
If the stublibs directory does not exist, DLLs are installed regularly\c
\&  
in the package directories like any other file.\c
.PP
.ft R
For special needs, a postinstall and/or a postremove script may be\c
\&  
installed in the site-lib directory. These scripts are invoked after\c
\&  
installation or removal of a package, respectively.\c
.SH "ALTERNATE LAYOUT"
.ft R
.ft R
.ft R
.ft B
.nf
\&...somewhere\ in\ the\ filesystem\ hierarchy...\c
\&
.br
\&\ \ \ |\c
\&
.br
\&\ \ \ \e\ \c
\&
.br
\&\ \ \ \ \ site-lib\c
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ stublibs\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ postinstall\c
\&
.br
\&\ \ \ \ \ +-\ (optional)\ postremove\c
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ \c
.ft I
package1\c
.ft B
\&
.br
\&\ \ \ \ \ |\ \ |\c
\&
.br
\&\ \ \ \ \ |\ \ +-\ \c
.ft I
archive\ files\c
.ft B
\&
.br
\&\ \ \ \ \ |\ \ +-\ \c
.ft I
interface\ definitions\c
.ft B
\&
.br
\&\ \ \ \ \ |\c
\&
.br
\&\ \ \ \ \ +-\ \c
.ft I
package2\c
.ft B
\&
.br
\&\ \ \ \ \ +\c
\&
.br
\&\ \ \ \ \ :\c
\&
.br
\&\ \ \ \ \ :\c
\&
.br
\&\ \ \ \ \ \e\c
\&
.br
\&\ \ :\ \ \ \ \ \c
.ft I
packageN\c
.ft B
\&
.br
\&\ \ |\c
\&
.br
\&\ \ \e\c
\&
.br
\&\ \ \ \ metaregistry\c
\&
.br
\&\ \ \ \ |\c
\&
.br
\&\ \ \ \ +-\ META.package1\c
\&
.br
\&\ \ \ \ +-\ META.package2\c
\&
.br
\&\ \ \ \ +\c
\&
.br
\&\ \ \ \ :\c
\&
.br
\&\ \ \ \ \e\c
\&
.br
\&\ \ \ \ \ \ \ META.packageN\c
.ft R
.fi
.PP
.ft R
This is an alternate directory layout collecting all META files in one\c
\&  
directory. You can configure this layout by setting\c
\&  
path\c
\& to the absolute location of\c
\&  
metaregistry\c
\&. Findlib recognizes that there are\c
\&  
META files in this directory and uses them; it is not necessary to\c
\&  
include 
site-lib\c
\& into the 
path\c
\&.\c
.PP
.ft R
In order to work, the META files must contain a\c
\&  
directory\c
\& directive pointing to the corresponding\c
\&  
package directory that resides below 
site-lib\c
\&.\c
.PP
.ft R
The command 
ocamlfind install\c
\& copes with this\c
\&  
layout, too. The variable 
destdir\c
\& must contain the\c
\&  
absolute location of 
site-lib\c
, and the variable\c
\&  
metadir\c
\& must contain the absolute location of\c
\&  
metaregistry\c
\&. Note that 
ocamlfind\c
\&  
install\c
\& automatically adds a 
directory\c
\&  
directive to the META file, so you need not do it manually.\c