aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua5.3/lua-5.3-module_paths.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-01-14 11:03:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-01-14 11:03:22 +0000
commita49ecce1d89493d889226c83b6df50f4f986fdc0 (patch)
treef5f863aff90b919941be97fd7c9f057fc7f391e0 /testing/lua5.3/lua-5.3-module_paths.patch
parent23599729fc7d52d09510079b7ae6402da8388b68 (diff)
downloadaports-a49ecce1d89493d889226c83b6df50f4f986fdc0.tar.bz2
aports-a49ecce1d89493d889226c83b6df50f4f986fdc0.tar.xz
testing/lua5.3: new aport
Powerful light-weight programming language http://www.lua.org/
Diffstat (limited to 'testing/lua5.3/lua-5.3-module_paths.patch')
-rw-r--r--testing/lua5.3/lua-5.3-module_paths.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/lua5.3/lua-5.3-module_paths.patch b/testing/lua5.3/lua-5.3-module_paths.patch
new file mode 100644
index 0000000000..4015fcfa28
--- /dev/null
+++ b/testing/lua5.3/lua-5.3-module_paths.patch
@@ -0,0 +1,27 @@
+diff --git a/src/luaconf.h b/src/luaconf.h
+index fd28d21..4c65295 100644
+--- a/src/luaconf.h
++++ b/src/luaconf.h
+@@ -178,12 +178,21 @@
+ #define LUA_ROOT "/usr/local/"
+ #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
++
++#define LUA_VENDOR_ROOT "/usr/"
++#define LUA_VENDOR_LDIR LUA_VENDOR_ROOT "share/lua/" LUA_VDIR "/"
++#define LUA_VENDOR_CDIR LUA_VENDOR_ROOT "lib/lua/" LUA_VDIR "/"
++
+ #define LUA_PATH_DEFAULT \
+ LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
++ LUA_VENDOR_LDIR"?.lua;" LUA_VENDOR_LDIR"?/init.lua;" \
++ LUA_VENDOR_CDIR"?.lua;" LUA_VENDOR_CDIR"?/init.lua;" \
+ "./?.lua;" "./?/init.lua"
+ #define LUA_CPATH_DEFAULT \
+- LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
++ LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" \
++ LUA_VENDOR_CDIR"?.so;" LUA_VENDOR_CDIR"loadall.so;" \
++ "./?.so"
+ #endif /* } */
+
+