debian/0000755000000000000000000000000012216607703007172 5ustar debian/watch0000644000000000000000000000033212216607703010221 0ustar # test this watch file using: # uscan --watchfile debian/watch --upstream-version 0.0.1 --package lua-cosmo # version=3 http://github.com/mascarenhas/cosmo/downloads /downloads/mascarenhas/cosmo/cosmo-([\d\.]*).tar.gz debian/lua5.1.dh-lua.conf0000644000000000000000000000022612216607703012217 0ustar PKG_NAME=cosmo LUA_SOURCES=$(wildcard src/cosmo/*.lua) src/cosmo.lua LUA_SOURCES_MANGLER=sed 's?^src/??' LUA_TEST=/usr/bin/shake tests/test_cosmo.lua debian/rules0000755000000000000000000000007312216607703010252 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua debian/compat0000644000000000000000000000000212216607703010370 0ustar 9 debian/lua5.2.dh-lua.conf0000644000000000000000000000020712216607703012217 0ustar PKG_NAME=cosmo LUA_SOURCES=$(wildcard src/cosmo/*.lua) src/cosmo.lua LUA_SOURCES_MANGLER=sed 's?^src/??' LUA_TEST=tests/test_cosmo.lua debian/source/0000755000000000000000000000000012216607703010472 5ustar debian/source/format0000644000000000000000000000001412216607703011700 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000442012216607703011044 0ustar lua-cosmo (13.01.30-2) unstable; urgency=low * Add patch to make lua-cosmo compatible with lua-lpeg >= 0.12 -- Enrico Tassi Thu, 19 Sep 2013 16:51:57 +0200 lua-cosmo (13.01.30-1) unstable; urgency=low * New upstream release supporting lua 5.2 * Packaging moved to git * Transitional packages removed * fix FTBFS (Closes: #719378) -- Enrico Tassi Thu, 19 Apr 2012 09:55:28 +0200 lua-cosmo (10.04.06-4) unstable; urgency=low * clean up debian/rules * Build-depend on dh-lua >= 12 -- Enrico Tassi Thu, 19 Apr 2012 09:53:45 +0200 lua-cosmo (10.04.06-3) unstable; urgency=low * Switch to dh-lua * Packages renamed according to the new Lua policy * bumped standards-version to 3.9.3, no changes * debian/compat set to 9 * Cupdated copyright file -- Enrico Tassi Tue, 17 Apr 2012 22:25:53 +0200 lua-cosmo (10.04.06-2) unstable; urgency=low * bumped standards-version to 3.9.2, no changes * source format 3.0 (quilt) -- Enrico Tassi Fri, 22 Jul 2011 22:52:45 +0200 lua-cosmo (10.04.06-1) unstable; urgency=low * new upstream release (Closes: #579977) * update watch file, thanks Clint Adams (Closes: #579978) * updated copyright file * bumped standards version to 3.8.4, no changes -- Enrico Tassi Mon, 03 May 2010 20:51:20 +0200 lua-cosmo (8.04.14-3) unstable; urgency=low * build-depend on lua5.1-policy-dev >= 22 * bumped standards-version to 3.8.2, no changes -- Enrico Tassi Tue, 21 Jul 2009 17:09:57 +0200 lua-cosmo (8.04.14-2) unstable; urgency=low * rebuild against liblua5.1-lpeg2 -- Enrico Tassi Mon, 23 Mar 2009 10:51:35 +0100 lua-cosmo (8.04.14-1) unstable; urgency=medium * new upstream release -- Enrico Tassi Wed, 11 Jun 2008 21:56:12 +0200 lua-cosmo (8.04.04-1) unstable; urgency=low * New upstream release based on lpeg -- Enrico Tassi Fri, 04 Apr 2008 10:05:02 +0200 lua-cosmo (8.01.26-1) unstable; urgency=low * Initial release. (Closes: #462659) -- Enrico Tassi Sat, 26 Jan 2008 18:51:32 +0100 debian/copyright0000644000000000000000000000251112216607703011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cosmo Upstream-Contact: Fabio Mascarenhas Source: https://gist.github.com/mascarenhas/cosmo Files: * Copyright: 2007-2008 Yuri Takhteyev, 2008-2010 Fabio Mascarenhas License: MIT/X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000136612216607703010603 0ustar Source: lua-cosmo Section: interpreters Priority: optional Maintainer: Enrico Tassi Build-Depends: debhelper (>= 9), dh-lua (>= 12), shake Standards-Version: 3.9.3 Homepage: https://github.com/mascarenhas/cosmo Vcs-Git: git://git.debian.org/git/pkg-lua/lua-cosmo.git Vcs-Browser: http://git.debian.org/?p=pkg-lua/lua-cosmo.git Package: lua-cosmo Architecture: all Depends: ${shlibs:Depends}, lua-lpeg, ${misc:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: Template library for the Lua language The cosmo library defines a textual template language and provides functions to instantiate such templates filling variable with their actual values. . The package also contains the documentation. debian/patches/0000755000000000000000000000000012216607703010621 5ustar debian/patches/0001-Fix-loop-body-may-accept-empty-string.patch0000644000000000000000000000207712216607703021337 0ustar From: Enrico Tassi Date: Thu, 19 Sep 2013 16:49:54 +0200 Subject: Fix: loop body may accept empty string Courtesy of Roberto Ierusalimschy on lua-l@lists.lua.org Message-ID: <20130918201448.GA18049@inf.puc-rio.br> --- src/cosmo/grammar.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cosmo/grammar.lua b/src/cosmo/grammar.lua index a2490a0..97f9899 100644 --- a/src/cosmo/grammar.lua +++ b/src/cosmo/grammar.lua @@ -37,12 +37,10 @@ local longstring1 = lpeg.P{ longstring = lpeg.P"[[" * (lpeg.V"longstring" + (lpeg.P(1) - lpeg.P"]]"))^0 * lpeg.P"]]" } -local longstring2 = lpeg.P(function (s, i) - local l = lpeg.match(start, s, i) - if not l then return nil end - local p = lpeg.P("]" .. string.rep("=", l - i - 2) .. "]") - p = (1 - p)^0 * p - return lpeg.match(p, s, l) +local longstring2 = lpeg.Cmt(start, function (s, i, start) + local p = string.gsub(start, "%[", "]") + local _, e = string.find(s, p, i) + return (e and e + 1) end) local longstring = #("[" * lpeg.S"[=") * (longstring1 + longstring2) debian/patches/series0000644000000000000000000000006112216607703012033 0ustar 0001-Fix-loop-body-may-accept-empty-string.patch debian/lua-cosmo.docs0000644000000000000000000000001712216607703011741 0ustar doc/index.html