summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-02-16 16:56:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-02-16 16:56:49 +0000
commitc7572cf1f74f4683258bc4e0552c5d4a0f17a0ff (patch)
treebe4fd3406c4ee7958ae9d816cae729875c54e3d6 /dev-lang/luajit/files
parentadd hostname patch to live ebuild since upstream won't be able to make the ch... (diff)
downloadgentoo-2-c7572cf1f74f4683258bc4e0552c5d4a0f17a0ff.tar.gz
gentoo-2-c7572cf1f74f4683258bc4e0552c5d4a0f17a0ff.tar.bz2
gentoo-2-c7572cf1f74f4683258bc4e0552c5d4a0f17a0ff.zip
clean old
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-lang/luajit/files')
-rw-r--r--dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch171
-rw-r--r--dev-lang/luajit/files/LuaJIT-2.0.0-beta8-gentoo.patch174
-rw-r--r--dev-lang/luajit/files/LuaJIT-2.0.0-gentoo.patch170
3 files changed, 0 insertions, 515 deletions
diff --git a/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch b/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch
deleted file mode 100644
index 02bbd0729a5a..000000000000
--- a/dev-lang/luajit/files/LuaJIT-2.0.0-beta10-gentoo.patch
+++ /dev/null
@@ -1,171 +0,0 @@
-diff -ru LuaJIT-2.0.0-beta10.orig/etc/luajit.pc LuaJIT-2.0.0-beta10/etc/luajit.pc
---- LuaJIT-2.0.0-beta10.orig/etc/luajit.pc 2012-05-12 22:55:18.768282860 -0300
-+++ LuaJIT-2.0.0-beta10/etc/luajit.pc 2012-05-12 22:55:48.412282447 -0300
-@@ -3,13 +3,13 @@
- minver=0
- relver=0
- version=${majver}.${minver}.${relver}-beta10
--abiver=5.1
-+abiver=jit-5.1
-
--prefix=/usr/local
-+prefix=/usr
- exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
-+libdir=${exec_prefix}/@LIBDIR@
- libname=luajit-${abiver}
--includedir=${prefix}/include/luajit-${majver}.${minver}
-+includedir=${prefix}/include/luajit-@SHORTVER@
-
- INSTALL_LMOD=${prefix}/share/lua/${abiver}
- INSTALL_CMOD=${prefix}/lib/lua/${abiver}
-diff -ru LuaJIT-2.0.0-beta10.orig/Makefile LuaJIT-2.0.0-beta10/Makefile
---- LuaJIT-2.0.0-beta10.orig/Makefile 2012-05-12 22:55:18.764282863 -0300
-+++ LuaJIT-2.0.0-beta10/Makefile 2012-05-12 22:58:17.928279877 -0300
-@@ -18,37 +18,38 @@
- RELVER= 0
- PREREL= -beta10
- VERSION= $(MAJVER).$(MINVER).$(RELVER)$(PREREL)
--ABIVER= 5.1
--NODOTABIVER= 51
-+SHORTVER= $(MAJVER).$(MINVER)
-+ABIVER= jit-$(SHORTVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-
- ##############################################################################
- #
- # Change the installation path as needed. This automatically adjusts
- # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
- #
--export PREFIX= /usr/local
-+export PREFIX= /usr
- ##############################################################################
-
- DPREFIX= $(DESTDIR)$(PREFIX)
- INSTALL_BIN= $(DPREFIX)/bin
--INSTALL_LIB= $(DPREFIX)/lib
-+INSTALL_LIB= $(DPREFIX)/$(LIBDIR)
- INSTALL_SHARE= $(DPREFIX)/share
--INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER)
-+INSTALL_INC= $(DPREFIX)/include/luajit-$(SHORTVER)
-
--INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(VERSION)/jit
-+INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(SHORTVER)/jit
- INSTALL_LMOD= $(INSTALL_SHARE)/lua/$(ABIVER)
- INSTALL_CMOD= $(INSTALL_LIB)/lua/$(ABIVER)
- INSTALL_MAN= $(INSTALL_SHARE)/man/man1
- INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
-
--INSTALL_TNAME= luajit-$(VERSION)
-+INSTALL_TNAME= luajit-$(SHORTVER)
- INSTALL_TSYMNAME= luajit
--INSTALL_ANAME= libluajit-$(ABIVER).a
--INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
--INSTALL_SOSHORT= libluajit-$(ABIVER).so
--INSTALL_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
--INSTALL_DYLIBSHORT1= libluajit-$(NODOTABIVER).dylib
--INSTALL_DYLIBSHORT2= libluajit-$(NODOTABIVER).$(MAJVER).dylib
-+INSTALL_ANAME= libluajit-$(SHORTVER).a
-+INSTALL_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+INSTALL_SOSHORT= libluajit-$(SHORTVER).so
-+INSTALL_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+INSTALL_DYLIBSHORT1= libluajit-$(NODOTSHORTVER).dylib
-+INSTALL_DYLIBSHORT2= libluajit-$(NODOTSHORTVER).$(MAJVER).dylib
- INSTALL_PCNAME= luajit.pc
-
- INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME)
-@@ -57,7 +58,7 @@
- INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
- INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
- INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
--INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
-+INSTALL_PC= $(INSTALL_PKGCONFIG)/luajit-$(SHORTVER).pc
-
- INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
- $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
-@@ -68,7 +69,7 @@
- INSTALL_X= install -m 0755
- INSTALL_F= install -m 0644
- LDCONFIG= ldconfig -n
--SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|"
-+SED_PC= sed -e "s|@SHORTVER@|$(SHORTVER)|" -e "s|@LIBDIR@|$(LIBDIR)|"
-
- FILE_T= luajit
- FILE_A= libluajit.a
-@@ -108,7 +109,7 @@
- $(LDCONFIG) $(INSTALL_LIB) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
-- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
-+ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SHORTVER).1
- cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
- $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
- $(RM) $(FILE_PC).tmp
-diff -ru LuaJIT-2.0.0-beta10.orig/src/luaconf.h LuaJIT-2.0.0-beta10/src/luaconf.h
---- LuaJIT-2.0.0-beta10.orig/src/luaconf.h 2012-05-12 22:55:18.776282852 -0300
-+++ LuaJIT-2.0.0-beta10/src/luaconf.h 2012-05-12 23:00:29.024277594 -0300
-@@ -22,16 +22,16 @@
- #define LUA_CPATH_DEFAULT \
- ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
- #else
--#define LUA_ROOT "/usr/local/"
--#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
--#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
-+#define LUA_ROOT "/usr/"
-+#define LUA_LDIR LUA_ROOT "share/lua/jit-2.0/"
-+#define LUA_CDIR LUA_ROOT "lib/lua/jit-2.0/"
- #ifdef LUA_XROOT
--#define LUA_JDIR LUA_XROOT "share/luajit-2.0.0-beta10/"
-+#define LUA_JDIR LUA_XROOT "share/luajit-2.0/"
- #define LUA_XPATH \
-- ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/5.1/?/init.lua"
--#define LUA_XCPATH LUA_XROOT "lib/lua/5.1/?.so;"
-+ ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/jit-2.0/?/init.lua"
-+#define LUA_XCPATH LUA_XROOT "lib/lua/jit-2.0/?.so;"
- #else
--#define LUA_JDIR LUA_ROOT "share/luajit-2.0.0-beta10/"
-+#define LUA_JDIR LUA_ROOT "share/luajit-2.0/"
- #define LUA_XPATH
- #define LUA_XCPATH
- #endif
-diff -ru LuaJIT-2.0.0-beta10.orig/src/Makefile LuaJIT-2.0.0-beta10/src/Makefile
---- LuaJIT-2.0.0-beta10.orig/src/Makefile 2012-05-12 22:55:18.772282855 -0300
-+++ LuaJIT-2.0.0-beta10/src/Makefile 2012-05-12 23:01:37.340276596 -0300
-@@ -13,8 +13,8 @@
- MAJVER= 2
- MINVER= 0
- RELVER= 0
--ABIVER= 5.1
--NODOTABIVER= 51
-+SHORTVER= $(MAJVER).$(MINVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-
- ##############################################################################
- ############################# COMPILER OPTIONS #############################
-@@ -204,10 +204,9 @@
- TARGET_AR= $(CROSS)ar rcus
- TARGET_STRIP= $(CROSS)strip
-
--TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
--TARGET_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).dylib
--TARGET_DYLIBPATH= $(or $(PREFIX),/usr/local)/lib/$(TARGET_DYLIBNAME)
--TARGET_DLLNAME= lua$(NODOTABIVER).dll
-+TARGET_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+TARGET_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+TARGET_DLLNAME= lua$(NODOTSHORTVER).dll
- TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
- TARGET_DYNXLDOPTS=
-
-@@ -476,10 +475,8 @@
- endif
- endif
-
--Q= @
--E= @echo
--#Q=
--#E= @:
-+Q=
-+E= @:
-
- ##############################################################################
- # Make targets.
diff --git a/dev-lang/luajit/files/LuaJIT-2.0.0-beta8-gentoo.patch b/dev-lang/luajit/files/LuaJIT-2.0.0-beta8-gentoo.patch
deleted file mode 100644
index ebe611fbee0a..000000000000
--- a/dev-lang/luajit/files/LuaJIT-2.0.0-beta8-gentoo.patch
+++ /dev/null
@@ -1,174 +0,0 @@
-Index: LuaJIT-2.0.0-beta8/etc/luajit.pc
-===================================================================
---- LuaJIT-2.0.0-beta8.orig/etc/luajit.pc
-+++ LuaJIT-2.0.0-beta8/etc/luajit.pc
-@@ -3,13 +3,13 @@ majver=2
- minver=0
- relver=0
- version=${majver}.${minver}.${relver}-beta8
--abiver=5.1
-+abiver=jit-5.1
-
--prefix=/usr/local
-+prefix=/usr
- exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
-+libdir=${exec_prefix}/@LIBDIR@
- libname=luajit-${abiver}
--includedir=${prefix}/include/luajit-${majver}.${minver}
-+includedir=${prefix}/include/luajit-@SHORTVER@
-
- INSTALL_LMOD=${prefix}/share/lua/${abiver}
- INSTALL_CMOD=${prefix}/lib/lua/${abiver}
-Index: LuaJIT-2.0.0-beta8/Makefile
-===================================================================
---- LuaJIT-2.0.0-beta8.orig/Makefile
-+++ LuaJIT-2.0.0-beta8/Makefile
-@@ -18,37 +18,38 @@ MINVER= 0
- RELVER= 0
- PREREL= -beta8
- VERSION= $(MAJVER).$(MINVER).$(RELVER)$(PREREL)
--ABIVER= 5.1
--NODOTABIVER= 51
-+SHORTVER= $(MAJVER).$(MINVER)
-+ABIVER= jit-$(SHORTVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-
- ##############################################################################
- #
- # Change the installation path as needed. This automatically adjusts
- # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
- #
--export PREFIX= /usr/local
-+export PREFIX= /usr
- ##############################################################################
-
- DPREFIX= $(DESTDIR)$(PREFIX)
- INSTALL_BIN= $(DPREFIX)/bin
--INSTALL_LIB= $(DPREFIX)/lib
-+INSTALL_LIB= $(DPREFIX)/$(LIBDIR)
- INSTALL_SHARE= $(DPREFIX)/share
--INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER)
-+INSTALL_INC= $(DPREFIX)/include/luajit-$(SHORTVER)
-
--INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(VERSION)/jit
-+INSTALL_JITLIB= $(INSTALL_SHARE)/luajit-$(SHORTVER)/jit
- INSTALL_LMOD= $(INSTALL_SHARE)/lua/$(ABIVER)
- INSTALL_CMOD= $(INSTALL_LIB)/lua/$(ABIVER)
- INSTALL_MAN= $(INSTALL_SHARE)/man/man1
- INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
-
--INSTALL_TNAME= luajit-$(VERSION)
-+INSTALL_TNAME= luajit-$(SHORTVER)
- INSTALL_TSYMNAME= luajit
--INSTALL_ANAME= libluajit-$(ABIVER).a
--INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
--INSTALL_SOSHORT= libluajit-$(ABIVER).so
--INSTALL_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
--INSTALL_DYLIBSHORT1= libluajit-$(NODOTABIVER).dylib
--INSTALL_DYLIBSHORT2= libluajit-$(NODOTABIVER).$(MAJVER).dylib
-+INSTALL_ANAME= libluajit-$(SHORTVER).a
-+INSTALL_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+INSTALL_SOSHORT= libluajit-$(SHORTVER).so
-+INSTALL_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+INSTALL_DYLIBSHORT1= libluajit-$(NODOTSHORTVER).dylib
-+INSTALL_DYLIBSHORT2= libluajit-$(NODOTSHORTVER).$(MAJVER).dylib
- INSTALL_PCNAME= luajit.pc
-
- INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME)
-@@ -57,7 +58,7 @@ INSTALL_SHORT1= $(INSTALL_LIB)/$(INSTALL
- INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
- INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
- INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
--INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
-+INSTALL_PC= $(INSTALL_PKGCONFIG)/luajit-$(SHORTVER).pc
-
- INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
- $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
-@@ -68,7 +69,7 @@ SYMLINK= ln -sf
- INSTALL_X= install -m 0755
- INSTALL_F= install -m 0644
- LDCONFIG= ldconfig -n
--SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|"
-+SED_PC= sed -e "s|@SHORTVER@|$(SHORTVER)|" -e "s|@LIBDIR@|$(LIBDIR)|"
-
- FILE_T= luajit
- FILE_A= libluajit.a
-@@ -107,7 +108,7 @@ install: $(INSTALL_DEP)
- $(LDCONFIG) $(INSTALL_LIB) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
-- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
-+ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SHORTVER).1
- cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
- $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
- $(RM) $(FILE_PC).tmp
-Index: LuaJIT-2.0.0-beta8/src/luaconf.h
-===================================================================
---- LuaJIT-2.0.0-beta8.orig/src/luaconf.h
-+++ LuaJIT-2.0.0-beta8/src/luaconf.h
-@@ -22,16 +22,16 @@
- #define LUA_CPATH_DEFAULT \
- ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
- #else
--#define LUA_ROOT "/usr/local/"
--#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
--#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
-+#define LUA_ROOT "/usr/"
-+#define LUA_LDIR LUA_ROOT "share/lua/jit-2.0/"
-+#define LUA_CDIR LUA_ROOT "lib/lua/jit-2.0/"
- #ifdef LUA_XROOT
--#define LUA_JDIR LUA_XROOT "share/luajit-2.0.0-beta8/"
-+#define LUA_JDIR LUA_XROOT "share/luajit-2.0/"
- #define LUA_XPATH \
-- ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/5.1/?/init.lua"
--#define LUA_XCPATH LUA_XROOT "lib/lua/5.1/?.so;"
-+ ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/jit-2.0/?/init.lua"
-+#define LUA_XCPATH LUA_XROOT "lib/lua/jit-2.0/?.so;"
- #else
--#define LUA_JDIR LUA_ROOT "share/luajit-2.0.0-beta8/"
-+#define LUA_JDIR LUA_ROOT "share/luajit-2.0/"
- #define LUA_XPATH
- #define LUA_XCPATH
- #endif
-Index: LuaJIT-2.0.0-beta8/src/Makefile
-===================================================================
---- LuaJIT-2.0.0-beta8.orig/src/Makefile
-+++ LuaJIT-2.0.0-beta8/src/Makefile
-@@ -13,8 +13,8 @@
- MAJVER= 2
- MINVER= 0
- RELVER= 0
--ABIVER= 5.1
--NODOTABIVER= 51
-+SHORTVER= $(MAJVER).$(MINVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-
- ##############################################################################
- ############################# COMPILER OPTIONS #############################
-@@ -197,9 +197,9 @@ TARGET_LD= $(CROSS)$(CC)
- TARGET_AR= $(CROSS)ar rcus
- TARGET_STRIP= $(CROSS)strip
-
--TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
--TARGET_DYLIBNAME= libluajit-$(NODOTABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
--TARGET_DLLNAME= lua$(NODOTABIVER).dll
-+TARGET_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+TARGET_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+TARGET_DLLNAME= lua$(NODOTSHORTVER).dll
- TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
- TARGET_DYNXLDOPTS=
-
-@@ -451,10 +451,8 @@ endif
- endif
- endif
-
--Q= @
--E= @echo
--#Q=
--#E= @:
-+Q=
-+E= @:
-
- ##############################################################################
- # Make targets.
diff --git a/dev-lang/luajit/files/LuaJIT-2.0.0-gentoo.patch b/dev-lang/luajit/files/LuaJIT-2.0.0-gentoo.patch
deleted file mode 100644
index c75e7d73d74e..000000000000
--- a/dev-lang/luajit/files/LuaJIT-2.0.0-gentoo.patch
+++ /dev/null
@@ -1,170 +0,0 @@
---- etc/luajit.pc
-+++ etc/luajit.pc
-@@ -3,13 +3,13 @@
- minver=0
- relver=0
- version=${majver}.${minver}.${relver}
--abiver=5.1
-+abiver=jit-5.1
-
--prefix=/usr/local
-+prefix=/usr
- exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
-+libdir=${exec_prefix}/@LIBDIR@
- libname=luajit-${abiver}
--includedir=${prefix}/include/luajit-${majver}.${minver}
-+includedir=${prefix}/include/luajit-@SHORTVER@
-
- INSTALL_LMOD=${prefix}/share/lua/${abiver}
- INSTALL_CMOD=${prefix}/lib/lua/${abiver}
---- Makefile
-+++ Makefile
-@@ -17,23 +17,25 @@
- MINVER= 0
- RELVER= 0
- VERSION= $(MAJVER).$(MINVER).$(RELVER)
--ABIVER= 5.1
-+SHORTVER= $(MAJVER).$(MINVER)
-+ABIVER= jit-$(SHORTVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-
- ##############################################################################
- #
- # Change the installation path as needed. This automatically adjusts
- # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
- #
--export PREFIX= /usr/local
-+export PREFIX= /usr
- ##############################################################################
-
- DPREFIX= $(DESTDIR)$(PREFIX)
- INSTALL_BIN= $(DPREFIX)/bin
--INSTALL_LIB= $(DPREFIX)/lib
-+INSTALL_LIB= $(DPREFIX)/$(LIBDIR)
- INSTALL_SHARE= $(DPREFIX)/share
--INSTALL_INC= $(DPREFIX)/include/luajit-$(MAJVER).$(MINVER)
-+INSTALL_INC= $(DPREFIX)/include/luajit-$(SHORTVER)
-
--INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit-$(VERSION)
-+INSTALL_LJLIBD= $(INSTALL_SHARE)/luajit-$(SHORTVER)
- INSTALL_JITLIB= $(INSTALL_LJLIBD)/jit
- INSTALL_LMODD= $(INSTALL_SHARE)/lua
- INSTALL_LMOD= $(INSTALL_LMODD)/$(ABIVER)
-@@ -42,14 +44,14 @@
- INSTALL_MAN= $(INSTALL_SHARE)/man/man1
- INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
-
--INSTALL_TNAME= luajit-$(VERSION)
-+INSTALL_TNAME= luajit-$(SHORTVER)
- INSTALL_TSYMNAME= luajit
--INSTALL_ANAME= libluajit-$(ABIVER).a
--INSTALL_SONAME= libluajit-$(ABIVER).so.$(MAJVER).$(MINVER).$(RELVER)
--INSTALL_SOSHORT= libluajit-$(ABIVER).so
--INSTALL_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).$(MINVER).$(RELVER).dylib
--INSTALL_DYLIBSHORT1= libluajit-$(ABIVER).dylib
--INSTALL_DYLIBSHORT2= libluajit-$(ABIVER).$(MAJVER).dylib
-+INSTALL_ANAME= libluajit-$(SHORTVER).a
-+INSTALL_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+INSTALL_SOSHORT= libluajit-$(SHORTVER).so
-+INSTALL_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+INSTALL_DYLIBSHORT1= libluajit-$(NODOTSHORTVER).dylib
-+INSTALL_DYLIBSHORT2= libluajit-$(NODOTSHORTVER).$(MAJVER).dylib
- INSTALL_PCNAME= luajit.pc
-
- INSTALL_STATIC= $(INSTALL_LIB)/$(INSTALL_ANAME)
-@@ -58,7 +60,7 @@
- INSTALL_SHORT2= $(INSTALL_LIB)/$(INSTALL_SOSHORT)
- INSTALL_T= $(INSTALL_BIN)/$(INSTALL_TNAME)
- INSTALL_TSYM= $(INSTALL_BIN)/$(INSTALL_TSYMNAME)
--INSTALL_PC= $(INSTALL_PKGCONFIG)/$(INSTALL_PCNAME)
-+INSTALL_PC= $(INSTALL_PKGCONFIG)/luajit-$(SHORTVER).pc
-
- INSTALL_DIRS= $(INSTALL_BIN) $(INSTALL_LIB) $(INSTALL_INC) $(INSTALL_MAN) \
- $(INSTALL_PKGCONFIG) $(INSTALL_JITLIB) $(INSTALL_LMOD) $(INSTALL_CMOD)
-@@ -73,7 +75,7 @@
- INSTALL_F= install -m 0644
- UNINSTALL= $(RM)
- LDCONFIG= ldconfig -n
--SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|"
-+SED_PC= sed -e "s|@SHORTVER@|$(SHORTVER)|" -e "s|@LIBDIR@|$(LIBDIR)|"
-
- FILE_T= luajit
- FILE_A= libluajit.a
-@@ -113,7 +115,7 @@
- $(LDCONFIG) $(INSTALL_LIB) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
- $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
-- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
-+ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SHORTVER).1
- cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
- $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
- $(RM) $(FILE_PC).tmp
---- src/luaconf.h
-+++ src/luaconf.h
-@@ -26,16 +26,16 @@
- ** Note to distribution maintainers: do NOT patch the following line!
- ** Please read ../doc/install.html#distro and pass PREFIX=/usr instead.
- */
--#define LUA_ROOT "/usr/local/"
--#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
--#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
-+#define LUA_ROOT "/usr/"
-+#define LUA_LDIR LUA_ROOT "share/lua/jit-2.0/"
-+#define LUA_CDIR LUA_ROOT "lib/lua/jit-2.0/"
- #ifdef LUA_XROOT
--#define LUA_JDIR LUA_XROOT "share/luajit-2.0.0/"
-+#define LUA_JDIR LUA_XROOT "share/luajit-2.0/"
- #define LUA_XPATH \
-- ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/5.1/?/init.lua"
--#define LUA_XCPATH LUA_XROOT "lib/lua/5.1/?.so;"
-+ ";" LUA_XROOT "share/lua/5.1/?.lua;" LUA_XROOT "share/lua/jit-2.0/?/init.lua"
-+#define LUA_XCPATH LUA_XROOT "lib/lua/jit-2.0/?.so;"
- #else
--#define LUA_JDIR LUA_ROOT "share/luajit-2.0.0/"
-+#define LUA_JDIR LUA_ROOT "share/luajit-2.0/"
- #define LUA_XPATH
- #define LUA_XCPATH
- #endif
---- src/Makefile
-+++ src/Makefile
-@@ -13,8 +13,9 @@
- MAJVER= 2
- MINVER= 0
- RELVER= 0
--ABIVER= 5.1
--NODOTABIVER= 51
-+SHORTVER= $(MAJVER).$(MINVER)
-+NODOTSHORTVER= $(MAJVER)$(MINVER)
-+LIBDIR ?= lib
-
- ##############################################################################
- ############################# COMPILER OPTIONS #############################
-@@ -188,10 +189,10 @@
- TARGET_AR= $(CROSS)ar rcus
- TARGET_STRIP= $(CROSS)strip
-
--TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
--TARGET_DYLIBNAME= libluajit-$(ABIVER).$(MAJVER).dylib
--TARGET_DYLIBPATH= $(or $(PREFIX),/usr/local)/lib/$(TARGET_DYLIBNAME)
--TARGET_DLLNAME= lua$(NODOTABIVER).dll
-+TARGET_SONAME= libluajit-$(SHORTVER).so.$(RELVER)
-+TARGET_DYLIBNAME= libluajit-$(NODOTSHORTVER).$(MAJVER).$(MINVER).$(RELVER).dylib
-+TARGET_DYLIBPATH= $(or $(PREFIX),/usr/local)/$(LIBDIR)/$(TARGET_DYLIBNAME)
-+TARGET_DLLNAME= lua$(NODOTSHORTVER).dll
- TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)
- TARGET_DYNXLDOPTS=
-
-@@ -549,10 +550,8 @@
- endif
- endif
-
--Q= @
--E= @echo
--#Q=
--#E= @:
-+Q=
-+E= @:
-
- ##############################################################################
- # Make targets.