]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
update lua-feedparser.patch
authorMarkham <markham001@gmx.de>
Tue, 5 Oct 2021 20:10:16 +0000 (22:10 +0200)
committerMarkham <markham001@gmx.de>
Tue, 5 Oct 2021 20:10:16 +0000 (22:10 +0200)
archive-patches/lua-feedparser.patch
make/archives.mk
make/libraries.mk
make/versions.mk

index b1abeb0ce2ca6928e7a7c74c7f96e6081836d2a3..7047f58b113300a85271948e742d47ce6d8cdc23 100644 (file)
@@ -9,13 +9,13 @@ index 2d66b8c..93d1c65 100644
 -      _VERSION = "feedparser 0.71"
 +      _VERSION = "feedparser 0.71b patched"
  }
-
  local blanky = XMLElement.new() --useful in a whole bunch of places
 @@ -73,7 +73,17 @@ local function parse_entries(entries_el, format_str, base)
                        --content
-                       elseif  (format_str=='atom' and tag=='content') or
-                                       (format_str=='rss' and (tag=='body' or tag=='xhtml:body' or tag == 'fullitem' or tag=='content:encoded')) then
--                              entry.content=el:getText()
+                       elseif  (format_str=='atom' and tag=='content') or 
+                                       (format_str=='rss' and (tag=='body' or tag=='xhtml:body' or tag == 'fullitem' or tag=='content:encoded')) then 
+-                              entry.content=el:getText()                      
 +                              entry.content=el:getText()
 +                              if el.lom and el.lom[2] and el.lom[2][2] and el.lom[2][2][2].attr and el.lom[2][2][2].attr.src then
 +                                      local img = el.lom[2][2][2].attr.src
@@ -28,14 +28,14 @@ index 2d66b8c..93d1c65 100644
 +                                      end
 +                              end
                                --TODO: content_detail
-
+                       
                        --published
 @@ -111,10 +121,30 @@ local function parse_entries(entries_el, format_str, base)
                                }
                                local author_url = (el:getChild('url') or blanky):getText()
-                               if author_url and author_url ~= "" then entry.author_detail.href=resolve(author_url, rebase(el:getChild('url'), el_base)) end
--
--                      elseif tag=='category' or tag=='dc:subject' then
+                               if author_url and author_url ~= "" then entry.author_detail.href=resolve(author_url, rebase(el:getChild('url'), el_base)) end           
+-                      
+-                      elseif tag=='category' or tag=='dc:subject' then 
 +                      elseif format_str =='atom' and tag=='media:group' then
 +                              local el_thumb = el:getChild('media:thumbnail')
 +                              if el_thumb then
@@ -60,7 +60,7 @@ index 2d66b8c..93d1c65 100644
 +                              entry.category = (el:getChild('term') or el):getText()
 +                      elseif tag=='dc:subject' then
                                --todo
--
+-                      
                        elseif tag=='source' then
                                --todo
                        end
@@ -75,8 +75,8 @@ index 2d66b8c..93d1c65 100644
                                height=(el:getChild('height') or blanky):getText()
 @@ -366,4 +396,4 @@ if _VERSION:sub(-3) < "5.3" then
  end
-
-
 -return feedparser
 \ No newline at end of file
 +return feedparser
index b1f1563835cc06c2bce2b5c9a3e6d02d39470d61..e4e425d7b9a522d240d76979d321e6c6f0b6873d 100755 (executable)
@@ -309,11 +309,11 @@ $(ARCHIVE)/ethtool-$(ETHTOOL_VER).tar.xz:
 $(ARCHIVE)/expat-$(EXPAT_VER).tar.bz2:
        $(WGET) http://downloads.sourceforge.net/expat/expat-$(EXPAT_VER).tar.bz2
 
-$(ARCHIVE)/luaexpat-$(LUA_EXPAT_VER).tar.bz2:
+$(ARCHIVE)/luaexpat-$(LUA_EXPAT_VER).tar.bz2: | $(HOSTPREFIX)/bin/get-git-archive.sh
        get-git-archive.sh https://github.com/tomasguisasola/luaexpat.git $(LUA_EXPAT_GIT) $(notdir $@) $(ARCHIVE)
 
-$(ARCHIVE)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.bz2: | $(HOSTPREFIX)/bin/get-git-archive.sh
-       get-git-archive.sh https://github.com/slact/lua-feedparser.git $(LUA_FEEDPARSER_TAG) $(notdir $@) $(ARCHIVE)
+$(ARCHIVE)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.gz:
+       $(WGET) https://github.com/slact/lua-feedparser/archive/$(LUA_FEEDPARSER_VER).tar.gz -O $(@)
 
 $(ARCHIVE)/lua-$(LUA_VER).tar.gz:
        $(WGET) http://www.lua.org/ftp/lua-$(LUA_VER).tar.gz
index 44f5ec28cb66dc9b7ba4a07dbee82e1a5d523556..3525827297fe5f9b04180501fb082e06a9246f0c 100755 (executable)
@@ -1048,10 +1048,10 @@ $(D)/lua-expat: $(ARCHIVE)/luaexpat-$(LUA_EXPAT_VER).tar.bz2 $(D)/expat | $(TARG
        $(REMOVE)/luaexpat-$(LUA_EXPAT_VER)
        $(TOUCH)
 
-$(D)/lua-feedparser: $(ARCHIVE)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.bz2 $(D)/lua $(D)/luasocket $(D)/lua-expat | $(TARGETPREFIX)
+$(D)/lua-feedparser: $(ARCHIVE)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.gz $(D)/lua $(D)/luasocket $(D)/lua-expat | $(TARGETPREFIX)
        $(START_BUILD)
        $(REMOVE)/lua-feedparser-$(LUA_FEEDPARSER_VER)
-       $(UNTAR)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.bz2; \
+       $(UNTAR)/lua-feedparser-$(LUA_FEEDPARSER_VER).tar.gz; \
        set -e; cd $(BUILD_TMP)/lua-feedparser-$(LUA_FEEDPARSER_VER); \
                $(PATCH)/lua-feedparser.patch; \
                sed -i -e "s/^PREFIX.*//" -e "s/^LUA_DIR.*//" Makefile ; \
index 9801cf92e7240bf998862c3103835bb3d0ad17c5..85043763c7099c00d5d979b5070bdb4c747f7a13 100644 (file)
@@ -166,7 +166,6 @@ LUA_EXPAT_GIT = 9878960
 
 # lua-feedparser
 LUA_FEEDPARSER_VER=0.71
-LUA_FEEDPARSER_TAG=9b284bc
 
 LUASOCKET_VER = 2.0.2
 LUASOCKET_GIT = 5a17f79