summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-01-14 10:26:48 +0100
committerUlrich Müller <ulm@gentoo.org>2023-01-18 22:12:28 +0100
commit9dabbe3b66b56d41cc618a096e35310f483e961b (patch)
tree2772d6c703e661a19a688e0554c618cc1d05cdcf /eclasses.tex
parentWhitespace (diff)
downloadpms-9dabbe3b66b56d41cc618a096e35310f483e961b.tar.gz
pms-9dabbe3b66b56d41cc618a096e35310f483e961b.tar.bz2
pms-9dabbe3b66b56d41cc618a096e35310f483e961b.zip
names.tex: Specify eclass names
Eclasses may export phase functions prefixed with their name, so ideally we would follow the syntax of Bash (and POSIX) identifiers: | A word consisting solely of underscores, digits, and alphabetics | from the portable character set. The first character of a name is | not a digit. Because many existing eclasses have a dot or a hyphen in their name, we follow usage in the Gentoo repository instead. (The only historical exception to the above was 64-bit.eclass, not used since 2006 and removed in 2009.) An eclass must not be named "default", otherwise names of exported functions would collide with default_<phase-function>. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclasses.tex')
-rw-r--r--eclasses.tex1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclasses.tex b/eclasses.tex
index 01692bc..0b9b5d4 100644
--- a/eclasses.tex
+++ b/eclasses.tex
@@ -10,6 +10,7 @@ hold.
Eclasses must be located in the \t{eclass} directory in the top level of the repository---see
section~\ref{sec:eclass-dir}. Each eclass is a single file named \t{<name>.eclass}, where \t{<name>}
is the name of this eclass, used by \t{inherit} and \t{EXPORT_FUNCTIONS} among other places.
+\t{<name>} must be a valid eclass name, as per section~\ref{sec:eclass-names}.
\section{The inherit Command}
\label{sec:inherit}