summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralnsn <alnsn@pkgsrc.org>2015-06-13 17:22:53 +0000
committeralnsn <alnsn@pkgsrc.org>2015-06-13 17:22:53 +0000
commit54f1e42663e0f22158b4937e66260fa80676735f (patch)
tree457bf96e95ebf6ccd49d4c0f1fd824907e7b3134
parente1215bf1394a4a1cb5037005719bee5962800e32 (diff)
downloadpkgsrc-54f1e42663e0f22158b4937e66260fa80676735f.tar.gz
Update devel/lua-penlight to 1.3.2.
## 1.3.2 ### Changes - now works and passes tests with Lua 5.3 - utils.import will NOT override global symbols (import 'math' caused global type() to be clobbered) - Updated pl.dir.file_op to return true on success and false on failure... - workaround for issues with pl.lapp with amalg.lua - will look at global LAPP_SCRIPT if arg[0] is nil ### Fixes - func was broken: do NOT use ipairs to iterate if __index is overriden! - issue #133 pretty.read (naively) confused by unbalanced brackets - xml attribute underscore fix for simple parser - Fix path.normpath - lexer: fix parsing block comments/string. fix hang on empty string. - Fixed utils.execute returning different values for Lua 5.1 and Lua 5.2 - Issue #97; fixed attempt to put a month into a day - problem with tablex.count_map with custom comparison ### Features - Add Python style url module for quote and unquote. - stringx.quote_string, which scans for embedded long-string quote matches and escapes them by creating a long-string quote. - issue #117: tablex.range now works with decreasing numbers, consistent with numerical for loop - utils.import will NOT override global symbols (import 'math' caused global type() to be clobbered) - issue #125: DOCTYPE ignored in xml documents as well - Allow XML tostring() function to customize the default prefacing with <?xml...> - More Robust Quoted Strings - lapp: improved detection of unsupported short flags ## 1.3.0 ### Changes - class: RIP base method - not possible to implement correctly - lapp: short flags can now always be followed directly by their value, for instance, `-I/usr/include/lua/5.1` - Date: new explicit `Date.Interval` class; `toUTC/toLocal` return new object; `Date.__tostring` always returns ISO 8601 times for exact serialization. `+/-` explicit operators. Date objects are explicitly flagged as being UTC or not. ### Fixes - class: super method fixed. - Date: DST is now accounted for properly. - Date: weekday calculation borked. ### Features - All tests pass with no-5.1-compatible Lua 5.2; now always uses `utils.load` and `utils.unpack` is always available. - types: new module containing `utils.is_xxx` methods plus new `to_bool`. - class: can be passed methods in a table (see `test=klass.lua`). This is particularly convenient for using from Moonscript. - general documentation improvements, e.g `class` ## 1.2.1 ### Changes - utils.set(get)fenv always defined (_not_ set as globals for 5.2 anymore!). These are defined in new module pl.compat, but still available through utils. - class.Frodo now puts 'Frodo' in _current environment_ ### Fixes - lapp.add_type was broken (Pete Kazmier) - class broke with classes that redefined __newindex - Set.isdisjoint was broken because of misspelling; default ctor Set() now works as expected - tablex.transform was broken; result now has same keys as original (CoolistheName007) - xml match not handling empty matches (royalbee) - pl.strict: assigning nil to global declares it, as God intended. (Pierre Chapuis) - tests all work with pl.strict - 5.2 compatible load now respects mode - tablex.difference thought that a value of `false` meant 'not present' (Andrew Starke) ### Features - tablex.sort(t) iterates over sorted keys, tablex.sortv(t) iterates over sorted values (Pete Kazmier) - tablex.readonly(t) creates a read-only proxy for a table (John Schember) - utils.is_empty(o) true if o==nil, o is an empty table, or o is an empty string (John Schember) - utils.executeex(cmd,bin) returns true if successful, return code, plus stdout and stderr output as strings. (tieske) - class method base for calling inherited methods (theypsilon) - class supports pre-constructor _create for making a custom self (used in pl.List) - xml HTML mode improvements - can parse non-trivial well-formed HTML documents. xml.parsehtml is a parse function, no longer a flag - if a LOM document has ordered attributes, use these when stringifying - xml.tostring has yet another extra parm to force prefacing with <?xml...> - lapp boolean flags may have `true` default - lapp slack mode where 'short' flags can be multi-char - test.asserteq etc take extra arg, which is extra level where error must be reported at - path.currentdir,chdir,rmdir,mkdir and dir as alias to lfs are exported; no dependencies on luafilesystem outside pl.path, making it easier to plug in different implementations.
-rw-r--r--devel/lua-penlight/Makefile5
-rw-r--r--devel/lua-penlight/PLIST6
-rw-r--r--devel/lua-penlight/distinfo8
3 files changed, 10 insertions, 9 deletions
diff --git a/devel/lua-penlight/Makefile b/devel/lua-penlight/Makefile
index 456f17784d6..125499e0fe8 100644
--- a/devel/lua-penlight/Makefile
+++ b/devel/lua-penlight/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2014/10/19 22:27:44 alnsn Exp $
+# $NetBSD: Makefile,v 1.7 2015/06/13 17:22:53 alnsn Exp $
#
DISTNAME= ${PL_VERSION}
PKGNAME= ${LUA_PKGPREFIX}-penlight-${PL_VERSION}
-PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://github.com/stevedonovan/Penlight/archive/
@@ -12,7 +11,7 @@ HOMEPAGE= https://github.com/stevedonovan/Penlight/archive/
COMMENT= Lua libraries for functional programming, OS path management, etc
LICENSE= mit
-PL_VERSION= 1.1.1
+PL_VERSION= 1.3.2
DIST_SUBDIR= lua-penlight
NO_BUILD= yes
diff --git a/devel/lua-penlight/PLIST b/devel/lua-penlight/PLIST
index ab9450d44db..963c46e017b 100644
--- a/devel/lua-penlight/PLIST
+++ b/devel/lua-penlight/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2013/07/14 20:07:38 alnsn Exp $
+@comment $NetBSD: PLIST,v 1.3 2015/06/13 17:22:53 alnsn Exp $
${LUA_LDIR}/pl/Date.lua
${LUA_LDIR}/pl/List.lua
${LUA_LDIR}/pl/Map.lua
@@ -8,6 +8,7 @@ ${LUA_LDIR}/pl/Set.lua
${LUA_LDIR}/pl/app.lua
${LUA_LDIR}/pl/array2d.lua
${LUA_LDIR}/pl/class.lua
+${LUA_LDIR}/pl/compat.lua
${LUA_LDIR}/pl/comprehension.lua
${LUA_LDIR}/pl/config.lua
${LUA_LDIR}/pl/data.lua
@@ -23,7 +24,6 @@ ${LUA_LDIR}/pl/luabalanced.lua
${LUA_LDIR}/pl/operator.lua
${LUA_LDIR}/pl/path.lua
${LUA_LDIR}/pl/permute.lua
-${LUA_LDIR}/pl/platf/luajava.lua
${LUA_LDIR}/pl/pretty.lua
${LUA_LDIR}/pl/seq.lua
${LUA_LDIR}/pl/sip.lua
@@ -34,5 +34,7 @@ ${LUA_LDIR}/pl/tablex.lua
${LUA_LDIR}/pl/template.lua
${LUA_LDIR}/pl/test.lua
${LUA_LDIR}/pl/text.lua
+${LUA_LDIR}/pl/types.lua
+${LUA_LDIR}/pl/url.lua
${LUA_LDIR}/pl/utils.lua
${LUA_LDIR}/pl/xml.lua
diff --git a/devel/lua-penlight/distinfo b/devel/lua-penlight/distinfo
index a560e2f68ac..1ecfc494e7c 100644
--- a/devel/lua-penlight/distinfo
+++ b/devel/lua-penlight/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2013/07/14 20:28:19 alnsn Exp $
+$NetBSD: distinfo,v 1.4 2015/06/13 17:22:53 alnsn Exp $
-SHA1 (lua-penlight/1.1.1.tar.gz) = 5f215f560186ec3186b18ae5a177e51ba0af3b19
-RMD160 (lua-penlight/1.1.1.tar.gz) = c3473b7b189cd90803832dc2fc9560673d4e888d
-Size (lua-penlight/1.1.1.tar.gz) = 185473 bytes
+SHA1 (lua-penlight/1.3.2.tar.gz) = a7e9bdb7503150e4f2a43ec25edb5f94ed49d3de
+RMD160 (lua-penlight/1.3.2.tar.gz) = 692ae482b1bb92c78822377d3324a21f90fba669
+Size (lua-penlight/1.3.2.tar.gz) = 202022 bytes