Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH] EAPI 6: get_libdir
Date: Sun, 15 Feb 2015 22:14:00
Message-Id: 1424038354-29478-1-git-send-email-mgorny@gentoo.org
1 ---
2 eapi-differences.tex | 5 ++++-
3 pkg-mgr-commands.tex | 34 ++++++++++++++++++++++++++++++++++
4 2 files changed, 38 insertions(+), 1 deletion(-)
5
6 diff --git a/eapi-differences.tex b/eapi-differences.tex
7 index 6a7aa00..abfb663 100644
8 --- a/eapi-differences.tex
9 +++ b/eapi-differences.tex
10 @@ -201,6 +201,9 @@ Controllable compression & \compactfeatureref{docompress} &
11 File mtimes preserved & \compactfeatureref{mtime-preserve} &
12 Undefined & Yes & Yes & Yes & Yes \\
13
14 +\t{get\_libdir} & \compactfeatureref{get-libdir} &
15 + No & No & No & No & Yes \\
16 +
17 \end{longtable}
18 \end{landscape}
19
20 @@ -304,7 +307,7 @@ EAPI 5 is EAPI 4 with the following changes:
21 EAPI 6 is EAPI 5 with the following changes:
22
23 \begin{compactitem}
24 -\item None
25 +\item \t{get\_libdir} support, \featureref{get-libdir}.
26 \end{compactitem}
27
28 \ChangeWhenAddingAnEAPI{6}
29 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
30 index 929d0fe..aa4b7b3 100644
31 --- a/pkg-mgr-commands.tex
32 +++ b/pkg-mgr-commands.tex
33 @@ -94,8 +94,42 @@ to the host root instead of \t{ROOT}.
34 \item[best\_version] Takes exactly one package dependency specification as an argument. If a
35 matching package is installed, prints the category, package name and version of the highest
36 matching version; otherwise, prints an empty string. The exit code is unspecified.
37 +\item[get\_libdir] \featurelabel{get-libdir}
38 + Prints the libdir name obtained according to Algorithm~\ref{alg:get-libdir}.
39 + Only available in EAPIs listed in table~\ref{tab:get-libdir-table} as supporting \t{get\_libdir}.
40 \end{description}
41
42 +\begin{algorithm}
43 +\caption{get\_libdir logic} \label{alg:get-libdir}
44 +\begin{algorithmic}[1]
45 +\STATE let libdir=lib
46 +\IF{the ABI environment variable is set}
47 + \STATE let libvar=LIBDIR\_\$ABI
48 + \IF{the environment variable named by libvar is set}
49 + \STATE let libdir=the value of the variable named by libvar
50 + \ENDIF
51 +\ENDIF
52 +\STATE print the value of libdir
53 +\end{algorithmic}
54 +\end{algorithm}
55 +\ChangeWhenAddingAnEAPI{6}
56 +\begin{centertable}{EAPIs supporting \t{get\_libdir}} \label{tab:get-libdir-table}
57 + \begin{tabular}{ l l }
58 + \toprule
59 + \multicolumn{1}{c}{\textbf{EAPI}} &
60 + \multicolumn{1}{c}{\textbf{Supports \t{get\_libdir}?}} \\
61 + \midrule
62 + \t{0} & No \\
63 + \t{1} & No \\
64 + \t{2} & No \\
65 + \t{3} & No \\
66 + \t{4} & No \\
67 + \t{5} & No \\
68 + \t{6} & Yes \\
69 + \bottomrule
70 + \end{tabular}
71 +\end{centertable}
72 +
73 \subsubsection{Output commands}
74 These commands display messages to the user. Unless otherwise stated, the entire argument list is
75 used as a message, with backslash-escaped characters interpreted as for the \t{echo -e} command of
76 --
77 2.3.0

Replies

Subject Author
Re: [gentoo-pms] [PATCH] EAPI 6: get_libdir Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-pms] [PATCH] EAPI 6: get_libdir Ulrich Mueller <ulm@g.o>