diff options
author | Philip Wellnitz | 2019-02-02 06:59:04 +0900 |
---|---|---|
committer | Philip Wellnitz | 2019-02-02 06:59:04 +0900 |
commit | 5b344478559e3f9f2cb31e356d54013814b4f29b (patch) | |
tree | 9dd3765bf022de63a522a74a472beb98ac90d729 /pgf.patch | |
parent | 0eb4711b5e5c8764019e70595235453cfc8a5d63 (diff) | |
download | aur-5b344478559e3f9f2cb31e356d54013814b4f29b.tar.gz |
update PKGBUILD
Diffstat (limited to 'pgf.patch')
-rw-r--r-- | pgf.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pgf.patch b/pgf.patch new file mode 100644 index 000000000000..0b178245b58c --- /dev/null +++ b/pgf.patch @@ -0,0 +1,45 @@ +--- cmscontrib/gerpythonformat/templates/lg/graphdrawing.tex 2019-02-01 20:37:11.175618929 +0100 ++++ /tmp/graphdrawing.tex 2019-02-01 20:45:34.593613925 +0100 +@@ -2,6 +2,42 @@ + \usetikzlibrary{graphs} + \usetikzlibrary{graphdrawing} + ++\usepackage{luacode} ++\begin{luacode} ++ function pgf_lookup_and_require(name) ++ local sep = '/' ++ if string.find(os.getenv('PATH'),';') then ++ sep = '\string\\' ++ end ++ local function lookup(name) ++ local sub = name:gsub('%.',sep) ++ local find_func = function (name, suffix) ++ if resolvers then ++ local n = resolvers.findfile (name.."."..suffix, suffix) -- changed ++ return (not (n == '')) and n or nil ++ else ++ return kpse.find_file(name,suffix) ++ end ++ end ++ if find_func(sub, 'lua') then ++ require(name) ++ elseif find_func(sub, 'clua') then ++ collectgarbage('stop') ++ require(name) ++ collectgarbage('restart') ++ else ++ return false ++ end ++ return true ++ end ++ return ++ lookup('pgf.gd.' .. name .. '.library') or ++ lookup('pgf.gd.' .. name) or ++ lookup(name .. '.library') or ++ lookup(name) ++ end ++\end{luacode} ++ + \usegdlibrary{force, layered} + + \directlua{require("graphdrawing.lua")} |