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 20/28] domo installs to /usr in EAPI 7.
Date: Wed, 04 Oct 2017 20:47:57
Message-Id: 20171004204712.10391-21-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCHES] EAPI 7, first draft for review by "Michał Górny"
1 Bug: https://bugs.gentoo.org/595924
2 ---
3 eapi-differences.tex | 8 ++++++++
4 pkg-mgr-commands.tex | 25 ++++++++++++++++++++-----
5 2 files changed, 28 insertions(+), 5 deletions(-)
6
7 diff --git a/eapi-differences.tex b/eapi-differences.tex
8 index 3e06916..d9b5558 100644
9 --- a/eapi-differences.tex
10 +++ b/eapi-differences.tex
11 @@ -41,6 +41,13 @@ of this document for a complete table of previous EAPIs.
12 \bottomrule
13 \endlastfoot
14
15 +\t{domo} install path & \compactfeatureref{domo-path} &
16 + \t{\$\{DESTTREE\}\slash share\slash locale} &
17 + \t{\$\{DESTTREE\}\slash share\slash locale} &
18 + \t{\$\{DESTTREE\}\slash share\slash locale} &
19 + \t{\$\{DESTTREE\}\slash share\slash locale} &
20 + \t{/usr\slash share\slash locale} \\
21 +
22 \t{PORTDIR} & \compactfeatureref{portdir} &
23 Yes & Yes & Yes & Yes & No \\
24
25 @@ -439,6 +446,7 @@ EAPI 7 is EAPI 6 with the following changes:
26 \item \t{INSDESTTREE} removed, \featureref{insdesttree}.
27 \item \t{PORTDIR} removed, \featureref{portdir}.
28 \item \t{ECLASSDIR} removed, \featureref{eclassdir}.
29 +\item \t{domo} installs to \t{/usr/share/locale}, ignoring \t{into}, \featureref{domo-path}.
30 \end{compactitem}
31
32 \ChangeWhenAddingAnEAPI{7}
33 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
34 index 8ab8175..bfc3e99 100644
35 --- a/pkg-mgr-commands.tex
36 +++ b/pkg-mgr-commands.tex
37 @@ -542,11 +542,12 @@ can be extended or reduced (see below). The options that can be passed to \t{doh
38 the empty string. In EAPIs specified by table~\ref{tab:doman-table}, the \t{-i18n} option takes
39 precedence over the language code in the filename.
40
41 -\item[domo] Installs the given \t{.mo} files with file mode \t{0644} into the appropriate
42 - subdirectory of \t{DESTTREE\slash share\slash locale}, generated by taking the basename of the
43 - file, removing the \t{.*} suffix, and appending \t{/LC_MESSAGES}\@. The name of the installed
44 - files is the package name with \t{.mo} appended. Failure behaviour is EAPI dependent as per
45 - section~\ref{sec:failure-behaviour}.
46 +\item[domo] \featurelabel{domo-path} Installs the given \t{.mo} files with file mode \t{0644} into
47 + the appropriate subdirectory of the locale tree, generated by taking the basename of the file,
48 + removing the \t{.*} suffix, and appending \t{/LC_MESSAGES}\@. The name of the installed files is
49 + the package name with \t{.mo} appended. Failure behaviour is EAPI dependent as per
50 + section~\ref{sec:failure-behaviour}. The locale tree location is EAPI dependent as per
51 + table~\ref{tab:domo-path}.
52
53 \item[dosbin] As \t{dobin}, but installs to \t{DESTTREE/sbin}.
54
55 @@ -666,6 +667,20 @@ can be extended or reduced (see below). The options that can be passed to \t{doh
56 \end{tabular}
57 \end{centertable}
58
59 +\ChangeWhenAddingAnEAPI{7}
60 +\begin{centertable}{EAPI-dependent install path for \t{domo} command}
61 + \label{tab:domo-path}
62 + \begin{tabular}{ll}
63 + \toprule
64 + \multicolumn{1}{c}{\textbf{EAPI}} &
65 + \multicolumn{1}{c}{\textbf{destination path}} \\
66 + \midrule
67 + 0, 1, 2, 3, 4, 5, 6 & \t{\$\{DESTTREE\}\slash share\slash locale} \\
68 + 7 & \t{/usr/share/locale} \\
69 + \bottomrule
70 + \end{tabular}
71 +\end{centertable}
72 +
73 \subsubsection{Commands affecting install destinations}
74 The following commands are used to set the various destination trees, all relative to \t{\$\{ED\}} in
75 offset-prefix aware EAPIs and relative to \t{\$\{D\}} in offset-prefix agnostic EAPIs, used by the
76 --
77 2.14.2