blob: a178878752fdb30330acf01f15f7b90020e17995 (
plain)
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
|
<section id='package-ebuild-eapi-1'>
<title>EAPI 1</title>
<section id='package-ebuild-eapi-1-iuse-defaults'>
<title>IUSE defaults</title>
<para>
A + or - prefix added to the beginning of a flag in IUSE creates
a default USE setting that respectively enables or disables the
corresponding USE flag.
</para>
</section>
<section id='package-ebuild-eapi-1-phases'>
<title>Phases</title>
<section id='package-ebuild-eapi-1-phases-default-src-compile'>
<title>Default src_compile Phase Function</title>
<para>
Support for the ECONF_SOURCE variable, which is also supported
by econf, has been added to the default src_compile implementation.
</para>
<programlisting>
src_compile() {
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
econf
fi
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then
emake || die "emake failed"
fi
}
</programlisting>
</section>
</section>
<section id='package-ebuild-eapi-1-slot-deps'>
<title>SLOT Dependencies</title>
<para>
Any valid atom can be constrained to match a specific SLOT. This is
accomplished by appending a colon to the atom, followed by a SLOT value.
</para>
<table><title>Slot Dependency Examples</title>
<tgroup cols='1' align='left' >
<colspec colname='atom'/>
<thead>
<row>
<entry>Atom</entry>
</row>
</thead>
<tbody>
<row>
<entry>x11-libs/qt:3</entry>
</row>
<row>
<entry>~x11-libs/qt-3.3.8:3</entry>
</row>
<row>
<entry>>=x11-libs/qt-3.3.8:3</entry>
</row>
<row>
<entry>=x11-libs/qt-3.3*:3</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</section>
|