Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-6 commit in: /
Date: Sun, 30 Aug 2015 19:03:59
Message-Id: 1440961053.32ce34e9934e530d5c09ee78acb0b3f666f10e6f.ulm@gentoo
1 commit: 32ce34e9934e530d5c09ee78acb0b3f666f10e6f
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 23 11:37:13 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 18:57:33 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=32ce34e9
7
8 EAPI 6 has a different src_install implementation.
9
10 eapi-differences.tex | 3 ++-
11 ebuild-functions.tex | 17 ++++++++++++++++-
12 2 files changed, 18 insertions(+), 2 deletions(-)
13
14 diff --git a/eapi-differences.tex b/eapi-differences.tex
15 index 30ed46b..452349e 100644
16 --- a/eapi-differences.tex
17 +++ b/eapi-differences.tex
18 @@ -105,7 +105,7 @@ Parallel tests & \compactfeatureref{parallel-tests} &
19 No & No & No & Yes & Yes \\
20
21 \t{src\_install} style & \compactfeatureref{src-install} &
22 - no-op & no-op & 4 & 4 & 4 \\
23 + no-op & no-op & 4 & 4 & 6 \\
24
25 \t{pkg\_info} & \compactfeatureref{pkg-info} &
26 Installed & Installed & Both & Both & Both \\
27 @@ -345,6 +345,7 @@ EAPI 6 is EAPI 5 with the following changes:
28 \begin{compactitem}
29 \item Profile \t{package*} and \t{use*} can be directories, \featureref{profile-file-dirs}.
30 \item Default \t{src\_prepare} no longer a no-op, \featureref{src-prepare-6}.
31 +\item Different \t{src\_install} implementation, \featureref{src-install-6}.
32 \item Bash version is 4.2, \featureref{bash-version}.
33 \item \t{failglob} is enabled in global scope, \featureref{failglob}.
34 \item \t{einstall} banned, \featureref{banned-commands}.
35
36 diff --git a/ebuild-functions.tex b/ebuild-functions.tex
37 index 1f996f0..bf16f9e 100644
38 --- a/ebuild-functions.tex
39 +++ b/ebuild-functions.tex
40 @@ -326,6 +326,20 @@ src_install() {
41 }
42 \end{verbatim}
43
44 +\featurelabel{src-install-6} For EAPIs listed in table~\ref{tab:src-install-table} as using format
45 +6, the default implementation used when the ebuild lacks the \t{src\_install} function shall behave
46 +as:
47 +
48 +\begin{verbatim}
49 +src_install() {
50 + if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]]; then
51 + emake DESTDIR="${D}" install
52 + fi
53 +
54 + einstalldocs
55 +}
56 +\end{verbatim}
57 +
58 For other EAPIs, the default implementation used when the ebuild lacks the \t{src\_install} function
59 is a no-op.
60
61 @@ -338,7 +352,8 @@ is a no-op.
62 \multicolumn{1}{c}{\textbf{Format}} \\
63 \midrule
64 0, 1, 2, 3 & no-op \\
65 - 4, 5, 6 & 4 \\
66 + 4, 5 & 4 \\
67 + 6 & 6 \\
68 \bottomrule
69 \end{tabular}
70 \end{centertable}