Gentoo Archives: gentoo-commits

From: "git@oystercatcher mirror+tproxy" <git@××××××××××××××××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-6 commit in: /
Date: Tue, 03 Mar 2015 06:27:15
Message-Id: 1424333849.2f81c57ccd90b227f342a952aaffa0e1c2b0e265.git@gentoo
1 commit: 2f81c57ccd90b227f342a952aaffa0e1c2b0e265
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 16 15:51:12 2015 +0000
4 Commit: git@oystercatcher mirror+tproxy <git <AT> oystercatcher <DOT> gentoo <DOT> org>
5 CommitDate: Thu Feb 19 08:17:29 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=2f81c57c
7
8 EAPI 6 has get_libdir.
9
10 See bug 463586.
11
12 ---
13 eapi-differences.tex | 4 ++++
14 pkg-mgr-commands.tex | 32 ++++++++++++++++++++++++++++++++
15 2 files changed, 36 insertions(+)
16
17 diff --git a/eapi-differences.tex b/eapi-differences.tex
18 index 08fd629..111fd3d 100644
19 --- a/eapi-differences.tex
20 +++ b/eapi-differences.tex
21 @@ -222,6 +222,9 @@ Controllable compression & \compactfeatureref{docompress} &
22 \t{default} function & \compactfeatureref{default-func} &
23 * & Yes & Yes & Yes & Yes \\
24
25 +\t{get\_libdir} & \compactfeatureref{get-libdir} &
26 + No & No & No & No & Yes \\
27 +
28 File mtimes preserved & \compactfeatureref{mtime-preserve} &
29 Undefined & Yes & Yes & Yes & Yes \\
30
31 @@ -337,6 +340,7 @@ EAPI 6 is EAPI 5 with the following changes:
32 \item \t{unpack} supports absolute and relative paths, \featureref{unpack-absolute}.
33 \item \t{unpack} supports \t{.txz}, \featureref{unpack-extensions}.
34 \item \t{unpack} matches filename extensions case-insensitively, \featureref{unpack-ignore-case}.
35 +\item \t{get\_libdir} support, \featureref{get-libdir}.
36 \end{compactitem}
37
38 \ChangeWhenAddingAnEAPI{6}
39
40 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
41 index eb4a75d..3860f68 100644
42 --- a/pkg-mgr-commands.tex
43 +++ b/pkg-mgr-commands.tex
44 @@ -837,8 +837,26 @@ has returned.
45 section~\ref{sec:default-phase-funcs}). Must not be called if the \t{default\_} function
46 does not exist for the current phase in the current EAPI. Only available in EAPIs listed in
47 table~\ref{tab:default-function-table}.
48 +
49 +\item[get\_libdir] \featurelabel{get-libdir} Prints the libdir name obtained according to
50 + Algorithm~\ref{alg:get-libdir}. Only available in EAPIs listed in table~\ref{tab:get-libdir}
51 + as supporting \t{get\_libdir}.
52 \end{description}
53
54 +\begin{algorithm}
55 +\caption{\t{get\_libdir} logic} \label{alg:get-libdir}
56 +\begin{algorithmic}[1]
57 +\STATE let libdir=lib
58 +\IF{the ABI environment variable is set}
59 + \STATE let libvar=LIBDIR\_\$ABI
60 + \IF{the environment variable named by libvar is set}
61 + \STATE let libdir=the value of the variable named by libvar
62 + \ENDIF
63 +\ENDIF
64 +\STATE print the value of libdir
65 +\end{algorithmic}
66 +\end{algorithm}
67 +
68 \ChangeWhenAddingAnEAPI{6}
69 \begin{centertable}{EAPIs supporting the \t{default} function}
70 \label{tab:default-function-table}
71 @@ -853,6 +871,20 @@ has returned.
72 \end{tabular}
73 \end{centertable}
74
75 +\ChangeWhenAddingAnEAPI{6}
76 +\begin{centertable}{EAPIs supporting \t{get\_libdir}}
77 + \label{tab:get-libdir}
78 + \begin{tabular}{ l l }
79 + \toprule
80 + \multicolumn{1}{c}{\textbf{EAPI}} &
81 + \multicolumn{1}{c}{\textbf{Supports \t{get\_libdir}?}} \\
82 + \midrule
83 + 0, 1, 2, 3, 4, 5 & No \\
84 + 6 & Yes \\
85 + \bottomrule
86 + \end{tabular}
87 +\end{centertable}
88 +
89 \subsubsection{Debug Commands}
90 The following commands are available for debugging. Normally all of these commands should be no ops;
91 a package manager may provide a special debug mode where these commands instead do something.