aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua5.3/lua-5.3-module_paths.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:24:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:24:39 +0000
commitc3417b96b30d2bf77cccf960a13d4e920c1dba15 (patch)
tree6957462b7b276b1fe8607bfa2b457e002232b6ae /main/lua5.3/lua-5.3-module_paths.patch
parent99241c94dbde19b1764a1a86a8f23a1058560d88 (diff)
downloadaports-c3417b96b30d2bf77cccf960a13d4e920c1dba15.tar.bz2
aports-c3417b96b30d2bf77cccf960a13d4e920c1dba15.tar.xz
main/lua5.3: move to main
Diffstat (limited to 'main/lua5.3/lua-5.3-module_paths.patch')
-rw-r--r--main/lua5.3/lua-5.3-module_paths.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/lua5.3/lua-5.3-module_paths.patch b/main/lua5.3/lua-5.3-module_paths.patch
new file mode 100644
index 0000000000..4015fcfa28
--- /dev/null
+++ b/main/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 /* } */
+
+