Gentoo Archives: gentoo-proxy-maint

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-proxy-maint@l.g.o
Subject: [gentoo-proxy-maint] [PATCH 1/3] net-news/rssguard: add 4.0.1
Date: Tue, 07 Sep 2021 18:08:37
Message-Id: 20210907180809.29617-1-cyber+gentoo@sysrq.in
1 Description is updated to match appdata.xml
2
3 Signed-off-by: Anna Vyalkova <cyber+gentoo@×××××.in>
4 ---
5 net-news/rssguard/Manifest | 1 +
6 net-news/rssguard/metadata.xml | 24 +++++---
7 net-news/rssguard/rssguard-4.0.1.ebuild | 75 +++++++++++++++++++++++++
8 3 files changed, 93 insertions(+), 7 deletions(-)
9 create mode 100644 net-news/rssguard/rssguard-4.0.1.ebuild
10
11 diff --git a/net-news/rssguard/Manifest b/net-news/rssguard/Manifest
12 index 5fc84d10ce1..d683aad7ce4 100644
13 --- a/net-news/rssguard/Manifest
14 +++ b/net-news/rssguard/Manifest
15 @@ -1,2 +1,3 @@
16 DIST rssguard-3.8.3.tar.gz 9865909 BLAKE2B 7afc9dd0cec9ff58164c341f8cb3c6f31608da958a9c64f8099d9ba645cf7bbdaaa76accb3877943eefeb71b9172a13fa43c0ced7d58c6f368cc164e40a5ab39 SHA512 d7c1d18981177880d93bfaf4a87769638804058609f68b8c42db376c4a0e56230b57a29f70054deb30e02634cfa64355ecfe658b5f961a516b990af91c6f3ba8
17 DIST rssguard-3.9.2.tar.gz 13607587 BLAKE2B 45b3dd406e64bb13a19580255971b0d5eb1fd90d70d8559c736366af7792e7fc0627ee254dce79936ce6a179399271958b7795279a359306e345ec086081fc37 SHA512 30d2524f4ca42d903a047fe39de925268a1aac65192a8b1089b6ec0ec0a9dfef09c535fe391f750149063c06e3275b2632cc2ea2c24ded178760070abcea4958
18 +DIST rssguard-4.0.1.tar.gz 14417555 BLAKE2B 14689444eefefe0827d22a6886cd422fcbbbace83125fd28599fd17e2762d63f5e5d8b1b472de46282e7471d84195fb56594f9669bcd1432f595f354268241ad SHA512 1c791a85cf3b43737c5232dd4c63855bf8d6ad324c799d1abbfc0aa9392b0af3bfef6221d31b6ded5b512bec9c8ad82b2fbcd10330c7768420432363517709eb
19 diff --git a/net-news/rssguard/metadata.xml b/net-news/rssguard/metadata.xml
20 index 0728c0b6e44..b6c063572f3 100644
21 --- a/net-news/rssguard/metadata.xml
22 +++ b/net-news/rssguard/metadata.xml
23 @@ -1,11 +1,21 @@
24 <?xml version="1.0" encoding="UTF-8"?>
25 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 <pkgmetadata>
27 - <!-- maintainer-needed -->
28 - <upstream>
29 - <remote-id type="github">martinrotter/rssguard</remote-id>
30 - </upstream>
31 - <use>
32 - <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> for embedded web browser</flag>
33 - </use>
34 +<!-- maintainer-needed -->
35 +<upstream>
36 + <maintainer>
37 + <name>Martin Rotter</name>
38 + <email>rotter.martinos@×××××.com</email>
39 + </maintainer>
40 + <remote-id type="github">martinrotter/rssguard</remote-id>
41 + <bugs-to>https://github.com/martinrotter/rssguard/issues</bugs-to>
42 +</upstream>
43 +<use>
44 + <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> for embedded web browser</flag>
45 +</use>
46 +<longdescription>
47 + RSS Guard is simple (yet powerful) feed reader. It is able to fetch the
48 + most known feed formats, including RSS/RDF and ATOM. RSS Guard is
49 + developed on top of the Qt library.
50 +</longdescription>
51 </pkgmetadata>
52 diff --git a/net-news/rssguard/rssguard-4.0.1.ebuild b/net-news/rssguard/rssguard-4.0.1.ebuild
53 new file mode 100644
54 index 00000000000..d78e8192001
55 --- /dev/null
56 +++ b/net-news/rssguard/rssguard-4.0.1.ebuild
57 @@ -0,0 +1,75 @@
58 +# Copyright 1999-2021 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=8
62 +
63 +inherit flag-o-matic optfeature qmake-utils xdg
64 +
65 +DESCRIPTION="Simple (yet powerful) feed reader"
66 +HOMEPAGE="https://github.com/martinrotter/rssguard"
67 +SRC_URI="https://github.com/martinrotter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
68 +
69 +LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT MPL-2.0"
70 +SLOT="0"
71 +KEYWORDS="~amd64"
72 +IUSE="debug webengine"
73 +
74 +BDEPEND="dev-qt/linguist-tools:5"
75 +DEPEND="
76 + dev-qt/qtcore:5
77 + dev-qt/qtdbus:5
78 + dev-qt/qtdeclarative:5
79 + dev-qt/qtgui:5
80 + dev-qt/qtmultimedia:5
81 + dev-qt/qtnetwork:5[ssl]
82 + dev-qt/qtsql:5
83 + dev-qt/qtwidgets:5
84 + dev-qt/qtxml:5
85 + webengine? ( dev-qt/qtwebengine:5[widgets(+)] )
86 +"
87 +RDEPEND="${DEPEND}"
88 +
89 +DOCS=( README.md resources/docs/Documentation.md )
90 +
91 +pkg_pretend() {
92 + if [[ -n ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 4.0; then
93 + ewarn "RSS Guard 4.x is NOT backwards compatible with 3.x line."
94 + ewarn "You have to either export your feeds in OPML format or"
95 + ewarn "manually update your database.db file to 4.x.x format:"
96 + ewarn "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md#migrating-user-data-from-392-to-4xx"
97 + fi
98 +}
99 +
100 +src_prepare() {
101 + default
102 + sed -e 's:$$PREFIX/lib:$$PREFIX/'$(get_libdir)':' -i pri/install.pri || die
103 +}
104 +
105 +src_configure() {
106 + eqmake5_args=(
107 + CONFIG+=$(usex debug debug release)
108 + USE_WEBENGINE=$(usex webengine true false)
109 + PREFIX="${EPREFIX}"/usr
110 + INSTALL_ROOT=.
111 + )
112 +
113 + # https://github.com/martinrotter/rssguard/issues/156
114 + is-flagq "-flto*" && eqmake5_args+=( CONFIG+=ltcg )
115 +
116 + eqmake5 "${eqmake5_args[@]}"
117 +}
118 +
119 +src_install() {
120 + emake -j1 install INSTALL_ROOT="${D}"
121 + einstalldocs
122 +}
123 +
124 +pkg_postinst() {
125 + xdg_pkg_postinst
126 +
127 + if use webengine; then
128 + optfeature "ad blocking functionality" net-libs/nodejs[npm]
129 + elog "Adblocker module requires additional npm modules to be installed:"
130 + elog "npm i -g @cliqz/adblocker concat-stream tldts-experimental node-fetch"
131 + fi
132 +}
133 --
134 2.33.0

Replies

Subject Author
[gentoo-proxy-maint] [PATCH 2/3] net-news/rssguard: drop 3.8.3 Anna Vyalkova <cyber+gentoo@×××××.in>
[gentoo-proxy-maint] [PATCH 3/3] profiles: mask new rssguard (incompatible database) Anna Vyalkova <cyber+gentoo@×××××.in>