aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-08-07 12:50:08 +0000
committerZac Medico <zmedico@gentoo.org>2008-08-07 12:50:08 +0000
commitd9b7de771efda8e7e27ac462a57b0a0b40b89674 (patch)
treef38ebedc0708d88179008bb8d229ff004937c4f4 /doc/package
parentFix a bug in vardbapi.removeFromContents() which sometimes prevents the (diff)
downloadportage-d9b7de771efda8e7e27ac462a57b0a0b40b89674.tar.gz
portage-d9b7de771efda8e7e27ac462a57b0a0b40b89674.tar.bz2
portage-d9b7de771efda8e7e27ac462a57b0a0b40b89674.zip
Add support in EAPI 2_pre2 for a function named "default" is redefined for
each phase so that it will call the default_* function corresponding to the current phase. Thanks to Thomas Anderson <gentoofan23> for the initial patch. svn path=/main/trunk/; revision=11342
Diffstat (limited to 'doc/package')
-rw-r--r--doc/package/ebuild/eapi/2.docbook10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/package/ebuild/eapi/2.docbook b/doc/package/ebuild/eapi/2.docbook
index dc2e0dc0a..275ab71ef 100644
--- a/doc/package/ebuild/eapi/2.docbook
+++ b/doc/package/ebuild/eapi/2.docbook
@@ -163,5 +163,15 @@
implementation.
</para>
</sect3>
+ <sect3 id='package-ebuild-eapi-2-phases-default-function-alias'>
+ <title>Default Phase Function Alias</title>
+ <para>
+ A function named "default" is redefined for each phase so that it
+ will call the default_* function corresponding to the current phase.
+ For example, a call to the function named "default" during the
+ src_compile phase is equivalent to a call to the function named
+ default_src_compile.
+ </para>
+ </sect3>
</sect2>
</sect1>