-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.htm
102 lines (91 loc) · 3.45 KB
/
application.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>application</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>application</h1>
</td><td valign="top">
<a href="index.htm">Gentoo Mono Handbook</a>
<br />
FHS: <a href="https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard">overview</a>,
<a href="http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html">3.0</a>
</td></tr></table>
<dl>
<dt><a href="http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s11.html">/usr/share</a></dt>
<dd>The /usr/share hierarchy is for all read-only architecture independent data files.</dd>
<dt><a href="http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s04.html">/usr/bin</a></dt>
<dd>Non-essential command binaries (not needed in single user mode); for all users.</dd>
</dl>
<br />
<a href="https://devmanual.gentoo.org/eclass-reference/eutils.eclass/">https://devmanual.gentoo.org/eclass-reference/eutils.eclass/</a>
<dl>
<dt><a href="https://github.com/gentoo/gentoo/blob/f7d866b62b7040b98e1bd81257f506dbc417672f/eclass/eutils.eclass#L1346-L1390">make_wrapper</a> <<span style="color:orange">wrapper</span>> <target> [chdir] [libpaths] [installpath]</dt>
<dd>Create a shell wrapper script named <span style="color:orange">wrapper</span> in installpath (defaults to the bindir) to execute target (default of wrapper) by first optionally setting LD_LIBRARY_PATH to the colon-delimited libpaths followed by optionally changing directory to chdir.</dd>
</dl>
<br />
<a href="https://www.gnu.org/prep/standards/html_node/Directory-Variables.html">https://www.gnu.org/prep/standards/html_node/Directory-Variables.html</a>
<dl>
<dt><code>bindir</code></dt>
<dd><a name="index-bindir"></a>
<p>The directory for installing executable programs that users can run.
This should normally be <samp>/usr/local/bin</samp>, but write it as
<samp>$(exec_prefix)/bin</samp>.
(If you are using Autoconf, write it as ‘<samp>@bindir@</samp>’.)
</p>
</dd>
</dl>
<br />
/usr/share/${PN}-${SLOT}/
<br />
<br />
<a href="http://tldp.org/LDP/abs/html/string-manipulation.html">http://tldp.org/LDP/abs/html/string-manipulation.html</a>
<dl>
<dt>${string%substring}</dt>
<dd>Deletes shortest match of $substring from back of $string.</dd>
</dl>
<h2>Some examples</h2>
make_wrapper nant "mono /usr/share/nant/NAnt.exe"
<br />
<br />
SLOTTEDDIR="/usr/share/${PN}-${SLOT}/"
<br />
insinto "${SLOTTEDDIR}"
<br />
doins bin/${DIR}/*.{config,dll,exe}
<br />
# install: cannot stat 'bin/Release/*.mdb': No such file or directory
<br />
make_wrapper nunit264 "mono ${SLOTTEDDIR}/nunit-console.exe"
<br />
<br />
make_wrapper ${exe} "mono /usr/$(get_libdir)/${MY_PN}/${exe}.exe" || die
<br />
make_wrapper pash "mono /usr/lib/pash/Pash.exe"
<br />
MONO=/usr/bin/mono
<br />
make_wrapper "$1" "${MONO} --debug /usr/share/${PN}-${SLOT}/$1.exe"
<br />
make_wrapper fake "mono /usr/lib/mono/FAKE/${FRAMEWORK}/FAKE.exe"
<br />
make_wrapper mypad "mono /usr/lib/mypad-${PV}/MyPad.exe"
<br />
<br />
cat /usr/bin/pinta
<pre>
#!/bin/sh
prefix=/usr
exec_prefix=${prefix}
exec /usr/bin/mono /usr/lib64/pinta/Pinta.exe "$@"
</pre>
<br />
grep "\.exe" /usr/bin/monodevelop
<br />
EXE_PATH="/usr/lib/monodevelop/bin/MonoDevelop.exe"
<br />
<br />
</body>
</html>