1 |
The patch below adds EAPI 5 to the cheat sheet. |
2 |
|
3 |
The output can be seen here: <http://dev.gentoo.org/~ulm/cheatsheet/> |
4 |
eapi-cheatsheet.pdf has pages combined into a leaflet for printing, |
5 |
eapi-cheatsheet-nocombine.pdf has separate pages better suited to |
6 |
online viewing. Otherwise, they are identical. |
7 |
|
8 |
Please review. |
9 |
|
10 |
Ulrich |
11 |
|
12 |
|
13 |
From 77f653340d47e26d4aaafac6c6d11e437d7d8519 Mon Sep 17 00:00:00 2001 |
14 |
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o> |
15 |
Date: Sun, 16 Sep 2012 16:34:15 +0200 |
16 |
Subject: [PATCH 2/2] Add EAPI 5 to cheat sheet. |
17 |
|
18 |
--- |
19 |
eapi-cheatsheet.tex | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++- |
20 |
1 file changed, 71 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/eapi-cheatsheet.tex b/eapi-cheatsheet.tex |
23 |
index e14bc90..9d71733 100644 |
24 |
--- a/eapi-cheatsheet.tex |
25 |
+++ b/eapi-cheatsheet.tex |
26 |
@@ -15,7 +15,7 @@ |
27 |
\usepackage[scaled=.90]{helvet} |
28 |
\newcommand{\code}[1]{\texttt{#1}} |
29 |
% This should reflect the latest approved EAPI version |
30 |
-\newcommand{\version}{4.0} |
31 |
+\newcommand{\version}{5.0} |
32 |
\newcommand{\featureref}[1]{\textsc{#1} on page~\pageref{feat:#1}} |
33 |
\renewcommand{\familydefault}{\sfdefault} |
34 |
\urlstyle{sf} |
35 |
@@ -245,6 +245,76 @@ If there is no EAPI explicitly specified, EAPI 0 is assumed. |
36 |
\item[\code{AA}, \code{KV}] These variables are not defined |
37 |
any more. See \featureref{aa} and \featureref{kv}. |
38 |
\end{description} |
39 |
+ |
40 |
+\section{EAPI 5} |
41 |
+\label{sec:cs:eapi5} |
42 |
+\subsection{Additions/Changes} |
43 |
+\label{sec:cs:eapi5-additions} |
44 |
+\begin{description} |
45 |
+ \item[Sub-slots] The \code{SLOT} variable and slot dependencies |
46 |
+ may contain an optional sub-slot part that follows the regular |
47 |
+ slot, delimited by a \code{/} character; for example |
48 |
+ \code{2/2.30}. The sub-slot is used to represent cases in which |
49 |
+ an upgrade to a new version of a package with a different sub-slot |
50 |
+ may require dependent packages to be rebuilt. If the sub-slot is |
51 |
+ not specified in \code{SLOT}, it defaults to the regular slot. |
52 |
+ See \featureref{sub-slot}. |
53 |
+ \item[Slot operator dependencies] One of the following operators |
54 |
+ can be specified after package atoms, which will affect updates |
55 |
+ of runtime dependencies: |
56 |
+ \begin{description} |
57 |
+ \item[\code{:*}] Any slot value is acceptable. The package |
58 |
+ will not break when the dependent package is updated. |
59 |
+ \item[\code{:=}] Any slot value is acceptable, but the package |
60 |
+ can break when the dependent package is updated to a |
61 |
+ different slot (or sub-slot). |
62 |
+ \end{description} |
63 |
+ See \featureref{slot-operator-deps}. |
64 |
+ \item[Profile \code{IUSE} injection] Apart from the USE flags |
65 |
+ explicitly listed in \code{IUSE}, additional flags can be |
66 |
+ implicitly provided by profiles. |
67 |
+ See \featureref{profile-iuse-inject}. |
68 |
+ \item[At-most-one-of groups] In \code{REQUIRED\_USE} you can use |
69 |
+ "\code{?? ( flag1 flag2 \dots\ )}" to allow zero or one USE flag |
70 |
+ out of many. |
71 |
+ See \featureref{at-most-one-of}. |
72 |
+ \item[Parallel tests] The default for \code{src\_test} runs |
73 |
+ \code{emake} without \code{-j1} now. |
74 |
+ See \featureref{parallel-tests}. |
75 |
+ \item[\code{econf} changes] The \code{econf} function now always |
76 |
+ passes \code{-{}-disable-silent-rules} to \code{configure}. |
77 |
+ See \featureref{econf-options}. |
78 |
+ \item[\code{has\_version} and \code{best\_version} changes] |
79 |
+ The two helpers support a \code{-{}-host-root} option that causes |
80 |
+ the query to apply to the host root instead of \code{ROOT}. |
81 |
+ See~\featureref{host-root-option}. |
82 |
+ \item[\code{usex}] Usage for this helper function is |
83 |
+ \code{usex} \emph{<USE flag> [true1] [false1] [true2] [false2]}. |
84 |
+ If the USE flag is set, outputs \emph{[true1][true2]} |
85 |
+ (defaults to \code{yes}), otherwise outputs |
86 |
+ \emph{[false1][false2]} (defaults to \code{no}). |
87 |
+ See \featureref{usex}. |
88 |
+ \item[\code{doheader} and \code{newheader}] These new helper |
89 |
+ functions install the given header file(s) into |
90 |
+ \code{/usr/include}. The \code{-r} option enables recursion for |
91 |
+ \code{doheader}, similar to \code{doins}. |
92 |
+ See \featureref{doheader}. |
93 |
+ \item[\code{new*} standard input] The \code{newins} etc.\ commands |
94 |
+ read from standard input if the first argument is \code{-} |
95 |
+ (a hyphen). |
96 |
+ See \featureref{newfoo-stdin}. |
97 |
+ \item[\code{EBUILD\_PHASE\_FUNC}] This variable is very similar to |
98 |
+ \code{EBUILD\_PHASE}, but contains the name of the current ebuild |
99 |
+ function. |
100 |
+ See \featureref{ebuild-phase-func}. |
101 |
+ \item[Stable use masking/forcing] New files |
102 |
+ \code{use.stable.\allowbreak\{mask,force\}} and |
103 |
+ \code{package.use.stable.\allowbreak\{mask,force\}} |
104 |
+ are supported in profile directories. They are similar to their |
105 |
+ non-\code{stable} counterparts, but act only on packages that |
106 |
+ would be merged due to a stable keyword. |
107 |
+ See \featureref{stablemask}. |
108 |
+\end{description} |
109 |
\end{document} |
110 |
|
111 |
% vim: set filetype=tex fileencoding=utf8 et tw=100 spell spelllang=en : |
112 |
-- |
113 |
1.7.12 |