From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 15 Sep 2009 21:39:57 +0000 (-0000) Subject: Update documentation of inherit. Reported by Jeremy Olexa. X-Git-Tag: v2.2_rc41~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2c92fca8dd6c7c23cff35e7d94edba7b03bb134;p=portage.git Update documentation of inherit. Reported by Jeremy Olexa. svn path=/main/trunk/; revision=14274 --- diff --git a/man/ebuild.5 b/man/ebuild.5 index a464541ad..1ee42ff67 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -511,10 +511,11 @@ Inherit is portage's maintenance of extra classes of functions that are external to ebuilds and provided as inheritable capabilities and data. They define functions and set data types as drop\-in replacements, expanded, and simplified routines for extremely common tasks to streamline the build -process. Inherit may only be called once in an ebuild and it may \fBnever be -wrapped within any conditionals\fR of any kind. Specification of the eclasses -contains only their name and not the \fI.eclass\fR extension. Also note that -the inherit statement must come before other variable declarations. +process. Call to inherit cannot depend on conditions which can vary in given +ebuild. Specification of the eclasses contains only their name and not the +\fI.eclass\fR extension. Also note that the inherit statement must come +before other variable declarations unless these variables are used in global +scope of eclasses. .SH "PHASE FUNCTIONS" .TP .B pkg_nofetch