From d6c94d0973052788e7d62831d77a3cd579c0fff5 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 17 May 2012 20:43:34 +0200 Subject: [PATCH] lua-codegen: Updated (0.2.1 -> 0.3.0) --- lua/lua-codegen/Makefile.patch | 22 ------- ...252bd878015bded6201a2d71fd6dbe3b4e20.patch | 63 ------------------- lua/lua-codegen/lua-codegen.desc | 6 +- 3 files changed, 3 insertions(+), 88 deletions(-) delete mode 100644 lua/lua-codegen/Makefile.patch delete mode 100644 lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch diff --git a/lua/lua-codegen/Makefile.patch b/lua/lua-codegen/Makefile.patch deleted file mode 100644 index 2761af15e..000000000 --- a/lua/lua-codegen/Makefile.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/Makefile b/Makefile -index f765ca7..dc1ee2b 100644 ---- a/Makefile -+++ b/Makefile -@@ -6,10 +6,13 @@ ifndef REV - REV := 1 - endif - --ifndef DESTDIR -- DESTDIR := /usr/local --endif --LIBDIR := $(DESTDIR)/share/lua/5.1 -+LUAVER := 5.1 -+PREFIX := /usr/local -+DPREFIX := $(DESTDIR)$(PREFIX) -+LIBDIR := $(DPREFIX)/share/lua/$(LUAVER) -+ -+all: -+ @echo "Nothing to build here" - - install: - mkdir -p $(LIBDIR)/CodeGen diff --git a/lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch b/lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch deleted file mode 100644 index 23280f8a4..000000000 --- a/lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch +++ /dev/null @@ -1,63 +0,0 @@ -# --- SDE-COPYRIGHT-NOTE-BEGIN --- -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# -# Filename: package/.../lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch -# Copyright (C) 2011 The OpenSDE Project -# -# More information can be found in the files COPYING and README. -# -# This patch file is dual-licensed. It is available under the license the -# patched project is licensed under, as long as it is an OpenSource license -# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms -# of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later -# version. -# --- SDE-COPYRIGHT-NOTE-END --- - -From b6a6252bd878015bded6201a2d71fd6dbe3b4e20 Mon Sep 17 00:00:00 2001 -From: Francois Perrad -Date: Tue, 7 Jun 2011 16:32:58 +0200 -Subject: [PATCH] fix interpolate : handles the last line of a template even if no newline - ---- - CHANGES | 4 ++++ - src/CodeGen.lua | 3 +-- - 2 files changed, 5 insertions(+), 2 deletions(-) - -diff --git a/CHANGES b/CHANGES -index 86f9fce..1c8e747 100644 ---- a/CHANGES -+++ b/CHANGES -@@ -1,5 +1,9 @@ - Revision history for lua-CodeGen - -+0.2.2 -+ - fix interpolate : handles the last line of a template even if no newline -+ (reported by Alejandro Mery) -+ - 0.2.1 Fri Nov 26 10:30:00 2010 - - fix compatibility with Lua 5.2.0 alpha - -diff --git a/src/CodeGen.lua b/src/CodeGen.lua -index c78f4d9..18b25e9 100644 ---- a/src/CodeGen.lua -+++ b/src/CodeGen.lua -@@ -197,14 +197,13 @@ local function eval (self, name) - - if template:find "\n" then - local results = {} -- for line in template:gmatch "([^\n]*)\n" do -+ for line in template:gmatch "([^\n]*)\n?" do - local result = interpolate_line(line) - if result == line or not result:match'^%s*$' then - results[#results+1] = result - end - lineno = lineno + 1 - end -- results[#results+1] = '' - return tconcat(results, "\n") - else - return interpolate_line(template) --- -1.7.4.1 - diff --git a/lua/lua-codegen/lua-codegen.desc b/lua/lua-codegen/lua-codegen.desc index 875e68442..aed82fc39 100644 --- a/lua/lua-codegen/lua-codegen.desc +++ b/lua/lua-codegen/lua-codegen.desc @@ -2,7 +2,7 @@ [COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. [COPY] [COPY] Filename: package/.../lua-codegen/lua-codegen.desc -[COPY] Copyright (C) 2011 The OpenSDE Project +[COPY] Copyright (C) 2011 - 2012 The OpenSDE Project [COPY] [COPY] More information can be found in the files COPYING and README. [COPY] @@ -33,7 +33,7 @@ [L] MIT [S] Stable -[V] 0.2.1 +[V] 0.3.0 [P] X -?---5---9 800.000 -[D] 1547741812 lua-codegen-0.2.1.tar.gz https://github.com/downloads/fperrad/lua-CodeGen/ +[D] 319198739 lua-codegen-0.3.0.tar.gz https://github.com/downloads/fperrad/lua-CodeGen/