summaryrefslogtreecommitdiff
blob: d00861ccf1ff92788473149113f81c579cc2e750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<section id='package-ebuild-eapi-0'>
	<title>EAPI 0</title>
	<section id='package-ebuild-eapi-0-phases'>
		<title>Phases</title>
		<section id='package-ebuild-eapi-0-phases-default-src-compile'>
			<title>Default src_compile Phase Function</title>
			<programlisting>
src_compile() {
	if [ -x ./configure ] ; then
		econf
	fi
	if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ] ; then
		emake || die "emake failed"
	fi
}
			</programlisting>
		</section>
	</section>
</section>