-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Omikhleia/update-sile-01416
Update to sile 0.14.16 and make silex optional
- Loading branch information
Showing
15 changed files
with
175 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
rockspec_format = "3.0" | ||
package = "silex.sile" | ||
version = "0.4.0-1" | ||
source = { | ||
url = "git+https://github.com/Omikhleia/silex.sile.git", | ||
tag = "v0.4.0", | ||
} | ||
description = { | ||
summary = "Extension layer for SILE and resilient", | ||
detailed = [[ | ||
Some common bricks, compatility features, opinionated hacks, | ||
and eXperimental eXpansions. | ||
]], | ||
homepage = "https://github.com/Omikhleia/silex.sile", | ||
license = "MIT", | ||
} | ||
dependencies = { | ||
"lua >= 5.1", | ||
} | ||
build = { | ||
type = "builtin", | ||
modules = { | ||
["sile.silex"] = "silex/init.lua", | ||
["sile.silex.fork"] = "silex/fork.lua", | ||
["sile.silex.lang"] = "silex/lang.lua", | ||
["sile.silex.fixes"] = "silex/fixes.lua", | ||
["sile.silex.compat"] = "silex/compat.lua", | ||
["sile.silex.ast"] = "silex/ast.lua", | ||
["sile.silex.override"] = "silex/override.lua", | ||
|
||
["sile.silex.classes.base"] = "silex/classes/base.lua", | ||
["sile.silex.typesetters.base"] = "silex/typesetters/base.lua", | ||
|
||
["sile.silex.packages.background"] = "silex/packages/background/init.lua", | ||
["sile.silex.packages.cropmarks"] = "silex/packages/cropmarks/init.lua", | ||
["sile.silex.packages.pdf"] = "silex/packages/pdf/init.lua", | ||
["sile.silex.packages.rotate"] = "silex/packages/rotate/init.lua", | ||
["sile.silex.packages.scalebox"] = "silex/packages/scalebox/init.lua", | ||
["sile.silex.packages.url"] = "silex/packages/url/init.lua", | ||
|
||
["sile.silex.outputters.base"] = "silex/outputters/base.lua", | ||
["sile.silex.outputters.libtexpdf"] = "silex/outputters/libtexpdf.lua", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
local originalRequire = require | ||
|
||
local loaded = {} | ||
|
||
SU.debug("silex", "Overriding require global function") | ||
require = function (name) -- luacheck: ignore | ||
if loaded[name] then return loaded[name] end | ||
local ok, mod = pcall(originalRequire, "silex." .. name) | ||
if ok then | ||
if not loaded[name] then | ||
loaded[name] = mod | ||
SU.debug("silex", "Loaded silex version of " .. name) | ||
end | ||
return mod | ||
end | ||
loaded[name] = originalRequire(name) | ||
return loaded[name] | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters