summaryrefslogtreecommitdiff
path: root/net-mail/rss2email
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-09 01:07:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-09 01:07:53 +0000
commit4464bf26d93bdcc80e0b1330fe9c9caef26b34fc (patch)
tree62f9e9438bf700cf277191db5d7c3a641bc972dc /net-mail/rss2email
parent8edd4a48a39640822abe6ddb7b2a1d5b2da4ea70 (diff)
gentoo auto-resync : 09:03:2024 - 01:07:53
Diffstat (limited to 'net-mail/rss2email')
-rw-r--r--net-mail/rss2email/Manifest2
-rw-r--r--net-mail/rss2email/files/rss2email-3.14-tests.patch24
-rw-r--r--net-mail/rss2email/rss2email-3.14-r2.ebuild38
3 files changed, 64 insertions, 0 deletions
diff --git a/net-mail/rss2email/Manifest b/net-mail/rss2email/Manifest
index 43f2f76ee7c4..fd9499f98641 100644
--- a/net-mail/rss2email/Manifest
+++ b/net-mail/rss2email/Manifest
@@ -1,4 +1,6 @@
+AUX rss2email-3.14-tests.patch 2213 BLAKE2B 69fa2cf451a6d4b4e10dbc69a190ecc54fe2c8a74059bb67394aaabc2885cbeffdb3665f1c2588e2424886ab8e9ec275bef246fb48c9771711f331f014ba404e SHA512 5dd211b053eabf0a098c0d455f9e30b611ece12e9d077f1cde04c9ae9dc4e5f49e9c0cac8e208dcf6b226b77d70a27b150c289d51e5b9c8839dd44113db6db1a
DIST rss2email-3.14.tar.gz 175600 BLAKE2B 70dec53bb65f8238f123097dad98f2d687538e1da58ab7abc83cca16a834947f66894f36380a24fb51db32724263164bffaaf72b5ca3e575a593f3c3cbcfc463 SHA512 42308a3ae2bfe3adaf4b904983c2270a162d268ce5f4357d853a7ba74814d97dc5dc66d7d94ef6b3fbe510e8368361f63a99de814d3388f37b190fa63594a727
EBUILD rss2email-3.14-r1.ebuild 799 BLAKE2B 4513b4aa1f33c782d3f2c091a2b76bffdee644105cdd292b7ced4683c3b0bfc37b92c76bd9dfaa62e89b4a3fcf4baf8198cf8d6e69aeb65976bd7eb73802c9a8 SHA512 8c9d5d47b1e013ba5248d889d6a0fdb854e8947440c3b7e856f498b59a3dbe308f0f569fdc99e5c0332119629fd09a669948aca8f8b88d5ca737b0bf98636ac8
+EBUILD rss2email-3.14-r2.ebuild 844 BLAKE2B d118c94b00b1f23cb49079ef33e74a4c176f6268e8c79ee1a56b0526df20653edcfaccab6a3bb8b073cc44e9926294d3cb06f91fdea5a36f69f4a74665c9cd07 SHA512 3b909f7b929d20044c0ab9e92ceae386a5b6cd7a84604543dc71d5fdbd58bab69adaca640999fbc382f97eefaf3a3927701e27d5da7345f915a3301045e60f4c
EBUILD rss2email-3.14.ebuild 797 BLAKE2B ff74c276c78cf92a3aa9102220690eee04381afd7efd56ecae2dee140f07885e93dd54fc3072366d1edeb56a307299a0365c172140a011c9085d14d9970f17f5 SHA512 9971e619bdecf76919194d31557156395f373a86f3842d635c10c9f53fd6ed7dde25660b8aadbf685fb5826e28b1c76ceb07b47fc1ccd0c975dfd05b278dc9b1
MISC metadata.xml 544 BLAKE2B 485a9c935ce4601b0db9258fa4e4e9c188d4613710a4ec3d2db5b4a461bf2e705779b4b997c308990b71dc07382cf1b90374d0ad25cff599253d04ca9bf3c30f SHA512 47efb52df32f412158d79f6cfe8d4fc13f6806944cae9350bbf53817d7dde6bfa021d831ff98440b9beffe3ab264f85aa77ca17c99f2568b55bd25e79efa58ae
diff --git a/net-mail/rss2email/files/rss2email-3.14-tests.patch b/net-mail/rss2email/files/rss2email-3.14-tests.patch
new file mode 100644
index 000000000000..b797f9d00d94
--- /dev/null
+++ b/net-mail/rss2email/files/rss2email-3.14-tests.patch
@@ -0,0 +1,24 @@
+From b5c0e78006c2db6929b5ff50e8529de58a00412a Mon Sep 17 00:00:00 2001
+From: auouymous <au@qzx.com>
+Date: Fri, 8 Mar 2024 15:50:04 -0700
+Subject: [PATCH] Replace a "c2 a0" utf-8 sequence in test feed with a space.
+
+This caused html2text >=2024.2.25 to produce a double space and break
+the tests.
+---
+ test/data/allthingsrss/feed.atom | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/data/allthingsrss/feed.atom b/test/data/allthingsrss/feed.atom
+index 074847b..0cf8c33 100644
+--- a/test/data/allthingsrss/feed.atom
++++ b/test/data/allthingsrss/feed.atom
+@@ -47,7 +47,7 @@
+ &lt;/ul&gt;
+ &lt;p&gt;Complete list in the official &lt;a href="http://www.allthingsrss.com/rss2email/changelog"&gt;CHANGELOG&lt;/a&gt;.&lt;/p&gt;
+ &lt;p&gt;&lt;strong&gt;Pause/Unpause&lt;/strong&gt;&lt;/p&gt;
+-&lt;p&gt;Through &lt;code&gt;r2e pause &lt;em&gt;n&lt;/em&gt;&lt;/code&gt; where &lt;em&gt;n&lt;/em&gt; is a feed number, you can temporarily suspend checking that feed for new content. To start checking it again, simply run &lt;code&gt;r2e unpause &lt;em&gt;n&lt;/em&gt;&lt;/code&gt;. When you &lt;code&gt;r2e list&lt;/code&gt;, an asterisk indicates that the feed is currently unpaused and active.&lt;/p&gt;
++&lt;p&gt;Through &lt;code&gt;r2e pause &lt;em&gt;n&lt;/em&gt;&lt;/code&gt; where &lt;em&gt;n&lt;/em&gt; is a feed number, you can temporarily suspend checking that feed for new content. To start checking it again, simply run &lt;code&gt;r2e unpause &lt;em&gt;n&lt;/em&gt;&lt;/code&gt;. When you &lt;code&gt;r2e list&lt;/code&gt;, an asterisk indicates that the feed is currently unpaused and active.&lt;/p&gt;
+
+ &lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nYgTsIUsS9pmvRZ6092XGGHnNKg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nYgTsIUsS9pmvRZ6092XGGHnNKg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
+ &lt;a href="http://feedads.g.doubleclick.net/~a/nYgTsIUsS9pmvRZ6092XGGHnNKg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nYgTsIUsS9pmvRZ6092XGGHnNKg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/allthingsrss/hJBr/~4/bT-I0iH2vw8" height="1" width="1"/&gt;</content>
diff --git a/net-mail/rss2email/rss2email-3.14-r2.ebuild b/net-mail/rss2email/rss2email-3.14-r2.ebuild
new file mode 100644
index 000000000000..1f055a148d50
--- /dev/null
+++ b/net-mail/rss2email/rss2email-3.14-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="A python script that converts RSS/Atom newsfeeds to email"
+HOMEPAGE="https://github.com/rss2email/rss2email"
+SRC_URI="https://github.com/rss2email/rss2email/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+RDEPEND=">=dev-python/feedparser-6.0.5[${PYTHON_USEDEP}]
+ >=dev-python/html2text-2020.1.16[${PYTHON_USEDEP}]
+ "
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tests.patch
+)
+
+distutils_enable_tests unittest
+
+src_install() {
+ distutils-r1_src_install
+ doman r2e.1
+}
+
+python_test() {
+ cd test/ || die # or the tests won't find their data
+ distutils-r1_python_test
+}