summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaran.mccreesh@googlemail.com>2008-09-11 18:46:55 +0100
committerCiaran McCreesh <ciaran.mccreesh@googlemail.com>2008-09-11 18:47:41 +0100
commit2d6608b111a0f0dfa8f2274747d5d78fb3c88844 (patch)
treec476b824224e22d08277278f7297631fd1cb7b6a /ebuild-functions.tex
parentEAPI 2 src_ functions (diff)
downloadpms-2d6608b111a0f0dfa8f2274747d5d78fb3c88844.tar.gz
pms-2d6608b111a0f0dfa8f2274747d5d78fb3c88844.tar.bz2
pms-2d6608b111a0f0dfa8f2274747d5d78fb3c88844.zip
EAPI 2 default_ functions
Diffstat (limited to 'ebuild-functions.tex')
-rw-r--r--ebuild-functions.tex35
1 files changed, 35 insertions, 0 deletions
diff --git a/ebuild-functions.tex b/ebuild-functions.tex
index 2bdf11d..ce227a8 100644
--- a/ebuild-functions.tex
+++ b/ebuild-functions.tex
@@ -346,6 +346,41 @@ source files from their respective locations, with notes concerning licensing if
\t{pkg\_nofetch} must require no write access to any part of the filesystem.
+\subsection{\t{default\_} Phase Functions}
+
+In EAPIs listed in table~\ref{default-phase-function-table} as supporting \t{default\_} phase
+functions, a function named \t{default\_\$\{EBUILD\_PHASE\}} that behaves as the default
+implementation for that EAPI shall be defined when executing any given \t{EBUILD\_PHASE}. Ebuilds
+must not call these functions except when in the phase in question.
+
+\begin{centertable}{EAPIs supporting \t{default\_} phase functions} \label{default-phase-function-table}
+\IFKDEBUILDELSE
+{
+ \begin{tabular}{ l l }
+ \toprule
+ \multicolumn{1}{c}{\textbf{EAPI}} &
+ \multicolumn{1}{c}{\textbf{Supports \t{default\_} phase functions?}} \\
+ \midrule
+ \t{0} & No \\
+ \t{1} & No \\
+ \t{kdebuild-1} & No \\
+ \t{2} & Yes \\
+ \bottomrule
+ \end{tabular}
+}{
+ \begin{tabular}{ l l }
+ \toprule
+ \multicolumn{1}{c}{\textbf{EAPI}} &
+ \multicolumn{1}{c}{\textbf{Supports \t{default\_} phase functions?}} \\
+ \midrule
+ \t{0} & No \\
+ \t{1} & No \\
+ \t{2} & Yes \\
+ \bottomrule
+ \end{tabular}
+}
+\end{centertable}
+
\section{Call Order}
The call order for installing a package is: