From 572dc806dd00d29ab418ec6deaa36762d1d59ae6 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 5 Aug 2022 03:01:02 +0000
Subject: CTAN sync 202208050301

---
 macros/latex/contrib/ocgx2/ocgbase.sty | 62 +++++++++++++++++++++-------------
 1 file changed, 38 insertions(+), 24 deletions(-)

(limited to 'macros/latex/contrib/ocgx2/ocgbase.sty')

diff --git a/macros/latex/contrib/ocgx2/ocgbase.sty b/macros/latex/contrib/ocgx2/ocgbase.sty
index e8df5e87df..bf4edf432b 100644
--- a/macros/latex/contrib/ocgx2/ocgbase.sty
+++ b/macros/latex/contrib/ocgx2/ocgbase.sty
@@ -100,35 +100,42 @@
 %
 % The Current Maintainer of this work is A. Grahn.
 
-\RequirePackage{l3keys2e}
-
-\def\g@ocgbase@date@tl{2022/04/01}
-\def\g@ocgbase@version@tl{0.21}
+\def\g@ocgbase@date@tl{2022/08/04}
+\def\g@ocgbase@version@tl{0.22}
 
 \ProvidesExplPackage{ocgbase}{\g@ocgbase@date@tl}{\g@ocgbase@version@tl}
 {support package for ocgx2.sty}
 
 %package options
 
-%unknown package option error message
 \msg_set:nnnn{ocgbase}{unknown~package~option}{Unknown~package~option~`#1'.}{
   Package option~'#1'~is~unknown;\\
   perhaps~it~is~spelled~incorrectly.
 }
 
 \keys_define:nn{ocgbase}{
-  xetex .code:n = {}, %dummy
+  pdftex.code:n = {},
+  pdftex.value_forbidden:n = true,
+
+  luatex.code:n = {},
+  luatex.value_forbidden:n = true,
+
+  xetex.code:n = {},
+  xetex.value_forbidden:n = true,
+
+  dvips.code:n = {},
+  dvips.value_forbidden:n = true,
 
-  dvipdfmx .choice:,
-  dvipdfmx / true .code:n = {\PassOptionsToPackage{dvipdfmx}{pdfbase}},
-  dvipdfmx / false .code:n = {},
-  dvipdfmx .default:n = {true},
+  dvipdfmx .code:n = {
+    \PassOptionsToPackage{dvipdfmx}{pdfbase}
+  },
+  dvipdfmx .value_forbidden:n = true,
 
   unknown .code:n = {
     \msg_error:nnx{ocgbase}{unknown~package~option}{\l_keys_key_tl}
   }
 }
-\ProcessKeysOptions{ocgbase}
+\ProcessKeyOptions[ocgbase]
 
 \RequirePackage{pdfbase}
 
@@ -138,7 +145,7 @@
   Get~an~up~to~date~version~of~`#1'.\\
   Aborting.
 }
-\@ifpackagelater{pdfbase}{2017/09/29}{}{
+\@ifpackagelater{pdfbase}{2022/08/04}{}{
   \msg_error:nnn{ocgbase}{support~outdated}{pdfbase.sty}
   \tex_endinput:D
 }
@@ -472,35 +479,42 @@
 %
 % The Current Maintainer of this work is A. Grahn.
 
-\RequirePackage{l3keys2e}
-
-\def\g@ocgbase@date@tl{2022/04/01}
-\def\g@ocgbase@version@tl{0.21}
+\def\g@ocgbase@date@tl{2022/08/04}
+\def\g@ocgbase@version@tl{0.22}
 
 \ProvidesExplPackage{ocgbase}{\g@ocgbase@date@tl}{\g@ocgbase@version@tl}
 {support package for ocgx2.sty}
 
 %package options
 
-%unknown package option error message
 \msg_set:nnnn{ocgbase}{unknown~package~option}{Unknown~package~option~`#1'.}{
   Package option~'#1'~is~unknown;\\
   perhaps~it~is~spelled~incorrectly.
 }
 
 \keys_define:nn{ocgbase}{
-  xetex .code:n = {}, %dummy
+  pdftex.code:n = {},
+  pdftex.value_forbidden:n = true,
+
+  luatex.code:n = {},
+  luatex.value_forbidden:n = true,
+
+  xetex.code:n = {},
+  xetex.value_forbidden:n = true,
+
+  dvips.code:n = {},
+  dvips.value_forbidden:n = true,
 
-  dvipdfmx .choice:,
-  dvipdfmx / true .code:n = {\PassOptionsToPackage{dvipdfmx}{pdfbase}},
-  dvipdfmx / false .code:n = {},
-  dvipdfmx .default:n = {true},
+  dvipdfmx .code:n = {
+    \PassOptionsToPackage{dvipdfmx}{pdfbase}
+  },
+  dvipdfmx .value_forbidden:n = true,
 
   unknown .code:n = {
     \msg_error:nnx{ocgbase}{unknown~package~option}{\l_keys_key_tl}
   }
 }
-\ProcessKeysOptions{ocgbase}
+\ProcessKeyOptions[ocgbase]
 
 \RequirePackage{pdfbase}
 
@@ -510,7 +524,7 @@
   Get~an~up~to~date~version~of~`#1'.\\
   Aborting.
 }
-\@ifpackagelater{pdfbase}{2017/09/29}{}{
+\@ifpackagelater{pdfbase}{2022/08/04}{}{
   \msg_error:nnn{ocgbase}{support~outdated}{pdfbase.sty}
   \tex_endinput:D
 }
-- 
cgit v1.2.3

