diff --git a/README.md b/README.md index 9014980..fa4bf5d 100644 --- a/README.md +++ b/README.md @@ -100,4 +100,4 @@ See `./doc/sample.lua` See `./tst/init.lua` ##License -MIT; see `./doc/LICENSE` +LGPL+; see `./doc/LICENSE` diff --git a/doc/LICENSE b/doc/LICENSE index c52c7f7..c40243b 100644 --- a/doc/LICENSE +++ b/doc/LICENSE @@ -1,9 +1,16 @@ -(The MIT license) +[GNU Lesser General Public License (LGPL)](http://www.gnu.org/licenses/lgpl-3.0.txt) -Copyright (c) 2013, Wouter Scherphof (wouter.scherphof@gmail.com) +And, as an exception to the LGPL: -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: +You are permitted to include a version of this library in your application, +without complying with section 4. d) 0) of LGPL 3.0 +(requiring recipients of your application to be able to relink against +modified versions of the library). -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +This permission is granted if and ONLY if the resulting application binary +issue is intended for execution in any one of the following environments: -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. \ No newline at end of file + * Apple Inc. iOS + +Additional environments may be added to this list in the future. +All other terms of the LGPL continue to apply. diff --git a/htmlparser-0.2-1.rockspec b/htmlparser-0.2-1.rockspec new file mode 100644 index 0000000..39da275 --- /dev/null +++ b/htmlparser-0.2-1.rockspec @@ -0,0 +1,28 @@ +package = "htmlparser" +version = "0.2-1" +source = { + url = "git://github.com/wscherphof/lua-htmlparser.git", + branch = "v0.2" +} +description = { + summary = "Parse HTML text into a tree of elements with selectors", + detailed = [[ + Call parse() to build up a tree of element nodes. Each node in the tree, including the root node that is returned by parse(), supports a basic set of jQuery-like selectors. Or you could walk the tree by hand. + ]], + homepage = "http://wscherphof.github.io/lua-htmlparser/", + license = "LGPL+" +} +dependencies = { + "lua >= 5.2", + "set >= 0.2", + "lunitx >= 0.6" +} +build = { + type = "builtin", + copy_directories = {"doc", "tst"}, + modules = { + htmlparser = "src/htmlparser.lua", + ["htmlparser.ElementNode"] = "src/htmlparser/ElementNode.lua", + ["htmlparser.voidelements"] = "src/htmlparser/voidelements.lua" + } +}