diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2020-12-28 21:40:34 -0500 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2020-12-29 17:07:30 -0500 |
commit | f7cc34083e1b3447dde176963f98c1bf50b29f0b (patch) | |
tree | e2ec730f452e1aacbf62b70ba8121a368a98db67 /eclass-writing | |
parent | ebuild-writing/functions: prefer "phase functions" over "ebuild functions" (diff) | |
download | devmanual-f7cc34083e1b3447dde176963f98c1bf50b29f0b.tar.gz devmanual-f7cc34083e1b3447dde176963f98c1bf50b29f0b.tar.bz2 devmanual-f7cc34083e1b3447dde176963f98c1bf50b29f0b.zip |
eclass-writing: prefer "phase functions" over "ebuild functions"
When the text specifically refers to phase functions, be more verbose
about it. Ebuilds can define other functions that are
internal. Eclasses also define functions. Using the term "phase
functions" should help clarify the ambiguity.
Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
Closes: https://github.com/gentoo/devmanual/pull/183
Diffstat (limited to 'eclass-writing')
-rw-r--r-- | eclass-writing/text.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml index 6598f9a..d0048b3 100644 --- a/eclass-writing/text.xml +++ b/eclass-writing/text.xml @@ -643,7 +643,7 @@ domacosapp() { <body> <p> -An eclass may provide default implementations for any of the standard ebuild +An eclass may provide default implementations for any of the ebuild phase functions (<c>src_unpack</c>, <c>pkg_postinst</c> etc). This can be done either as a simple function definition (which is not multiple eclass friendly) or using <c>EXPORT_FUNCTIONS</c>. Functions given to <c>EXPORT_FUNCTIONS</c> are implemented @@ -651,7 +651,7 @@ as normal, but have their name prefixed with <c>${ECLASS}_</c>. </p> <important> -Only 'standard' functions should be specified in <c>EXPORT_FUNCTIONS</c>. +Only the ebuild phase functions may be specified in <c>EXPORT_FUNCTIONS</c>. </important> <note><c>EXPORT_FUNCTIONS</c> is a function, <e>not</e> a variable.</note> |