Gentoo Archives: gentoo-commits

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