commit: 4a48d5b25f4e9b687427d47932cc4692adad10ec
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 9 19:46:01 2016 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 9 20:59:32 2016 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=4a48d5b2
Specify restrictions upon license names.
ebuild-vars.tex | 3 ++-
names.tex | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ebuild-vars.tex b/ebuild-vars.tex
index 1577e26..5f53c33 100644
--- a/ebuild-vars.tex
+++ b/ebuild-vars.tex
@@ -51,7 +51,8 @@ Ebuilds may define any of the following variables:
\t{https://}, \t{ftp://} and \t{mirror://} (see
section~\ref{sec:thirdpartymirrors} for mirror
behaviour). Fetch restricted packages may include URL parts consisting of
just a filename.
See section~\ref{sec:dependencies} for full syntax.
-\item[LICENSE] The package's license. Each text token must correspond to a
tree ``licenses/'' entry
+\item[LICENSE] The package's license. Each text token must be a valid license
name, as per
+ section~\ref{sec:license-names}, and must correspond to a tree
``licenses/'' entry
(see section~\ref{sec:licenses-dir}). See section~\ref{sec:dependencies}
for full syntax.
\label{ebuild-var-LICENSE}
\item[KEYWORDS] A whitespace separated list of keywords for the ebuild. Each
token must be a valid
diff --git a/names.tex b/names.tex
index f5cc9bf..d26fed6 100644
--- a/names.tex
+++ b/names.tex
@@ -37,6 +37,11 @@ described in section~\ref{sec:use-iuse-handling}.
A repository name may contain any of the characters [\t{A-Za-z0-9\_-}]. It
must not begin with a
hyphen. In addition, every repository name must also be a valid package name.
+\subsection{License Names}
+\label{sec:license-names}
+A license name may contain any of the characters [\t{A-Za-z0-9+\_.-}]. It must
not begin with a
+hyphen, a dot or a plus sign.
+
\subsection{Keyword Names}
\label{sec:keyword-names}
A keyword name may contain any of the characters [\t{A-Za-z0-9\_-}]. It must
not begin with a