From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1560377-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4BE05158089
	for <garchives@archives.gentoo.org>; Fri,  6 Oct 2023 14:38:24 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 931832BC06F;
	Fri,  6 Oct 2023 14:38:23 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 7AD5D2BC06F
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Oct 2023 14:38:23 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C9968335D16
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Oct 2023 14:38:22 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 59FD19D3
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Oct 2023 14:38:20 +0000 (UTC)
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" <davidroman96@gmail.com>
Message-ID: <1696535257.9b009438dd9eeb8bf99e0059d0ac6d3213d7793a.davidroman@gentoo>
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-libs/syndication-domination/files/, net-libs/syndication-domination/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-libs/syndication-domination/Manifest net-libs/syndication-domination/files/gfeeds-2.2.0-blueprint-compiler-fix.patch net-libs/syndication-domination/syndication-domination-1.0.ebuild net-libs/syndication-domination/syndication-domination-9999.ebuild
X-VCS-Directories: net-libs/syndication-domination/files/ net-libs/syndication-domination/
X-VCS-Committer: davidroman
X-VCS-Committer-Name: David Roman
X-VCS-Revision: 9b009438dd9eeb8bf99e0059d0ac6d3213d7793a
X-VCS-Branch: master
Date: Fri,  6 Oct 2023 14:38:20 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: e573d25a-3509-4114-8bc6-33d84a24ff4f
X-Archives-Hash: 8c61ec51b6fcd458adae2c23de69412a

commit:     9b009438dd9eeb8bf99e0059d0ac6d3213d7793a
Author:     brettalcox <brettalcox <AT> gmail <DOT> com>
AuthorDate: Thu Oct  5 19:43:58 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Oct  5 19:47:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b009438

net-libs/syndication-domination: update SRC_URI

Signed-off-by: brettalcox <brettalcox <AT> gmail.com>

 net-libs/syndication-domination/Manifest           |   1 -
 .../gfeeds-2.2.0-blueprint-compiler-fix.patch      | 106 +++++++++++++++++++++
 .../syndication-domination-1.0.ebuild              |   7 +-
 .../syndication-domination-9999.ebuild             |   7 +-
 4 files changed, 110 insertions(+), 11 deletions(-)

diff --git a/net-libs/syndication-domination/Manifest b/net-libs/syndication-domination/Manifest
index 2c595e0947..7c08f10971 100644
--- a/net-libs/syndication-domination/Manifest
+++ b/net-libs/syndication-domination/Manifest
@@ -1,2 +1 @@
-DIST 75920321.patch 4208 BLAKE2B c24362cdc5f01858608476bddab3004f3acd9cc9a555ca52abedbeb009952f7a84db4e18db36c731fc2d6212f3cfa21cc9881b4b7472bb7465787b49f9bef7e3 SHA512 cbe5f1def629fe21f232566d8e812c4b8c48be4c5fb68b5c60b6c91ae49dde8cf561e14abb3b52b1ca9ad2560b921f3e834498d9d0c0eee198d7da60a689da4f
 DIST syndication-domination-1.0.tar.bz2 46908 BLAKE2B cd7d70c61277e315fa03e16af5190c8b87140c8d5d80c3b58a0d7d2026403558b74be0a1cfb8e9c450204bb4842970844c308d33676a65e0f7cbbda77cf821f0 SHA512 6fa093144c6a86c6e81ad7530527d171dac8bc011f9aa2895b254eef8e288e251dfc9dab8d2fa598182df825b53cd8ef583736c8b6971375904543ab93d76b7e

diff --git a/net-libs/syndication-domination/files/gfeeds-2.2.0-blueprint-compiler-fix.patch b/net-libs/syndication-domination/files/gfeeds-2.2.0-blueprint-compiler-fix.patch
new file mode 100644
index 0000000000..b8258dfa04
--- /dev/null
+++ b/net-libs/syndication-domination/files/gfeeds-2.2.0-blueprint-compiler-fix.patch
@@ -0,0 +1,106 @@
+From 75920321062d682437f3fb0319dad227d8b18f6c Mon Sep 17 00:00:00 2001
+From: Gabriele Musco <gabmus@disroot.org>
+Date: Sat, 25 Mar 2023 14:13:44 +0100
+Subject: [PATCH] add author extraction for feed item
+
+---
+ src/feed_item.cpp | 12 +++++++++---
+ src/feed_item.hpp | 14 ++++++++++++++
+ src/pybind.cpp    |  4 ++++
+ 3 files changed, 27 insertions(+), 3 deletions(-)
+
+diff --git a/src/feed_item.cpp b/src/feed_item.cpp
+index a08cd71..e0dbb8c 100644
+--- a/src/feed_item.cpp
++++ b/src/feed_item.cpp
+@@ -1,5 +1,5 @@
+-#include "feed_item.hpp"
+-#include "utils.hpp"
++#include "./feed_item.hpp"
++#include "./utils.hpp"
+ 
+ std::string FeedItem::extract_url() {
+     std::string res = item_node.child("link").text().as_string();
+@@ -75,6 +75,10 @@ void FeedItem::parse() {
+     // pub_date
+     pub_date = SynDomUtils::extract_from_node(item_node, __PUB_DATE_PARAMS);
+ 
++    // author
++    author_name = SynDomUtils::extract_from_node(item_node, __AUTHOR_NAME_PARAMS);
++    author_url = SynDomUtils::extract_from_node(item_node, __AUTHOR_URL_PARAMS);
++
+     // img_url
+     img_url = extract_img_url();
+     fix_url(img_url);
+@@ -87,6 +91,8 @@ std::string FeedItem::to_json() {
+         "            \"url\": \"" + url + "\",\n"
+         "            \"media_url\": \"" + media_url + "\",\n"
+         "            \"pub_date\": \"" + pub_date + "\",\n"
+-        "            \"img_url\": \"" + img_url + "\"\n"
++        "            \"img_url\": \"" + img_url + "\",\n"
++        "            \"author_name\": \"" + author_name + "\",\n"
++        "            \"author_url\": \"" + author_url + "\"\n"
+         "        }";
+ }
+diff --git a/src/feed_item.hpp b/src/feed_item.hpp
+index 5d7105e..fd1259f 100644
+--- a/src/feed_item.hpp
++++ b/src/feed_item.hpp
+@@ -28,6 +28,8 @@ private:
+     std::string media_url;
+     std::string pub_date;
+     std::string img_url;
++    std::string author_name;
++    std::string author_url;
+ 
+     /**
+     * Tries to extract the item url and returns it.
+@@ -73,6 +75,16 @@ private:
+         {ExtractionParam::ParamType::CHILD, {"date"}},
+         {ExtractionParam::ParamType::CHILD, {"dc:date"}}
+     };
++    static inline const std::vector<ExtractionParam> __AUTHOR_NAME_PARAMS{
++        {ExtractionParam::ParamType::CHILD, {"author", "name"}},
++        {ExtractionParam::ParamType::CHILD, {"author"}},
++        {ExtractionParam::ParamType::CHILD, {"dc:creator"}},
++        {ExtractionParam::ParamType::CHILD, {"creator"}},
++        {ExtractionParam::ParamType::CHILD, {"itunes:author"}},
++    };
++    static inline const std::vector<ExtractionParam> __AUTHOR_URL_PARAMS{
++        {ExtractionParam::ParamType::CHILD, {"author", "uri"}}
++    };
+     /**
+     * Entry point of the class, parses all the relevant content. Called by
+     * the constructor.
+@@ -101,6 +113,8 @@ public:
+     std::string get_media_url() { return media_url; }
+     std::string get_pub_date() { return pub_date; }
+     std::string get_img_url() { return img_url; }
++    std::string get_author_name() { return author_name; }
++    std::string get_author_url() { return author_url; }
+ 
+     /**
+     * Represents the FeedItem object (itself) as a json, returned as a string.
+diff --git a/src/pybind.cpp b/src/pybind.cpp
+index bef72f9..1d5a58d 100644
+--- a/src/pybind.cpp
++++ b/src/pybind.cpp
+@@ -19,11 +19,15 @@ PYBIND11_MODULE(syndom, m) {
+         .def_property_readonly("media_url", &FeedItem::get_media_url)
+         .def_property_readonly("pub_date", &FeedItem::get_pub_date)
+         .def_property_readonly("img_url", &FeedItem::get_img_url)
++        .def_property_readonly("author_name", &FeedItem::get_author_name)
++        .def_property_readonly("author_url", &FeedItem::get_author_url)
+         .def("get_title", &FeedItem::get_title)
+         .def("get_content", &FeedItem::get_content)
+         .def("get_url", &FeedItem::get_url)
+         .def("get_media_url", &FeedItem::get_media_url)
+         .def("get_pub_date", &FeedItem::get_pub_date)
++        .def("get_author_name", &FeedItem::get_author_name)
++        .def("get_author_url", &FeedItem::get_author_url)
+         .def("get_img_url", &FeedItem::get_img_url);
+     py::class_<Feed>(m, "Feed")
+         .def(py::init<std::string>())
+-- 
+GitLab
+

diff --git a/net-libs/syndication-domination/syndication-domination-1.0.ebuild b/net-libs/syndication-domination/syndication-domination-1.0.ebuild
index b888143f28..c2c3fdbc37 100644
--- a/net-libs/syndication-domination/syndication-domination-1.0.ebuild
+++ b/net-libs/syndication-domination/syndication-domination-1.0.ebuild
@@ -15,12 +15,9 @@ if [[ ${PV} == 9999 ]]; then
 	EGIT_REPO_URI="https://gitlab.com/gabmus/syndication-domination.git"
 else
 	KEYWORDS="~amd64"
-	SRC_URI="
-		https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2
-		https://gitlab.com/gabmus/syndication-domination/-/commit/75920321.patch
-	"
+	SRC_URI="https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2"
 	#required for gfeeds
-	PATCHES="${DISTDIR}/75920321.patch"
+	PATCHES="${FILESDIR}/gfeeds-2.2.0-blueprint-compiler-fix.patch"
 fi
 
 LICENSE="AGPL-3"

diff --git a/net-libs/syndication-domination/syndication-domination-9999.ebuild b/net-libs/syndication-domination/syndication-domination-9999.ebuild
index b888143f28..c2c3fdbc37 100644
--- a/net-libs/syndication-domination/syndication-domination-9999.ebuild
+++ b/net-libs/syndication-domination/syndication-domination-9999.ebuild
@@ -15,12 +15,9 @@ if [[ ${PV} == 9999 ]]; then
 	EGIT_REPO_URI="https://gitlab.com/gabmus/syndication-domination.git"
 else
 	KEYWORDS="~amd64"
-	SRC_URI="
-		https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2
-		https://gitlab.com/gabmus/syndication-domination/-/commit/75920321.patch
-	"
+	SRC_URI="https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2"
 	#required for gfeeds
-	PATCHES="${DISTDIR}/75920321.patch"
+	PATCHES="${FILESDIR}/gfeeds-2.2.0-blueprint-compiler-fix.patch"
 fi
 
 LICENSE="AGPL-3"