From 0726387ce0c72586b5e0663b632e0a64ec441e58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 6 Nov 2010 03:49:59 +0100
Subject: Stop using luatextra, use luatexbase + lualibs.

Tested with luatexbase v0.2.
---
 luaotfload.dtx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index f6cf369..c4c06da 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -753,13 +753,18 @@ end
 
 \bgroup\expandafter\expandafter\expandafter\egroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
-  \input luatextra.sty
+  \input luatexbase.sty
+  \input luatexbase-modutils.sty
+  \input luatexbase-mcb.sty
 \else
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luaotfload}%
     [2010/10/16 v1.20 OpenType layout system]
-  \RequirePackage{luatextra}
+  \RequirePackage{luatexbase}
+  \RequirePackage{luatexbase-modutils}
+  \RequirePackage{luatexbase-mcb}
 \fi
+\luatexUseModule{lualibs}
 
 \expandafter\edef\csname otfl@AtEnd\endcsname{%
   \catcode64 \the\catcode64\relax
-- 
cgit v1.2.3


From d78999a570833c495e55af7bc0035a969a626bec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 6 Nov 2010 04:06:35 +0100
Subject: Adapt to luatexbase v3.0

---
 luaotfload.dtx | 28 +++-------------------------
 1 file changed, 3 insertions(+), 25 deletions(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index c4c06da..880bb59 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -458,7 +458,7 @@ luaotfload.module = {
     license       = "CC0"
 }
 
-luatexbase.provides_module(luaotfload.module)
+local error, warning, info, log = luatexbase.provides_module(luaotfload.module)
 %    \end{macrocode}
 %
 %    This is a necessary initalization in order not to rebuild an existing font.
@@ -471,24 +471,6 @@ luatexbase.provides_module(luaotfload.module)
 kpse.init_prog('', 600, '/')
 %    \end{macrocode}
 %
-%    Some helper functions.
-%
-%    \begin{macrocode}
-local format = string.format
-
-local function log(...)
-    luatexbase.module_log    ('luaotfload', format(...))
-end
-
-local function error(...)
-    luatexbase.module_error  ('luaotfload', format(...))
-end
-
-local function warning(...)
-    luatexbase.module_warning('luaotfload', format(...))
-end
-%    \end{macrocode}
-%
 %    The minimal required \LuaTeX\ version.
 %
 %    \begin{macrocode}
@@ -754,17 +736,13 @@ end
 \bgroup\expandafter\expandafter\expandafter\egroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
   \input luatexbase.sty
-  \input luatexbase-modutils.sty
-  \input luatexbase-mcb.sty
 \else
   \NeedsTeXFormat{LaTeX2e}
   \ProvidesPackage{luaotfload}%
     [2010/10/16 v1.20 OpenType layout system]
   \RequirePackage{luatexbase}
-  \RequirePackage{luatexbase-modutils}
-  \RequirePackage{luatexbase-mcb}
 \fi
-\luatexUseModule{lualibs}
+\RequireLuaModule{lualibs}
 
 \expandafter\edef\csname otfl@AtEnd\endcsname{%
   \catcode64 \the\catcode64\relax
@@ -789,7 +767,7 @@ end
 %    We load the |lua| file, and we turn the package on.
 %
 %    \begin{macrocode}
-\luatexUseModule{luaotfload}
+\RequireLuaModule{luaotfload}
 
 \otfl@on
 
-- 
cgit v1.2.3

