public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2019-11-26  3:05 Göktürk Yüksek
  0 siblings, 0 replies; 8+ messages in thread
From: Göktürk Yüksek @ 2019-11-26  3:05 UTC (permalink / raw
  To: gentoo-commits

commit:     0d2eb7f1f123886068ee8ef9171e7cbb73d040c0
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 22 20:02:39 2018 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 02:20:31 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=0d2eb7f1

xsl/lang.highlight.ebuild.xsl: highlight eapply calls

Closes: https://github.com/gentoo/devmanual/pull/86
Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index e2b1d72..b9a8c95 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -112,7 +112,7 @@
       <!-- Default keywords -->
       <xsl:when test="$data = 'use' or $data = 'has_version' or $data = 'best_version' or $data = 'use_with' or $data = 'use_enable' or
 		      $data = 'check_KV' or $data = 'keepdir' or $data = 'econf' or $data = 'die' or $data = 'einstall' or $data = 'einfo' or 
-		      $data = 'elog' or
+		      $data = 'elog' or $data = 'eapply' or
 		      $data = 'ewarn' or $data = 'eerror' or $data = 'diropts' or $data = 'dobin' or $data = 'docinto' or $data = 'dodoc' or
 		      $data = 'doexe' or $data = 'dohard' or $data = 'dohtml' or $data = 'doinfo' or $data = 'doins' or $data = 'dolib' or
 		      $data = 'dolib$dataa' or $data = 'dolib$dataso' or $data = 'doman' or $data = 'dosbin' or $data = 'dosym' or $data = 'emake' or


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2019-11-26  3:05 Göktürk Yüksek
  0 siblings, 0 replies; 8+ messages in thread
From: Göktürk Yüksek @ 2019-11-26  3:05 UTC (permalink / raw
  To: gentoo-commits

commit:     d44fa2793160272f590aa4b976d4b8c80092c655
Author:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 26 02:41:05 2019 +0000
Commit:     Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 02:51:51 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d44fa279

xsl/lang.highlight.ebuild.xsl: add more EAPI keywords to highlight

The list is taken from
https://gitweb.gentoo.org/proj/ebuild-mode.git/tree/ebuild-mode-keywords.el#n32

Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index b9a8c95..9f90fb1 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -112,7 +112,7 @@
       <!-- Default keywords -->
       <xsl:when test="$data = 'use' or $data = 'has_version' or $data = 'best_version' or $data = 'use_with' or $data = 'use_enable' or
 		      $data = 'check_KV' or $data = 'keepdir' or $data = 'econf' or $data = 'die' or $data = 'einstall' or $data = 'einfo' or 
-		      $data = 'elog' or $data = 'eapply' or
+		      $data = 'elog' or
 		      $data = 'ewarn' or $data = 'eerror' or $data = 'diropts' or $data = 'dobin' or $data = 'docinto' or $data = 'dodoc' or
 		      $data = 'doexe' or $data = 'dohard' or $data = 'dohtml' or $data = 'doinfo' or $data = 'doins' or $data = 'dolib' or
 		      $data = 'dolib$dataa' or $data = 'dolib$dataso' or $data = 'doman' or $data = 'dosbin' or $data = 'dosym' or $data = 'emake' or
@@ -126,6 +126,26 @@
 	<span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
+      <!-- PMS keywords for EAPI4 -->
+      <xsl:when test="$data = 'docompress' or $data = 'nonfatal'">
+	<span class="Statement"><xsl:value-of select="$data"/></span>
+      </xsl:when>
+
+      <!-- PMS keywords for EAPI5 -->
+      <xsl:when test="$data = 'doheader' or $data = 'newheader' or $data = 'usex'">
+	<span class="Statement"><xsl:value-of select="$data"/></span>
+      </xsl:when>
+
+      <!-- PMS keywords for EAPI6 -->
+      <xsl:when test="$data = 'eapply' or $data = 'eapply_user' or $data = 'einstalldocs' or $data = 'get_libdir' or $data = 'in_iuse'">
+	<span class="Statement"><xsl:value-of select="$data"/></span>
+      </xsl:when>
+
+      <!-- PMS keywords for EAPI7 -->
+      <xsl:when test="$data = 'dostrip' or $data = 'eqawarn' or $data = 'ver_cut' or $data = 'ver_rs' or $data = 'ver_test'">
+	<span class="Statement"><xsl:value-of select="$data"/></span>
+      </xsl:when>
+
       <!-- Sandbox -->
       <xsl:when test="$data = 'addread' or $data = 'addwrite' or $data = 'adddeny' or $data = 'addpredict'">
 	<span class="Statement"><xsl:value-of select="$data"/></span>
@@ -138,6 +158,13 @@
 	<span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
+      <!-- Default keywords phase functions -->
+      <xsl:when test="$data = 'default' or $data = 'default_pkg_nofetch' or $data = 'default_src_unpack' or
+		      $data = 'default_src_prepare' or $data = 'default_src_configure' or $data = 'default_src_compile' or
+		      $data = 'default_src_test' or $data = 'default_src_install'">
+	<span class="Statement"><xsl:value-of select="$data"/></span>
+      </xsl:when>
+
       <!-- Inherit -->
       <xsl:when test="$data = 'inherit'">
 	<span class="Statement"><xsl:value-of select="$data"/></span>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2019-12-19  8:55 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2019-12-19  8:55 UTC (permalink / raw
  To: gentoo-commits

commit:     4d741415a1a0c237a2cd9ad552c4371b5c6bf532
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 19 08:53:19 2019 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Dec 19 08:53:19 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4d741415

str.tokenize.function.xsl: Fix line endings from CRLF to LF.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/str.tokenize.function.xsl | 176 +++++++++++++++++++++---------------------
 1 file changed, 88 insertions(+), 88 deletions(-)

diff --git a/xsl/str.tokenize.function.xsl b/xsl/str.tokenize.function.xsl
index 2be90fe..e588761 100644
--- a/xsl/str.tokenize.function.xsl
+++ b/xsl/str.tokenize.function.xsl
@@ -1,88 +1,88 @@
-<?xml version="1.0"?>
-<!-- This is the EXSLT implementation of str:tokenize by Jeni Tennison,
-     I've modified it to keep the tokens since we need them - plasmaroo -->
-
-<xsl:stylesheet version="1.0"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                xmlns:func="http://exslt.org/functions"
-                xmlns:exsl="http://exslt.org/common"
-                xmlns:str="http://exslt.org/strings"
-                extension-element-prefixes="str func exsl xsl"
-                exclude-result-prefixes="str func exsl xsl"
-                xmlns="http://www.w3.org/1999/xhtml">
-
-<func:function name="str:tokenize_plasmaroo">
-	<xsl:param name="string" select="''" />
-  <xsl:param name="delimiters" select="' &#x9;&#xA;'" />
-  <xsl:choose>
-    <xsl:when test="not($string)">
-      <func:result select="/.." />
-    </xsl:when>
-    <xsl:when test="not(function-available('exsl:node-set'))">
-      <xsl:message terminate="yes">
-        ERROR: EXSLT - Functions implementation of str:tokenize relies on exsl:node-set().
-      </xsl:message>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:variable name="tokens">
-        <xsl:choose>
-          <xsl:when test="not($delimiters)">
-            <xsl:call-template name="str:_tokenize-characters">
-              <xsl:with-param name="string" select="$string" />
-            </xsl:call-template>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:call-template name="str:_tokenize-delimiters">
-              <xsl:with-param name="string" select="$string" />
-              <xsl:with-param name="delimiters" select="$delimiters" />
-            </xsl:call-template>
-          </xsl:otherwise>
-        </xsl:choose>
-      </xsl:variable>
-      <func:result select="exsl:node-set($tokens)/*" />
-    </xsl:otherwise>
-  </xsl:choose>
-</func:function>
-
-<xsl:template name="str:_tokenize-characters">
-  <xsl:param name="string" />
-  <xsl:if test="$string">
-    <token><xsl:value-of select="substring($string, 1, 1)" /></token>
-    <xsl:call-template name="str:_tokenize-characters">
-      <xsl:with-param name="string" select="substring($string, 2)" />
-    </xsl:call-template>
-  </xsl:if>
-</xsl:template>
-
-<xsl:template name="str:_tokenize-delimiters">
-  <xsl:param name="string"/>
-  <xsl:param name="delimiters"/>
-  <xsl:variable name="delimiter" select="substring($delimiters, 1, 1)" />
-  <xsl:choose>
-    <xsl:when test="not($delimiter)">
-      <token><xsl:value-of select="$string" /></token>
-    </xsl:when>
-    <xsl:when test="contains($string, $delimiter)">
-      <xsl:if test="not(starts-with($string, $delimiter))">
-        <xsl:call-template name="str:_tokenize-delimiters">
-          <xsl:with-param name="string" select="substring-before($string, $delimiter)" />
-          <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
-        </xsl:call-template>
-        <xsl:value-of select="$delimiter"/>
-      </xsl:if>
-      <delimiter><xsl:attribute name="delimiter"><xsl:value-of select="$delimiter"/></xsl:attribute><xsl:value-of select="$delimiter"/></delimiter>
-      <xsl:call-template name="str:_tokenize-delimiters">
-        <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
-        <xsl:with-param name="delimiters" select="$delimiters"/>
-      </xsl:call-template>
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:call-template name="str:_tokenize-delimiters">
-        <xsl:with-param name="string" select="$string" />
-        <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
-      </xsl:call-template>
-    </xsl:otherwise>
-  </xsl:choose>
-</xsl:template>
-
-</xsl:stylesheet>
+<?xml version="1.0"?>
+<!-- This is the EXSLT implementation of str:tokenize by Jeni Tennison,
+     I've modified it to keep the tokens since we need them - plasmaroo -->
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:func="http://exslt.org/functions"
+                xmlns:exsl="http://exslt.org/common"
+                xmlns:str="http://exslt.org/strings"
+                extension-element-prefixes="str func exsl xsl"
+                exclude-result-prefixes="str func exsl xsl"
+                xmlns="http://www.w3.org/1999/xhtml">
+
+<func:function name="str:tokenize_plasmaroo">
+	<xsl:param name="string" select="''" />
+  <xsl:param name="delimiters" select="' &#x9;&#xA;'" />
+  <xsl:choose>
+    <xsl:when test="not($string)">
+      <func:result select="/.." />
+    </xsl:when>
+    <xsl:when test="not(function-available('exsl:node-set'))">
+      <xsl:message terminate="yes">
+        ERROR: EXSLT - Functions implementation of str:tokenize relies on exsl:node-set().
+      </xsl:message>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:variable name="tokens">
+        <xsl:choose>
+          <xsl:when test="not($delimiters)">
+            <xsl:call-template name="str:_tokenize-characters">
+              <xsl:with-param name="string" select="$string" />
+            </xsl:call-template>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:call-template name="str:_tokenize-delimiters">
+              <xsl:with-param name="string" select="$string" />
+              <xsl:with-param name="delimiters" select="$delimiters" />
+            </xsl:call-template>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:variable>
+      <func:result select="exsl:node-set($tokens)/*" />
+    </xsl:otherwise>
+  </xsl:choose>
+</func:function>
+
+<xsl:template name="str:_tokenize-characters">
+  <xsl:param name="string" />
+  <xsl:if test="$string">
+    <token><xsl:value-of select="substring($string, 1, 1)" /></token>
+    <xsl:call-template name="str:_tokenize-characters">
+      <xsl:with-param name="string" select="substring($string, 2)" />
+    </xsl:call-template>
+  </xsl:if>
+</xsl:template>
+
+<xsl:template name="str:_tokenize-delimiters">
+  <xsl:param name="string"/>
+  <xsl:param name="delimiters"/>
+  <xsl:variable name="delimiter" select="substring($delimiters, 1, 1)" />
+  <xsl:choose>
+    <xsl:when test="not($delimiter)">
+      <token><xsl:value-of select="$string" /></token>
+    </xsl:when>
+    <xsl:when test="contains($string, $delimiter)">
+      <xsl:if test="not(starts-with($string, $delimiter))">
+        <xsl:call-template name="str:_tokenize-delimiters">
+          <xsl:with-param name="string" select="substring-before($string, $delimiter)" />
+          <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
+        </xsl:call-template>
+        <xsl:value-of select="$delimiter"/>
+      </xsl:if>
+      <delimiter><xsl:attribute name="delimiter"><xsl:value-of select="$delimiter"/></xsl:attribute><xsl:value-of select="$delimiter"/></delimiter>
+      <xsl:call-template name="str:_tokenize-delimiters">
+        <xsl:with-param name="string" select="substring-after($string, $delimiter)"/>
+        <xsl:with-param name="delimiters" select="$delimiters"/>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:call-template name="str:_tokenize-delimiters">
+        <xsl:with-param name="string" select="$string" />
+        <xsl:with-param name="delimiters" select="substring($delimiters, 2)" />
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2020-01-15 21:29 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2020-01-15 21:29 UTC (permalink / raw
  To: gentoo-commits

commit:     484b3f78d5bc5a2ae47c4f52d0bb4c5ead80aa2d
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 10:11:11 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 21:28:45 2020 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=484b3f78

xsl/lang.highlight.c.xsl: Define the myPos variable.

This was undeclared, leading to a runtime error:

runtime error: file xsl/lang.highlight.c.xsl line 35 element variable
Variable 'myPos' has not been declared.
XPath error : Undefined variable
runtime error: file xsl/lang.highlight.c.xsl line 35 element variable
Failed to evaluate the expression of variable 'quotePos'.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/lang.highlight.c.xsl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xsl/lang.highlight.c.xsl b/xsl/lang.highlight.c.xsl
index d2d115e..730182c 100644
--- a/xsl/lang.highlight.c.xsl
+++ b/xsl/lang.highlight.c.xsl
@@ -32,6 +32,7 @@
 
     <!-- Scan for quotes... -->
     <xsl:for-each select="exslt:node-set($tokenizedData)">
+    <xsl:variable name="myPos" select="position()"/>
     <xsl:variable name="quotePos" select="count(../*[@delimiter='&quot;' and position() &lt; $myPos])"/>
     <xsl:variable name="commentOpen" select="count(str:tokenize_plasmaroo(substring-before($data, concat(' ', '/*'))))"/>
     <xsl:variable name="commentClosed" select="count(str:tokenize_plasmaroo(substring-before($data, concat(' ', '*/'))))"/>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2021-09-07 18:01 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2021-09-07 18:01 UTC (permalink / raw
  To: gentoo-commits

commit:     49511c02cfe9b3ca1a188a3254735ebfe75460be
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  7 17:57:12 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Sep  7 17:57:12 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=49511c02

lang.highlight.ebuild.xsl: Fix spurious replacement of . by $data

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index bbf9c64..47d884a 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -115,7 +115,7 @@
 		      $data = 'elog' or
 		      $data = 'ewarn' or $data = 'eerror' or $data = 'diropts' or $data = 'dobin' or $data = 'docinto' or $data = 'dodoc' or
 		      $data = 'doexe' or $data = 'dohard' or $data = 'dohtml' or $data = 'doinfo' or $data = 'doins' or $data = 'dolib' or
-		      $data = 'dolib$dataa' or $data = 'dolib$dataso' or $data = 'doman' or $data = 'dosbin' or $data = 'dosym' or $data = 'emake' or
+		      $data = 'dolib.a' or $data = 'dolib.so' or $data = 'doman' or $data = 'dosbin' or $data = 'dosym' or $data = 'emake' or
 		      $data = 'exeinto' or $data = 'exeopts' or $data = 'fowners' or $data = 'fperms' or $data = 'insinto' or $data = 'insopts' or
 		      $data = 'into' or $data = 'libopts' or $data = 'newbin' or $data = 'newexe' or $data = 'newins' or $data = 'newman' or
 		      $data = 'newsbin' or $data = 'prepall' or $data = 'prepalldocs' or $data = 'prepallinfo' or $data = 'prepallman' or
@@ -282,7 +282,7 @@
 
       <!--  games -->
       <xsl:when test="$data = 'egamesconf' or $data = 'egamesinstall' or $data = 'gameswrapper' or $data = 'dogamesbin' or $data = 'dogamessbin' or $data = 'dogameslib' or
-		      $data = 'dogameslib$dataa' or $data = 'dogameslib$dataso' or $data = 'newgamesbin' or $data = 'newgamessbin' or
+		      $data = 'dogameslib.a' or $data = 'dogameslib.so' or $data = 'newgamesbin' or $data = 'newgamessbin' or
 		      $data = 'gamesowners' or $data = 'gamesperms' or $data = 'prepgamesdirs' or $data = 'gamesenv' or $data = 'games_pkg_setup' or
 		      $data = 'games_src_compile' or $data = 'games_pkg_postinst' or $data = 'games_ut_unpack' or $data = 'games_umod_unpack' or
 		      $data = 'games_make_wrapper'">
@@ -326,7 +326,7 @@
 	<span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
-      <!--  depend$dataapache -->
+      <!--  depend.apache -->
       <xsl:when test="$data = 'need_apache' or $data = 'need_apache1' or $data = 'need_apache2'">
 	<span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2023-11-06 18:11 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2023-11-06 18:11 UTC (permalink / raw
  To: gentoo-commits

commit:     2c608b94d37db7706096864c67ed34772724ffc8
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  4 20:43:34 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Nov  6 18:08:43 2023 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=2c608b94

lang.highlight.ebuild.xsl: Collect shell commands in a variable

Rewrap some long lines.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index 4dff8d1..30ccc08 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -11,6 +11,11 @@
   <xsl:variable name="lang.highlight.ebuild.variable-end">}</xsl:variable>
   <xsl:variable name="lang.highlight.ebuild.commentChar">#</xsl:variable>
 
+  <xsl:variable name="shell-keywords">
+    ; if then fi -ge -lt -le -gt elif else eval unset sed rm cat [[ ]] while do read done make echo cd local return for
+    case esac in -n [ ] -z -f &lt;&lt;- &gt; EOF
+  </xsl:variable>
+
   <xsl:variable name="pkg-mgr-keywords">
     <!-- Package manager commands in EAPI 0 (excluding commands banned in later EAPIs) -->
     assert best_version debug-print debug-print-function debug-print-section die diropts dobin docinto doconfd dodir
@@ -184,14 +189,9 @@
         </xsl:choose>
       </xsl:when>
 
-      <!-- Functioney highlighing -->
+      <!-- Function highlighting -->
       <!-- sh grammar -->
-      <xsl:when test="$data = ';' or $data = 'if' or $data = 'then' or $data = 'fi' or $data = '-ge' or $data = '-lt' or $data = '-le' or
-                      $data = '-gt' or $data = 'elif' or $data = 'else' or $data = 'eval' or $data = 'unset' or $data = 'sed' or
-                      $data = 'rm' or $data = 'cat' or $data = '[[' or $data = ']]' or $data = 'while' or $data = 'do' or $data = 'read' or
-                      $data = 'done' or $data = 'make' or $data = 'echo' or $data = 'cd' or $data = 'local' or $data = 'return' or
-                      $data = 'for' or $data = 'case' or $data = 'esac' or $data = 'in' or $data = '-n' or $data = '[' or $data = ']' or
-                      $data = '-z' or $data = '-f' or $data = '&lt;&lt;-' or $data = '&gt;' or $data = 'EOF'">
+      <xsl:when test="str:tokenize($shell-keywords)[$data = .]">
         <span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
@@ -221,7 +221,8 @@
     <!-- Scan for comments. If a comment is found then this is a positional
          index that is non-zero that refers to the last node that is not
          a comment. -->
-    <xsl:variable name="commentSeeker" select="count(str:tokenize_plasmaroo(substring-before($data, concat(' ', $lang.highlight.ebuild.commentChar))))"/>
+    <xsl:variable name="commentSeeker" select="count(str:tokenize_plasmaroo(substring-before($data,
+                                               concat(' ', $lang.highlight.ebuild.commentChar))))"/>
 
     <!-- Scan for quotes... -->
     <xsl:for-each select="exslt:node-set($tokenizedData)">
@@ -232,7 +233,8 @@
       <!-- See if we should be processing comments by now; we need to test for
            two possible cases:  * commentSeeker != 0 (so we have a comment), or,
                                 * the first token is a "#" -->
-      <xsl:when test="($commentSeeker != 0 and position() &gt; $commentSeeker) or substring(../*[position()=1], 1, 1) = $lang.highlight.ebuild.commentChar or
+      <xsl:when test="($commentSeeker != 0 and position() &gt; $commentSeeker) or
+                      substring(../*[position()=1], 1, 1) = $lang.highlight.ebuild.commentChar or
                       . = $lang.highlight.ebuild.commentChar">
         <span class="Comment"><xsl:value-of select="."/></span>
       </xsl:when>


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2023-11-06 18:11 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2023-11-06 18:11 UTC (permalink / raw
  To: gentoo-commits

commit:     7393d9b055bf655e0c1b12067de0d18537786ed3
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  4 18:44:31 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Nov  6 18:08:43 2023 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=7393d9b0

lang.highlight.ebuild.xsl: Update keyword lists

Update list of package manager commands up to EAPI 8.

Include eclasses that are:
- used in an existing example in the Devmanual, or
- general purpose eclasses and inherited by more than 1000 ebuilds
  in the Gentoo repository.

The lists of commands are taken from ebuild-mode.

Closes: https://bugs.gentoo.org/916628
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 337 +++++++++++-------------------------------
 1 file changed, 89 insertions(+), 248 deletions(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index 5a931e0..4dff8d1 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -11,6 +11,91 @@
   <xsl:variable name="lang.highlight.ebuild.variable-end">}</xsl:variable>
   <xsl:variable name="lang.highlight.ebuild.commentChar">#</xsl:variable>
 
+  <xsl:variable name="pkg-mgr-keywords">
+    <!-- Package manager commands in EAPI 0 (excluding commands banned in later EAPIs) -->
+    assert best_version debug-print debug-print-function debug-print-section die diropts dobin docinto doconfd dodir
+    dodoc doenvd doexe doinfo doinitd doins dolib.a dolib.so doman domo dosbin dosym ebegin econf eend eerror einfo
+    einfon elog emake ewarn exeinto exeopts EXPORT_FUNCTIONS fowners fperms has has_version inherit insinto insopts into
+    keepdir newbin newconfd newdoc newenvd newexe newinitd newins newlib.a newlib.so newman newsbin unpack use usev
+    use_enable use_with
+    <!-- EAPI 4 -->
+    docompress nonfatal
+    <!-- EAPI 5 -->
+    doheader newheader usex
+    <!-- EAPI 6 -->
+    eapply eapply_user einstalldocs get_libdir in_iuse
+    <!-- EAPI 7 -->
+    dostrip eqawarn ver_cut ver_rs ver_test
+    <!-- EAPI 8: no new commands -->
+    <!-- Sandbox -->
+    adddeny addpredict addread addwrite
+    <!-- Phase functions -->
+    pkg_pretend pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm pkg_config pkg_info pkg_nofetch src_unpack
+    src_prepare src_configure src_compile src_test src_install
+    <!-- Default phase functions -->
+    default default_pkg_nofetch default_src_unpack default_src_prepare default_src_configure default_src_compile
+    default_src_test default_src_install
+  </xsl:variable>
+
+  <xsl:variable name="eclass-keywords">
+    <!-- autotools -->
+    autotools_check_macro autotools_m4dir_include autotools_m4sysdir_include config_rpath_update eaclocal
+    eaclocal_amflags eautoconf eautoheader eautomake eautopoint eautoreconf
+    <!-- bash-completion-r1 -->
+    bashcomp_alias dobashcomp get_bashcompdir newbashcomp
+    <!-- cmake -->
+    cmake_build cmake_comment_add_subdirectory cmake_run_in cmake_src_compile cmake_src_configure cmake_src_install
+    cmake_src_prepare cmake_src_test cmake_use_find_package
+    <!-- desktop -->
+    doicon domenu make_desktop_entry make_session_desktop newicon newmenu
+    <!-- epatch -->
+    epatch
+    <!-- flag-o-matic -->
+    all-flag-vars append-atomic-flags append-cflags append-cppflags append-cxxflags append-fflags append-flags
+    append-ldflags append-lfs-flags append-libs filter-flags filter-ldflags filter-lfs-flags filter-lto filter-mfpmath
+    get-flag is-flag is-flagq is-ldflag is-ldflagq no-as-needed raw-ldflags replace-cpu-flags replace-flags
+    replace-sparc64-flags strip-flags strip-unsupported-flags test-compile test-flag-CC test-flag-CCLD test-flag-CXX
+    test-flag-F77 test-flag-FC test-flags test-flags-CC test-flags-CCLD test-flags-CXX test-flags-F77 test-flags-FC
+    test_version_info
+    <!-- git-r3 -->
+    git-r3_checkout git-r3_fetch git-r3_peek_remote_ref git-r3_pkg_needrebuild git-r3_src_fetch git-r3_src_unpack
+    pkg_needrebuild
+    <!-- meson -->
+    meson_feature meson_install meson_src_compile meson_src_configure meson_src_install meson_src_test meson_use
+    <!-- multilib -->
+    get_abi_CFLAGS get_abi_CHOST get_abi_CTARGET get_abi_FAKE_TARGETS get_abi_LDFLAGS get_abi_LIBDIR get_all_abis
+    get_all_libdirs get_exeext get_install_abis get_libname get_modname has_multilib_profile is_final_abi multilib_env
+    multilib_toolchain_setup number_abis
+    <!-- ninja-utils -->
+    eninja get_NINJAOPTS
+    <!-- readme.gentoo-r1 -->
+    readme.gentoo_create_doc readme.gentoo_print_elog
+    <!-- rpm -->
+    rpm_spec_epatch rpm_src_unpack rpm_unpack srcrpm_unpack
+    <!-- toolchain-funcs -->
+    clang-fullversion clang-major-version clang-micro-version clang-minor-version clang-version econf_build
+    gcc-fullversion gcc-major-version gcc-micro-version gcc-minor-version gcc-specs-directive gcc-specs-nostrict
+    gcc-specs-now gcc-specs-pie gcc-specs-relro gcc-specs-ssp gcc-specs-ssp-to-all gcc-specs-stack-check gcc-version
+    gen_usr_ldscript tc-arch tc-arch-kernel tc-check-openmp tc-cpp-is-true tc-detect-is-softfloat
+    tc-enables-cxx-assertions tc-enables-fortify-source tc-enables-pie tc-enables-ssp tc-enables-ssp-all
+    tc-enables-ssp-strong tc-endian tc-env_build tc-export tc-export_build_env tc-get-c-rtlib tc-get-compiler-type
+    tc-get-cxx-stdlib tc-getAR tc-getAS tc-getBUILD_AR tc-getBUILD_AS tc-getBUILD_CC tc-getBUILD_CPP tc-getBUILD_CXX
+    tc-getBUILD_LD tc-getBUILD_NM tc-getBUILD_OBJCOPY tc-getBUILD_PKG_CONFIG tc-getBUILD_PROG tc-getBUILD_RANLIB
+    tc-getBUILD_READELF tc-getBUILD_STRINGS tc-getBUILD_STRIP tc-getCC tc-getCPP tc-getCXX tc-getDLLWRAP tc-getF77
+    tc-getFC tc-getGCJ tc-getGO tc-getLD tc-getNM tc-getOBJCOPY tc-getOBJDUMP tc-getPKG_CONFIG tc-getPROG tc-getRANLIB
+    tc-getRC tc-getREADELF tc-getSTRINGS tc-getSTRIP tc-getTARGET_CPP tc-has-tls tc-is-clang tc-is-cross-compiler
+    tc-is-gcc tc-is-softfloat tc-is-static-only tc-ld-disable-gold tc-ld-force-bfd tc-ld-is-gold tc-ld-is-lld
+    tc-ninja_magic_to_arch tc-stack-grows-down tc-tuple-is-softfloat
+    <!-- user -->
+    enewgroup enewuser esetcomment esetgroups esethome esetshell
+    <!-- virtualx -->
+    virtx
+    <!-- xdg -->
+    xdg_pkg_postinst xdg_pkg_postrm xdg_pkg_preinst xdg_src_prepare
+    <!-- xdg-utils -->
+    xdg_desktop_database_update xdg_environment_reset xdg_icon_cache_update xdg_mimeinfo_database_update
+  </xsl:variable>
+
   <xsl:template name="lang.highlight.ebuild.subtokenate">
     <xsl:param name="data"/>
     <xsl:param name="nokeywords"/>
@@ -110,257 +195,13 @@
         <span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
-      <!-- Default keywords -->
-      <xsl:when test="$data = 'use' or $data = 'has_version' or $data = 'best_version' or $data = 'use_with' or $data = 'use_enable' or
-                      $data = 'check_KV' or $data = 'keepdir' or $data = 'econf' or $data = 'die' or $data = 'einstall' or $data = 'einfo' or
-                      $data = 'elog' or
-                      $data = 'ewarn' or $data = 'eerror' or $data = 'diropts' or $data = 'dobin' or $data = 'docinto' or $data = 'dodoc' or
-                      $data = 'doexe' or $data = 'dohard' or $data = 'dohtml' or $data = 'doinfo' or $data = 'doins' or $data = 'dolib' or
-                      $data = 'dolib.a' or $data = 'dolib.so' or $data = 'doman' or $data = 'dosbin' or $data = 'dosym' or $data = 'emake' or
-                      $data = 'exeinto' or $data = 'exeopts' or $data = 'fowners' or $data = 'fperms' or $data = 'insinto' or $data = 'insopts' or
-                      $data = 'into' or $data = 'libopts' or $data = 'newbin' or $data = 'newexe' or $data = 'newins' or $data = 'newman' or
-                      $data = 'newsbin' or $data = 'prepall' or $data = 'prepalldocs' or $data = 'prepallinfo' or $data = 'prepallman' or
-                      $data = 'prepallstrip' or $data = 'has' or $data = 'unpack' or $data = 'dosed' or $data = 'into' or
-                      $data = 'doinitd' or $data = 'doconfd' or $data = 'doenvd' or $data = 'dojar' or $data = 'domo' or $data = 'dodir' or
-                      $data = 'ebegin' or $data = 'eend' or $data = 'newconfd' or $data = 'newdoc' or $data = 'newenvd' or $data = 'newinitd' or
-                      $data = 'newlib.a' or $data = 'newlib.so' or $data = 'hasq' or $data = 'hasv' or $data = 'useq' or $data = 'usev'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- PMS keywords for EAPI4 -->
-      <xsl:when test="$data = 'docompress' or $data = 'nonfatal'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- PMS keywords for EAPI5 -->
-      <xsl:when test="$data = 'doheader' or $data = 'newheader' or $data = 'usex'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- PMS keywords for EAPI6 -->
-      <xsl:when test="$data = 'eapply' or $data = 'eapply_user' or $data = 'einstalldocs' or $data = 'get_libdir' or $data = 'in_iuse'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- PMS keywords for EAPI7 -->
-      <xsl:when test="$data = 'dostrip' or $data = 'eqawarn' or $data = 'ver_cut' or $data = 'ver_rs' or $data = 'ver_test'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- Sandbox -->
-      <xsl:when test="$data = 'addread' or $data = 'addwrite' or $data = 'adddeny' or $data = 'addpredict'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- Recognised functions -->
-      <xsl:when test="$data = 'pkg_nofetch' or $data = 'pkg_setup' or $data = 'src_unpack' or $data = 'src_compile' or $data = 'src_test' or
-                      $data = 'src_install' or $data = 'pkg_preinst' or $data = 'pkg_postinst' or $data = 'pkg_prerm' or $data = 'pkg_postrm' or
-                      $data = 'pkg_config'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- Default keywords phase functions -->
-      <xsl:when test="$data = 'default' or $data = 'default_pkg_nofetch' or $data = 'default_src_unpack' or
-                      $data = 'default_src_prepare' or $data = 'default_src_configure' or $data = 'default_src_compile' or
-                      $data = 'default_src_test' or $data = 'default_src_install'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- Inherit -->
-      <xsl:when test="$data = 'inherit'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- eutils -->
-      <xsl:when test="$data = 'gen_usr_ldscript' or $data = 'draw_line' or $data = 'epatch' or $data = 'have_NPTL' or $data = 'get_number_of_jobs' or
-                      $data = 'egetent' or $data = 'emktemp' or $data = 'enewuser' or $data = 'enewgroup' or $data = 'edos2unix' or
-                      $data = 'make_desktop_entry' or $data = 'unpack_pdv' or $data = 'unpack_makeself' or $data = 'check_license' or
-                      $data = 'cdrom_get_cds' or $data = 'cdrom_load_next' or $data = 'cdrom_locate_file_on_cd' or $data = 'strip-linguas' or
-                      $data = 'epause' or $data = 'ebeep' or $data = 'built_with_use' or $data = 'make_session_desktop' or $data = 'domenu' or
-                      $data = 'doicon' or $data = 'find_unpackable_file' or $data = 'unpack_pdv' or $data = 'set_arch_to_kernel' or
-                      $data = 'set_arch_to_portage' or $data = 'preserve_old_lib' or $data = 'preserve_old_lib_notify' or $data = 'built_with_use' or
-                      $data = 'epunt_cxx' or $data = 'dopamd' or $data = 'newpamd' or $data = 'make_wrapper'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- flag-o-matic -->
-      <xsl:when test="$data = 'setup-allowed-flags' or $data = 'filter-flags' or $data = 'filter-lfs-flags' or $data = 'append-lfs-flags' or
-                      $data = 'append-flags' or $data = 'replace-flags' or $data = 'replace-cpu-flags' or $data = 'is-flag' or $data = 'filter-mfpmath' or
-                      $data = 'strip-flags' or $data = 'test_flag' or $data = 'test_version_info' or $data = 'strip-unsupported-flags' or
-                      $data = 'get-flag' or $data = 'has_hardened' or $data = 'has_pic' or $data = 'has_pie' or $data = 'has_ssp_all' or $data = 'has_ssp' or
-                      $data = 'has_m64' or $data = 'has_m32' or $data = 'replace-sparc64-flags' or $data = 'append-ldflags' or $data = 'filter-ldflags' or
-                      $data = 'fstack-flags' or $data = 'gcc2-flags'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  gcc -->
-      <xsl:when test="$data = 'gcc-getCC' or $data = 'gcc-getCXX' or $data = 'gcc-fullversion' or $data = 'gcc-version' or
-                      $data = 'gcc-major-version' or $data = 'gcc-minor-version' or $data = 'gcc-micro-version' or
-                      $data = 'gcc-libpath' or $data = 'gcc-libstdcxx-version' or $data = 'gcc-libstdcxx-major-version' or
-                      $data = 'gcc2-flags'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  libtool -->
-      <xsl:when test="$data = 'elibtoolize' or $data = 'uclibctoolize' or $data = 'darwintoolize'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  fixheadtails -->
-      <xsl:when test="$data = 'ht_fix_file' or $data = 'ht_fix_all'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  fdo-mime -->
-      <xsl:when test="$data = 'fdo-mime_desktop_database_update' or $data = 'fdo-mime_mime_database_update'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  webapp -->
-      <xsl:when test="$data = 'webapp_checkfileexists' or $data = 'webapp_import_config' or $data = 'webapp_strip_appdir' or
-                      $data = 'webapp_strip_d' or $data = 'webapp_strip_cwd' or $data = 'webapp_configfile' or $data = 'webapp_hook_script' or
-                      $data = 'webapp_postinst_txt' or $data = 'webapp_postupgrade_txt' or $data = 'webapp_runbycgibin' or
-                      $data = 'webapp_serverowned' or $data = 'webapp_server_configfile' or $data = 'webapp_sqlscript' or
-                      $data = 'webapp_src_install' or $data = 'webapp_pkg_postinst' or $data = 'webapp_pkg_setup' or
-                      $data = 'webapp_getinstalltype' or $data = 'webapp_src_preinst' or $data = 'webapp_pkg_prerm'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!-- versionator -->
-      <xsl:when test="$data = 'get_all_version_components' or $data = 'version_is_at_least' or $data = 'get_version_components' or
-                      $data = 'get_major_version' or $data = 'get_version_component_range' or $data = 'get_after_major_version' or
-                      $data = 'replace_version_separator' or $data = 'replace_all_version_separators' or $data = 'delete_version_separator' or
-                      $data = 'delete_all_version_separators'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  cvs -->
-      <xsl:when test="$data = 'cvs_fetch' or $data = 'cvs_src_unpack'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  bash-completion -->
-      <xsl:when test="$data = 'dobashcompletion' or $data = 'bash-completion_pkg_postinst' or $data = 'complete'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  vim-plugin -->
-      <xsl:when test="$data = 'vim-plugin_src_install' or $data = 'vim-plugin_pkg_postinst' or $data = 'vim-plugin_pkg_postrm' or
-                      $data = 'update_vim_afterscripts' or $data = 'display_vim_plugin_help'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  vim-doc -->
-      <xsl:when test="update_vim_helptags">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  multilib -->
-      <xsl:when test="$data = 'has_multilib_profile' or $data = 'get_libdir' or $data = 'get_multilibdir' or $data = 'get_libdir_override' or
-                      $data = 'get_abi_var' or $data = 'get_abi_CFLAGS' or $data = 'get_abi_LDFLAGS' or
-                      $data = 'get_abi_CHOST' or $data = 'get_abi_FAKE_TARGETS' or $data = 'get_abi_CDEFINE' or
-                      $data = 'get_abi_LIBDIR' or $data = 'get_install_abis ' or $data = 'get_all_abis' or $data = 'get_all_libdirs' or
-                      $data = 'is_final_abi' or $data = 'number_abis' or $data = 'get_ml_incdir' or $data = 'prep_ml_includes' or
-                      $data = 'create_ml_includes' or $data = 'create_ml_includes-absolute' or $data = 'create_ml_includes-tidy_path' or
-                      $data = 'create_ml_includes-listdirs' or $data = 'create_ml_includes-makedestdirs' or $data = 'create_ml_includes-allfiles' or
-                      $data = 'create_ml_includes-sym_for_dir'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  toolchain-funcs -->
-      <xsl:when test="$data = 'tc-getPROG' or $data = 'tc-getAR' or $data = 'tc-getAS' or $data = 'tc-getCC' or $data = 'tc-getCXX' or $data = 'tc-getLD' or $data = 'tc-getNM' or
-                      $data = 'tc-getRANLIB' or $data = 'tc-getF77' or $data = 'tc-getGCJ' or $data = 'tc-getBUILD_CC' or
-                      $data = 'tc-export' or $data = 'ninj' or $data = 'tc-is-cross-compiler' or $data = 'tc-ninja_magic_to_arch' or
-                      $data = 'tc-arch-kernel' or $data = 'tc-arch' or $data = 'tc-endian' or $data = 'gcc-fullversion' or
-                      $data = 'gcc-version' or $data = 'gcc-major-version' or $data = 'gcc-minor-version' or $data = 'gcc-micro-version'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  cron -->
-      <xsl:when test="$data = 'docrondir' or $data = 'docron' or $data = 'docrontab' or $data = 'cron_pkg_postinst'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  games -->
-      <xsl:when test="$data = 'egamesconf' or $data = 'egamesinstall' or $data = 'gameswrapper' or $data = 'dogamesbin' or $data = 'dogamessbin' or $data = 'dogameslib' or
-                      $data = 'dogameslib.a' or $data = 'dogameslib.so' or $data = 'newgamesbin' or $data = 'newgamessbin' or
-                      $data = 'gamesowners' or $data = 'gamesperms' or $data = 'prepgamesdirs' or $data = 'gamesenv' or $data = 'games_pkg_setup' or
-                      $data = 'games_src_compile' or $data = 'games_pkg_postinst' or $data = 'games_ut_unpack' or $data = 'games_umod_unpack' or
-                      $data = 'games_make_wrapper'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  subversion -->
-      <xsl:when test="$data = 'subversion_svn_fetch' or $data = 'subversion_bootstrap' or $data = 'subversion_src_unpack'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  alternatives -->
-      <xsl:when test="$data = 'alternatives_auto_makesym' or $data = 'alternatives_makesym' or $data = 'alternatives_pkg_postinst' or
-                      $data = 'alternatives_pkg_postrm'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  rpm -->
-      <xsl:when test="$data = 'rpm_unpack' or $data = 'rpm_src_unpack'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  python -->
-      <xsl:when test="$data = 'python_version' or $data = 'python_tkinter_exists' or $data = 'python_mod_exists' or $data = 'python_mod_compile' or
-                      $data = 'python_mod_optimize' or $data = 'python_mod_cleanup' or $data = 'python_makesym' or $data = 'python_disable_pyc' or
-                      $data = 'python_enable_pyc'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  check-kernel -->
-      <xsl:when test="$data = 'check_version_h' or $data = 'get_KV_info' or $data = 'is_2_4_kernel' or $data = 'is_2_5_kernel' or $data = 'is_2_6_kernel' or
-                      $data = 'kernel_supports_modules'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  perl-module -->
-      <xsl:when test="$data = 'perl-module_src_prep' or $data = 'perl-module_src_compile' or $data = 'perl-module_src_test' or
-                      $data = 'perl-module_src_install' or $data = 'perl-module_pkg_setup' or $data = 'perl-module_pkg_preinst' or
-                      $data = 'perl-module_pkg_postinst' or $data = 'perl-module_pkg_prerm' or $data = 'perl-module_pkg_postrm' or
-                      $data = 'perlinfo' or $data = 'fixlocalpod' or $data = 'updatepod'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  depend.apache -->
-      <xsl:when test="$data = 'need_apache' or $data = 'need_apache1' or $data = 'need_apache2'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  apache-module -->
-      <xsl:when test="$data = 'apache-module_pkg_setup' or $data = 'apache-module_src_compile' or
-                      $data = 'apache-module_src_install' or $data = 'apache-module_pkg_postinst' or $data = 'acache_cd_dir' or
-                      $data = 'apache_mod_file' or $data = 'apache_doc_magic' or $data = 'apache1_src_compile' or $data = 'apache1_src_install' or
-                      $data = 'apache1_pkg_postinst' or $data = 'apache2_pkg_setup' or $data = 'apache2_src_compile' or
-                      $data = 'apache1_src_install' or $data = 'apache2_pkg_postinst'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  pam -->
-      <xsl:when test="$data = 'dopamd' or $data = 'newpamd' or $data = 'dopamsecurity' or $data = 'newpamsecurity' or $data = 'getpam_mod_dir' or
-                      $data = 'dopammod' or $data = 'newpammod' or $data = 'pamd_mimic_system'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  virtualx -->
-      <xsl:when test="$data = 'virtualmake' or $data = 'Xmake' or $data = 'Xemake' or $data = 'Xeconf'">
-        <span class="Statement"><xsl:value-of select="$data"/></span>
-      </xsl:when>
-
-      <!--  gnome2 -->
-      <xsl:when test="$data = 'gnome2_src_configure' or $data = 'gnome2_src_compile' or $data = 'gnome2_src_install' or
-                      $data = 'gnome2_gconf_install' or $data = 'gnome2_gconf_uninstal' or $data = 'gnome2_omf_fix' or
-                      $data = 'gnome2_scrollkeeper_update' or $data = 'gnome2_pkg_postinst' or $data = 'gnome2_pkg_postrm'">
+      <!-- Package manager commands -->
+      <xsl:when test="str:tokenize($pkg-mgr-keywords)[$data = .]">
         <span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 
-      <!-- eapi7-ver -->
-      <xsl:when test="$data = 'ver_rs' or $data = 'ver_cut' or $data = 'ver_test'">
+      <!-- Eclass commands -->
+      <xsl:when test="str:tokenize($eclass-keywords)[$data = .]">
         <span class="Statement"><xsl:value-of select="$data"/></span>
       </xsl:when>
 


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-commits] proj/devmanual:master commit in: xsl/
@ 2024-04-22 18:19 Ulrich Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Ulrich Müller @ 2024-04-22 18:19 UTC (permalink / raw
  To: gentoo-commits

commit:     e41215d8fa7d630db9c8ddf8f862e13026895a4b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 13 19:15:14 2024 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Apr 22 11:55:30 2024 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e41215d8

lang.highlight.ebuild.xsl: Drop epatch keyword

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 xsl/lang.highlight.ebuild.xsl | 2 --
 1 file changed, 2 deletions(-)

diff --git a/xsl/lang.highlight.ebuild.xsl b/xsl/lang.highlight.ebuild.xsl
index 30ccc08..f615393 100644
--- a/xsl/lang.highlight.ebuild.xsl
+++ b/xsl/lang.highlight.ebuild.xsl
@@ -53,8 +53,6 @@
     cmake_src_prepare cmake_src_test cmake_use_find_package
     <!-- desktop -->
     doicon domenu make_desktop_entry make_session_desktop newicon newmenu
-    <!-- epatch -->
-    epatch
     <!-- flag-o-matic -->
     all-flag-vars append-atomic-flags append-cflags append-cppflags append-cxxflags append-fflags append-flags
     append-ldflags append-lfs-flags append-libs filter-flags filter-ldflags filter-lfs-flags filter-lto filter-mfpmath


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-22 18:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-26  3:05 [gentoo-commits] proj/devmanual:master commit in: xsl/ Göktürk Yüksek
  -- strict thread matches above, loose matches on Subject: below --
2019-11-26  3:05 Göktürk Yüksek
2019-12-19  8:55 Ulrich Müller
2020-01-15 21:29 Ulrich Müller
2021-09-07 18:01 Ulrich Müller
2023-11-06 18:11 Ulrich Müller
2023-11-06 18:11 Ulrich Müller
2024-04-22 18:19 Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox