Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] [PATCH 10/22] EAPI 6 has eapply.
Date: Thu, 15 Oct 2015 10:50:43
Message-Id: 1444906221-30505-11-git-send-email-ulm@gentoo.org
In Reply to: [gentoo-pms] EAPI 6 draft for review by "Ulrich Müller"
1 Bug: 463768
2 ---
3 eapi-differences.tex | 4 ++++
4 pkg-mgr-commands.tex | 30 ++++++++++++++++++++++++++++++
5 2 files changed, 34 insertions(+)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index 2a4f840..7502c1e 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -172,6 +172,9 @@ Option \t{-{}-host-root} & \compactfeatureref{host-root-option} &
12 \t{die -n} & \compactfeatureref{nonfatal-die} &
13 No & No & No & No & Yes \\
14
15 +\t{eapply} & \compactfeatureref{eapply} &
16 + No & No & No & No & Yes \\
17 +
18 \t{econf} arguments & \compactfeatureref{econf-options} &
19 & & disable dependency tracking &
20 disable dependency tracking, disable silent rules &
21 @@ -324,6 +327,7 @@ EAPI 6 is EAPI 5 with the following changes:
22 \item \t{failglob} is enabled in global scope, \featureref{failglob}.
23 \item \t{einstall} banned, \featureref{banned-commands}.
24 \item \t{die} and \t{assert} called with \t{-n} respect \t{nonfatal}, \featureref{nonfatal-die}.
25 +\item \t{eapply} support, \featureref{eapply}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{6}
29 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
30 index fce819b..7997323 100644
31 --- a/pkg-mgr-commands.tex
32 +++ b/pkg-mgr-commands.tex
33 @@ -143,6 +143,36 @@ completing. Ebuilds must not run any of these commands once the current phase fu
34 \end{tabular}
35 \end{centertable}
36
37 +\subsubsection{Patch commands}
38 +These commands are used during the \t{src\_prepare} phase to apply patches to the package's sources.
39 +Ebuilds must not run any of these commands once the current phase function has returned.
40 +
41 +\begin{description}
42 +\item[eapply] \featurelabel{eapply}
43 + Only available in EAPIs listed in table~\ref{tab:patch-commands} as supporting \t{eapply}.
44 +\end{description}
45 +
46 +\begin{algorithm}
47 +\caption{eapply logic} \label{alg:eapply}
48 +\begin{algorithmic}[1]
49 +\STATE \COMMENT{WORK IN PROGRESS}
50 +\end{algorithmic}
51 +\end{algorithm}
52 +
53 +\ChangeWhenAddingAnEAPI{6}
54 +\begin{centertable}{Patch commands for EAPIs}
55 + \label{tab:patch-commands}
56 + \begin{tabular}{ l l }
57 + \toprule
58 + \multicolumn{1}{c}{\textbf{EAPI}} &
59 + \multicolumn{1}{c}{\textbf{\t{eapply}?}} \\
60 + \midrule
61 + 0, 1, 2, 3, 4, 5 & No \\
62 + 6 & Yes \\
63 + \bottomrule
64 + \end{tabular}
65 +\end{centertable}
66 +
67 \subsubsection{Build commands}
68 These commands are used during the \t{src\_configure}, \t{src\_compile}, and \t{src\_install}
69 phases to run the package's build commands. Ebuilds must not run any of these commands once the
70 --
71 2.6.1