From 68c8b3dd9841a92168af5a4fa31f1c127fea5e1c Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Fri, 24 Jul 2015 00:38:59 +0300 Subject: [PATCH] lua51:moved into main for pisi 2.0 --- programming/language/lua51/actions.py | 37 +++++++++ .../files/0001-Use-usr-not-usr-local.patch | 21 +++++ .../language/lua51/files/fix-linking.patch | 22 +++++ .../language/lua51/files/install.patch | 47 +++++++++++ .../language/lua51/files/liblua.so.patch | 57 +++++++++++++ .../language/lua51/files/lua-5.1-cflags.diff | 13 +++ .../language/lua51/files/lua-5.1-dynlib.patch | 42 ++++++++++ .../lua51/files/lua-5.1-module_paths.patch | 30 +++++++ .../files/lua-5.1-pkgconfig-libdir.patch | 20 +++++ programming/language/lua51/files/lua-5.1pc | 18 +++++ .../language/lua51/files/lua-arch.patch | 66 +++++++++++++++ programming/language/lua51/files/lua.pc | 20 +++++ programming/language/lua51/files/lua.png | Bin 0 -> 529 bytes .../language/lua51/files/shared-library.patch | 51 ++++++++++++ programming/language/lua51/pspec.xml | 75 ++++++++++++++++++ programming/language/lua51/translations.xml | 14 ++++ 16 files changed, 533 insertions(+) create mode 100644 programming/language/lua51/actions.py create mode 100644 programming/language/lua51/files/0001-Use-usr-not-usr-local.patch create mode 100644 programming/language/lua51/files/fix-linking.patch create mode 100644 programming/language/lua51/files/install.patch create mode 100644 programming/language/lua51/files/liblua.so.patch create mode 100644 programming/language/lua51/files/lua-5.1-cflags.diff create mode 100644 programming/language/lua51/files/lua-5.1-dynlib.patch create mode 100644 programming/language/lua51/files/lua-5.1-module_paths.patch create mode 100644 programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch create mode 100644 programming/language/lua51/files/lua-5.1pc create mode 100644 programming/language/lua51/files/lua-arch.patch create mode 100644 programming/language/lua51/files/lua.pc create mode 100644 programming/language/lua51/files/lua.png create mode 100644 programming/language/lua51/files/shared-library.patch create mode 100644 programming/language/lua51/pspec.xml create mode 100644 programming/language/lua51/translations.xml diff --git a/programming/language/lua51/actions.py b/programming/language/lua51/actions.py new file mode 100644 index 0000000000..d5a0bb65eb --- /dev/null +++ b/programming/language/lua51/actions.py @@ -0,0 +1,37 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def build(): + shelltools.system("sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \ + -i src/Makefile") + pisitools.dosed("src/Makefile", "^CFLAGS.*$", "CFLAGS=%s -DLUA_USE_LINUX" % get.CFLAGS()) + pisitools.dosed("src/Makefile", "^MYLDFLAGS.*$", "MYLDFLAGS=%s" % get.LDFLAGS()) + autotools.make("linux") + +def install(): + options = "TO_BIN=\"lua5.1 luac5.1\" \ + TO_LIB=\"liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.5.1.5 \" \ + INSTALL_DATA=\"cp -d\" \ + INSTALL_TOP=\"%s/usr\" \ + INSTALL_INC=\"%s/usr/include/lua5.1\" \ + INSTALL_MAN=%s/usr/share/man/man1" % (get.installDIR(),get.installDIR(),get.installDIR()) + autotools.rawInstall(options) + + pisitools.removeDir("/usr/share/lua") + pisitools.removeDir("/usr/lib/lua") + + pisitools.dosym("/usr/lib/liblua5.1.so", "/usr/lib/liblua.so.5.1") + + docs = [ "*.html", "*.png", "*.css", "*.gif" ] + for d in docs: + pisitools.insinto("/usr/share/doc/lua", "doc/%s" % d) + pisitools.rename("/usr/share/man/man1/lua.1", "lua.5.1.1") + pisitools.rename("/usr/share/man/man1/luac.1", "luac.5.1.1") diff --git a/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch b/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch new file mode 100644 index 0000000000..64273a58a5 --- /dev/null +++ b/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch @@ -0,0 +1,21 @@ +From cc96b1f12a6549559274c6e7359edd576a55e4d2 Mon Sep 17 00:00:00 2001 +From: Ikey Doherty +Date: Sat, 24 Jan 2015 10:42:47 +0000 +Subject: [PATCH] Use /usr, not /usr/local. +--- +src/luaconf.h | 2 +- +1 file changed, 1 insertion(+), 1 deletion(-) +diff --git a/src/luaconf.h b/src/luaconf.h +index e2cb261..19692f3 100644 +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -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 \ +-- +1.8.4 diff --git a/programming/language/lua51/files/fix-linking.patch b/programming/language/lua51/files/fix-linking.patch new file mode 100644 index 0000000000..a7fd03514a --- /dev/null +++ b/programming/language/lua51/files/fix-linking.patch @@ -0,0 +1,22 @@ +Index: lua-5.1.4/src/Makefile +=================================================================== +--- lua-5.1.4.orig/src/Makefile ++++ lua-5.1.4/src/Makefile +@@ -53,7 +53,7 @@ $(LUA_A): $(CORE_O) $(LIB_O) + $(RANLIB) $@ + + $(LUA_SO): $(CORE_O) $(LIB_O) +- $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O) ++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LUA_O) $(LIBS) + rm -f liblua.so + ln -fs $@ liblua.so + +@@ -102,7 +102,7 @@ generic: + $(MAKE) all MYCFLAGS= + + linux: +- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" ++ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-ldl -lreadline -lhistory -lncurses" + + macosx: + $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline" diff --git a/programming/language/lua51/files/install.patch b/programming/language/lua51/files/install.patch new file mode 100644 index 0000000000..dd422ceba0 --- /dev/null +++ b/programming/language/lua51/files/install.patch @@ -0,0 +1,47 @@ +--- Makefile~ 2008-08-12 03:40:48.000000000 +0300 ++++ Makefile 2009-01-02 17:16:41.000000000 +0200 +@@ -9,16 +9,16 @@ + + # 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 +-INSTALL_MAN= $(INSTALL_TOP)/man/man1 ++INSTALL_MAN= $(INSTALL_TOP)/share/man/man1 + # + # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with + # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc). + INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V +-INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V ++INSTALL_CMOD= $(INSTALL_TOP)/lib + + # How to install. If your install program does not support "-p", then you + # may have to run ranlib on the installed liblua.a (do "make ranlib"). +@@ -43,7 +43,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.so.$V + TO_MAN= lua.1 luac.1 + + # Lua version and release. +--- etc/lua.pc~ 2008-08-08 15:46:11.000000000 +0300 ++++ etc/lua.pc 2009-01-02 17:17:32.000000000 +0200 +@@ -8,11 +8,11 @@ + 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 +-INSTALL_MAN= ${prefix}/man/man1 ++INSTALL_MAN= ${prefix}/share/man/man1 + INSTALL_LMOD= ${prefix}/share/lua/${V} + INSTALL_CMOD= ${prefix}/lib/lua/${V} + diff --git a/programming/language/lua51/files/liblua.so.patch b/programming/language/lua51/files/liblua.so.patch new file mode 100644 index 0000000000..92c1f3ac48 --- /dev/null +++ b/programming/language/lua51/files/liblua.so.patch @@ -0,0 +1,57 @@ +diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile +--- lua-5.2.1/Makefile 2012-05-17 16:05:54.000000000 +0200 ++++ lua-5.2.1.new/Makefile 2012-09-12 22:39:07.162748096 +0200 +@@ -52,7 +52,7 @@ + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h +--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.000000000 +0200 ++++ lua-5.2.1.new/src/luaconf.h 2012-09-12 22:40:27.986622772 +0200 +@@ -100,7 +100,7 @@ + #else /* }{ */ + + #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR + #define LUA_PATH_DEFAULT \ +diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile +--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.000000000 +0100 ++++ lua-5.2.1.new/src/Makefile 2012-09-12 22:38:08.591386896 +0200 +@@ -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_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,12 @@ + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + diff --git a/programming/language/lua51/files/lua-5.1-cflags.diff b/programming/language/lua51/files/lua-5.1-cflags.diff new file mode 100644 index 0000000000..db658aecad --- /dev/null +++ b/programming/language/lua51/files/lua-5.1-cflags.diff @@ -0,0 +1,13 @@ +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/programming/language/lua51/files/lua-5.1-dynlib.patch b/programming/language/lua51/files/lua-5.1-dynlib.patch new file mode 100644 index 0000000000..f8b95c757d --- /dev/null +++ b/programming/language/lua51/files/lua-5.1-dynlib.patch @@ -0,0 +1,42 @@ +--- ./src/Makefile.dynlib 2006-03-22 01:41:49.000000000 +0100 ++++ ./src/Makefile 2006-08-17 10:49:36.000000000 +0200 +@@ -22,6 +22,7 @@ + + PLATS= aix ansi bsd generic linux macosx mingw posix solaris + ++LUA_SO= liblua.so.$(V) + LUA_A= liblua.a + 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 \ +@@ -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_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + default: $(PLAT) +@@ -51,6 +52,11 @@ + $(AR) $@ $? + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O) ++ rm -f liblua.so ++ ln -fs $@ liblua.so ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +--- ./Makefile.dynlib 2006-06-02 12:53:38.000000000 +0200 ++++ ./Makefile 2006-08-17 10:47:54.000000000 +0200 +@@ -52,7 +52,7 @@ + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) V=$(V) $@ + + test: dummy + src/lua test/hello.lua diff --git a/programming/language/lua51/files/lua-5.1-module_paths.patch b/programming/language/lua51/files/lua-5.1-module_paths.patch new file mode 100644 index 0000000000..29ac4c3bf4 --- /dev/null +++ b/programming/language/lua51/files/lua-5.1-module_paths.patch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## src_luaconf.h.dpatch by John V. Belmonte +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set Lua's default PATH and CPATH. + +@DPATCH@ +diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h +--- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500 ++++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500 +@@ -83,13 +83,17 @@ + + #else + #define LUA_ROOT "/usr/local/" ++#define LUA_ROOT2 "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/5.1/" ++#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/" + #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" ++#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/" + #define LUA_PATH_DEFAULT \ + "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ +- LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" ++ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ ++ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua" + #define LUA_CPATH_DEFAULT \ +- "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" ++ "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so" + #endif + + diff --git a/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch b/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch new file mode 100644 index 0000000000..abf7ad3e40 --- /dev/null +++ b/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch @@ -0,0 +1,20 @@ +Index: lua-5.1.4/etc/lua.pc +=================================================================== +--- lua-5.1.4.orig/etc/lua.pc ++++ lua-5.1.4/etc/lua.pc +@@ -18,14 +18,13 @@ INSTALL_CMOD= ${prefix}/lib/lua/${V} + + # canonical vars + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib + includedir=${prefix}/include + + Name: Lua + Description: An Extensible Extension Language + Version: ${R} + Requires: +-Libs: -L${libdir} -llua -lm ++Libs: -llua -lm + Cflags: -I${includedir} + + # (end of lua.pc) diff --git a/programming/language/lua51/files/lua-5.1pc b/programming/language/lua51/files/lua-5.1pc new file mode 100644 index 0000000000..ba9e6279e0 --- /dev/null +++ b/programming/language/lua51/files/lua-5.1pc @@ -0,0 +1,18 @@ +V=5.1 +R=5.1.5 +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include +Name: Lua +Description: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua -lm +Cflags: -I${includedir} diff --git a/programming/language/lua51/files/lua-arch.patch b/programming/language/lua51/files/lua-arch.patch new file mode 100644 index 0000000000..d8650c3a2e --- /dev/null +++ b/programming/language/lua51/files/lua-arch.patch @@ -0,0 +1,66 @@ +diff -ur lua-5.1.4/etc/lua.pc lua-5.1.4-new/etc/lua.pc +--- lua-5.1.4/etc/lua.pc 2008-08-08 14:46:11.000000000 +0200 ++++ lua-5.1.4-new/etc/lua.pc 2012-02-23 18:25:34.000000000 +0100 +@@ -8,6 +8,6 @@ + + # 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 -ur lua-5.1.4/src/luaconf.h lua-5.1.4-new/src/luaconf.h +--- lua-5.1.4/src/luaconf.h 2008-02-11 17:25:08.000000000 +0100 ++++ lua-5.1.4-new/src/luaconf.h 2012-02-23 18:25:34.000000000 +0100 +@@ -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 -ur lua-5.1.4/src/Makefile lua-5.1.4-new/src/Makefile +--- lua-5.1.4/src/Makefile 2008-01-19 20:37:58.000000000 +0100 ++++ lua-5.1.4-new/src/Makefile 2012-02-23 18:26:43.000000000 +0100 +@@ -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,11 @@ + $(AR) $@ $? + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +--- lua-5.1.4/Makefile 2008-08-12 02:40:48.000000000 +0200 ++++ lua-5.1.4-new/Makefile 2012-02-23 19:06:32.000000000 +0100 +@@ -53,7 +53,7 @@ + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua test/hello.lua diff --git a/programming/language/lua51/files/lua.pc b/programming/language/lua51/files/lua.pc new file mode 100644 index 0000000000..e192872578 --- /dev/null +++ b/programming/language/lua51/files/lua.pc @@ -0,0 +1,20 @@ +V=5.1 +R=5.1.5 + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC= ${prefix}/include/lua5.1 +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/lua5.1 + +Name: Lua +Description: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua5.1 -lm +Cflags: -I${includedir} \ No newline at end of file diff --git a/programming/language/lua51/files/lua.png b/programming/language/lua51/files/lua.png new file mode 100644 index 0000000000000000000000000000000000000000..bd644676b7955e42b5d4914174f4d3897cb20f2c GIT binary patch literal 529 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7lwZz_*&vh6HtV+z$3C4 zNPB>>+sSM@kYHJXV>*yl0OR&wbLKKIFwXIGaSVw#yf-{|U5f&b%$a+q@AZ64`W@c=>5`2dJ50)w-~DO`6@BurkHv*W>CrNI0gVH~jG?vm z%&VkazBuXs*kYk1DO4Q2zxKN9g{6!q1DMy|e&Z5l^dRTx*2L}=$9%)Ml?3OW^^?Z0uNfF8Q+Dt6YTpb+&CHhurB+2X-!9y{;zdd(pmyYoz#& zJaWzopR#-1rAaIY-mZ$!|oVfqIi+}ia+n;yVpXEB*WTGZzIA3RqJA2^f%j*4U_48Tu8>V@8 R1OOw9!PC{xWt~$(699mz=2ZXy literal 0 HcmV?d00001 diff --git a/programming/language/lua51/files/shared-library.patch b/programming/language/lua51/files/shared-library.patch new file mode 100644 index 0000000000..a594fc8c76 --- /dev/null +++ b/programming/language/lua51/files/shared-library.patch @@ -0,0 +1,51 @@ +ubmitted By: Igor Živković +Date: 2013-07-17 +Initial Package Version: 5.1.5 +Upstream Status: Rejected +Origin: Arch Linux packages repository +Description: Adds the compilation of a shared library. +diff -Naur lua-5.1.5.orig/Makefile lua-5.1.5/Makefile +--- lua-5.1.5.orig/Makefile 2012-02-10 10:50:23.000000000 +0100 ++++ lua-5.1.5/Makefile 2013-07-17 18:57:36.498528022 +0200 +@@ -53,7 +53,7 @@ +all: $(PLAT) +$(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) +test: dummy +src/lua test/hello.lua +diff -Naur lua-5.1.5.orig/src/Makefile lua-5.1.5/src/Makefile +--- lua-5.1.5.orig/src/Makefile 2012-02-13 21:41:22.000000000 +0100 ++++ lua-5.1.5/src/Makefile 2013-07-17 19:00:46.142921587 +0200 +@@ -8,7 +8,7 @@ +PLAT= none +CC= gcc +-CFLAGS= -O2 -Wall $(MYCFLAGS) ++CFLAGS= -fPIC -O2 -Wall $(MYCFLAGS) +AR= ar rcu +RANLIB= ranlib +RM= rm -f +@@ -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_T) $(LUAC_T) $(LUA_SO) +ALL_A= $(LUA_A) +default: $(PLAT) +@@ -51,6 +52,11 @@ +$(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files +$(RANLIB) $@ ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ +$(LUA_T): $(LUA_O) $(LUA_A) +$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) diff --git a/programming/language/lua51/pspec.xml b/programming/language/lua51/pspec.xml new file mode 100644 index 0000000000..3b11720c9e --- /dev/null +++ b/programming/language/lua51/pspec.xml @@ -0,0 +1,75 @@ + + + + + lua51 + http://www.lua.org + + PisiLinux Community + admins@pisilinux.org + + LGPLv2 + library + A light-weight programming language + lua51 is a powerful light-weight programming language designed for extending applications. + http://www.lua.org/ftp/lua-5.1.5.tar.gz + + readline-devel + + + lua-5.1-cflags.diff + lua-arch.patch + + + + + lua51 + + readline + + + /usr/lib + /usr/share/man/man1 + /usr/share/doc + /usr/bin + /sbin/lsmod + /usr/share/pixmaps + /usr/share/lua5.1 + /luac5.1.1/luac.1 + /lua5.1.1/lua.1 + + + lua.png + lua.pc + + + + + lua51-devel + Development files for lua51 + + lua51 + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2015-05-09 + 5.1.5 + fixed libraries and man pages + Hakan Yıldız + hknyldz93@gmail.com + + + 2015-02-01 + 5.1.5 + First release + Ayhan Yalçınsoy + ayhanyalcinsoy@pisilinux.org + + + \ No newline at end of file diff --git a/programming/language/lua51/translations.xml b/programming/language/lua51/translations.xml new file mode 100644 index 0000000000..196b9b5301 --- /dev/null +++ b/programming/language/lua51/translations.xml @@ -0,0 +1,14 @@ + + + + lua51 + Hafif bir programlama dili + lua51, uygulamaları genişletmek için tasarlanmış hafif ve güçlü bir programlama dilidir. + Lua51 es un lenguaje de programación liviano y potente con todas las herramientas imaginables + + + + lua51-devel + lua51 için geliştirme dosyaları + +