-
Notifications
You must be signed in to change notification settings - Fork 0
/
locations.htm
65 lines (58 loc) · 1.74 KB
/
locations.htm
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>Where to place compiled binaries in file system according to File Hierarchy Standart 3.0 ?</title>
</head>
<body><a href="https://github.com/ArsenShnurkov/gentoo-mono-handbook"><img alt="Fork me on GitHub" id="forkme" src="images/forkme.png" align="right" width="100" /></a>
<table><tr><td valign="top">
<h1>Where to place compiled binaries in file system according to File Hierarchy Standart 3.0 ?</h1>
</td><td valign="top">
<a href="index.htm">Gentoo Mono Handbook</a>
<br />
</td></tr></table>
${PREFIX}/usr/lib/mono/${EBUILD_FRAMEWORK}
<br />
<br />
/usr/lib = ${libdir}
<br />
for example
<br />
/usr/lib/mono/4.5/mydll.dll
<br />
<br />
egacinstall seems to create symlink in /usr/lib/mono/${PN}/mydll.dll -> /usr/lib/mono/gac/..
<br />
.pc files use that symlink
<br />
<br />
alternative:
<br />
/usr/lib/mono/${PN}/slot-${SLOT}/mydll.dll
<br />
<br />
/use/share/${PN}/slot-${SLOT}/myexe.exe
<h2>Newer approach</h2>
<pre>
if [ "${SLOT}" != "0" ]; then
APPENDIX="-${SLOT}"
fi
# @FUNCTION: framework_assembly_dir
# @DESCRIPTION: returns path for .dll assemblies installation
function framework_assembly_dir() {
echo "/usr/$(get_libdir)/mono/${FRAMEWORK}/${PN}${APPENDIX}"
}
# @FUNCTION: library_assembly_dir
# @DESCRIPTION: returns default directory for installing libraries
function library_assembly_dir() {
echo "/usr/$(get_libdir)/${CATEGORY}/${PN}${APPENDIX}"
}
# @FUNCTION: executable_assembly_dir
# @DESCRIPTION: returns default directory for installing executables
function executable_assembly_dir() {
echo "/usr/share/${PN}${APPENDIX}"
}
</pre>
</body>
</html>