Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=lua520.git;a=commitdiff;h=6e5e2cb1a961f0c6ec07f6c6ba0c2272a94357c7
commit 6e5e2cb1a961f0c6ec07f6c6ba0c2272a94357c7 Author: Pingax <[email protected]> Date: Mon Jan 2 13:30:46 2012 +0100 lua-5.2.0-1-i686 * Version bump diff --git a/source/apps/lua/FrugalBuild b/source/apps/lua/FrugalBuild index 675c661..33826e1 100644 --- a/source/apps/lua/FrugalBuild +++ b/source/apps/lua/FrugalBuild @@ -3,7 +3,7 @@ # Contributor: Laszlo Dvornik <[email protected]> pkgname=lua -pkgver=5.1.4 +pkgver=5.2.0 pkgrel=1 pkgdesc="A powerful light-weight programming language designed for extending applications." url="http://www.lua.org/" @@ -12,26 +12,23 @@ groups=('apps' 'devel-core') archs=('i686' 'x86_64' 'ppc' 'arm') up2date="Flasttar 'http://www.lua.org/ftp/'" source=($url/ftp/$pkgname-$pkgver.tar.gz \ - $pkgname-5.1.1-{cflags,prefix,sharedlibs}.diff) -sha1sums=('2b11c8e60306efb7f0734b747588f57995493db7' \ - '0d5d6b2aeab1ca8bde5f65d77d40d5a23b79b2c8' \ - 'd076610e3408397f9f5cb10f32ff3ea9af11f803' \ - 'c92bcd9338e2dcf5edc54d2f25af7c029bae6500') + $pkgname-5.2.0-sharedlibs.diff) +sha1sums=('08f84c355cdd646f617f09cebea48bd832415829' \ + '2770fb05a73e5a68287265e04f87c077d55eebde') build() { - Fcd - unset MAKEFLAGS + Fcd Fpatchall + unset MAKEFLAGS if [ "$CARCH" == "x86_64" ]; then export CFLAGS="$CFLAGS -fPIC" fi make linux || return 1 make INSTALL_TOP=$Fdestdir/usr install || return 1 - Ffilerel etc/lua.pc /usr/lib/pkgconfig/lua.pc Frm usr/lib/liblua.so - Fln liblua.so.5.1 /usr/lib/liblua.so - chmod 0755 $Fdestdir//usr/lib/liblua.so.5.1 || Fdie + Fln liblua.so.5.2 /usr/lib/liblua.so + chmod 0755 $Fdestdir/usr/lib/liblua.so.5.2 ||Fdie } # optimization ok diff --git a/source/apps/lua/lua-5.1.1-cflags.diff b/source/apps/lua/lua-5.1.1-cflags.diff deleted file mode 100644 index db658ae..0000000 --- a/source/apps/lua/lua-5.1.1-cflags.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff -Naur lua-5.1.orig/src/Makefile lua-5.1/src/Makefile ---- lua-5.1.orig/src/Makefile 2006-02-16 16:45:09.000000000 +0100 -+++ lua-5.1/src/Makefile 2006-03-01 14:55:29.000000000 +0100 -@@ -8,7 +8,8 @@ - PLAT= none - - CC= gcc --CFLAGS= -O2 -Wall $(MYCFLAGS) -+CFLAGS ?= -O2 -Wall -+CFLAGS += $(MYCFLAGS) - AR= ar rcu - RANLIB= ranlib - RM= rm -f diff --git a/source/apps/lua/lua-5.1.1-prefix.diff b/source/apps/lua/lua-5.1.1-prefix.diff deleted file mode 100644 index debdf0f..0000000 --- a/source/apps/lua/lua-5.1.1-prefix.diff +++ /dev/null @@ -1,36 +0,0 @@ -diff -Naur lua-5.1.4/etc/lua.pc lua-5.1.4-2/etc/lua.pc ---- lua-5.1.4/etc/lua.pc 2008-08-08 07:46:11.000000000 -0500 -+++ lua-5.1.4-2/etc/lua.pc 2010-10-05 02:27:30.379001571 -0500 -@@ -8,7 +8,7 @@ - R= 5.1.4 - - # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' --prefix= /usr/local -+prefix= /usr - INSTALL_BIN= ${prefix}/bin - INSTALL_INC= ${prefix}/include - INSTALL_LIB= ${prefix}/lib -diff -Naur lua-5.1.4/Makefile lua-5.1.4-2/Makefile ---- lua-5.1.4/Makefile 2008-08-11 19:40:48.000000000 -0500 -+++ lua-5.1.4-2/Makefile 2010-10-05 02:27:21.284001613 -0500 -@@ -9,7 +9,7 @@ - - # Where to install. The installation starts in the src and doc directories, - # so take care if INSTALL_TOP is not an absolute path. --INSTALL_TOP= /usr/local -+INSTALL_TOP= /usr - INSTALL_BIN= $(INSTALL_TOP)/bin - INSTALL_INC= $(INSTALL_TOP)/include - INSTALL_LIB= $(INSTALL_TOP)/lib -diff -Naur lua-5.1.4/src/luaconf.h lua-5.1.4-2/src/luaconf.h ---- lua-5.1.4/src/luaconf.h 2008-02-11 10:25:08.000000000 -0600 -+++ lua-5.1.4-2/src/luaconf.h 2010-10-05 02:27:44.490001525 -0500 -@@ -94,7 +94,7 @@ - ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll" - - #else --#define LUA_ROOT "/usr/local/" -+#define LUA_ROOT "/usr/" - #define LUA_LDIR LUA_ROOT "share/lua/5.1/" - #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" - #define LUA_PATH_DEFAULT \ diff --git a/source/apps/lua/lua-5.1.1-sharedlibs.diff b/source/apps/lua/lua-5.1.1-sharedlibs.diff deleted file mode 100644 index bbc6c07..0000000 --- a/source/apps/lua/lua-5.1.1-sharedlibs.diff +++ /dev/null @@ -1,43 +0,0 @@ -diff -Naur lua-5.1.3/Makefile lua-5.1.3-p/Makefile ---- lua-5.1.3/Makefile 2008-01-17 18:53:37.000000000 +0100 -+++ lua-5.1.3-p/Makefile 2008-06-30 00:13:09.000000000 +0200 -@@ -38,7 +38,7 @@ - # What to install. - TO_BIN= lua luac - TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp --TO_LIB= liblua.a -+TO_LIB= liblua.a liblua.so.5.1 liblua.so - TO_MAN= lua.1 luac.1 - - # Lua version and release. -diff -Naur lua-5.1.3/src/Makefile lua-5.1.3-p/src/Makefile ---- lua-5.1.3/src/Makefile 2008-01-19 20:37:58.000000000 +0100 -+++ lua-5.1.3-p/src/Makefile 2008-06-30 00:16:49.000000000 +0200 -@@ -23,6 +23,7 @@ - PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris - - LUA_A= liblua.a -+LUA_SO= liblua.so - CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ - lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \ - lundump.o lvm.o lzio.o -@@ -36,7 +37,7 @@ - LUAC_O= luac.o print.o - - ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O) --ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) -+ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T) - ALL_A= $(LUA_A) - - default: $(PLAT) -@@ -51,6 +52,10 @@ - $(AR) $@ $? - $(RANLIB) $@ - -+$(LUA_SO): $(CORE_O) $(LIB_O) -+ $(CC) -shared -Wl,-soname,liblua.so -o [email protected] $? $(MYLDFLAGS) -+ ln -sf [email protected] $@ -+ - $(LUA_T): $(LUA_O) $(LUA_A) - $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) - diff --git a/source/apps/lua/lua-5.2.0-sharedlibs.diff b/source/apps/lua/lua-5.2.0-sharedlibs.diff new file mode 100644 index 0000000..e526330 --- /dev/null +++ b/source/apps/lua/lua-5.2.0-sharedlibs.diff @@ -0,0 +1,43 @@ +diff -Naur lua-5.2.0.orig/Makefile lua-5.2.0/Makefile +--- lua-5.2.0.orig/Makefile 2011-11-16 00:38:12.000000000 +0100 ++++ lua-5.2.0/Makefile 2012-01-02 12:12:43.275724002 +0100 +@@ -41,7 +41,7 @@ + # What to install. + TO_BIN= lua luac + TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp +-TO_LIB= liblua.a ++TO_LIB= liblua.a liblua.so.5.2 liblua.so + TO_MAN= lua.1 luac.1 + + # Lua version and release. +diff -Naur lua-5.2.0.orig/src/Makefile lua-5.2.0/src/Makefile +--- lua-5.2.0.orig/src/Makefile 2011-09-19 14:45:14.000000000 +0200 ++++ lua-5.2.0/src/Makefile 2012-01-02 12:15:43.512723997 +0100 +@@ -29,6 +29,7 @@ + PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO = liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,10 @@ + $(AR) $@ $? + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -W1,-soname,liblua.so -o [email protected] $? $(MYLDFLAGS) ++ ln -sf [email protected] $@ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
