lua-01-root-path.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Adjust installation location to /usr.
  2. Remove version in module paths.
  3. Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
  4. Index: b/etc/lua.pc
  5. ===================================================================
  6. --- a/etc/lua.pc
  7. +++ b/etc/lua.pc
  8. @@ -8,13 +8,13 @@
  9. R= 5.1.5
  10. # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
  11. -prefix= /usr/local
  12. +prefix= /usr
  13. INSTALL_BIN= ${prefix}/bin
  14. INSTALL_INC= ${prefix}/include
  15. INSTALL_LIB= ${prefix}/lib
  16. INSTALL_MAN= ${prefix}/man/man1
  17. -INSTALL_LMOD= ${prefix}/share/lua/${V}
  18. -INSTALL_CMOD= ${prefix}/lib/lua/${V}
  19. +INSTALL_LMOD= ${prefix}/share/lua
  20. +INSTALL_CMOD= ${prefix}/lib/lua
  21. # canonical vars
  22. exec_prefix=${prefix}
  23. Index: b/src/luaconf.h
  24. ===================================================================
  25. --- a/src/luaconf.h
  26. +++ b/src/luaconf.h
  27. @@ -94,9 +94,9 @@
  28. ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
  29. #else
  30. -#define LUA_ROOT "/usr/local/"
  31. -#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
  32. -#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
  33. +#define LUA_ROOT "/usr/"
  34. +#define LUA_LDIR LUA_ROOT "share/lua/"
  35. +#define LUA_CDIR LUA_ROOT "lib/lua/"
  36. #define LUA_PATH_DEFAULT \
  37. "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
  38. LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"