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: Wed, 19 Jan 2022 16:28:43
Message-Id: 1642609713.3deb7c21bc69924d265f184cab7fe8b71b3a3982.juippis@gentoo
1 commit: 3deb7c21bc69924d265f184cab7fe8b71b3a3982
2 Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Wed Jan 19 16:25:24 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 16:28:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3deb7c21
7
8 net-news/rssguard: add 4.1.2, drop 3.9.2
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 net-news/rssguard/Manifest | 2 +-
14 net-news/rssguard/rssguard-3.9.2.ebuild | 50 ------------------------
15 net-news/rssguard/rssguard-4.1.2.ebuild | 67 +++++++++++++++++++++++++++++++++
16 3 files changed, 68 insertions(+), 51 deletions(-)
17
18 diff --git a/net-news/rssguard/Manifest b/net-news/rssguard/Manifest
19 index e45d6f14dd1c..28e95e1fd39f 100644
20 --- a/net-news/rssguard/Manifest
21 +++ b/net-news/rssguard/Manifest
22 @@ -1,2 +1,2 @@
23 -DIST rssguard-3.9.2.tar.gz 13607587 BLAKE2B 45b3dd406e64bb13a19580255971b0d5eb1fd90d70d8559c736366af7792e7fc0627ee254dce79936ce6a179399271958b7795279a359306e345ec086081fc37 SHA512 30d2524f4ca42d903a047fe39de925268a1aac65192a8b1089b6ec0ec0a9dfef09c535fe391f750149063c06e3275b2632cc2ea2c24ded178760070abcea4958
24 DIST rssguard-4.0.4.tar.gz 14433147 BLAKE2B 6453d16cb440117c335d6773e675399ae4bee2d9226a2e920ffd1e10cc2d5025fc4c302357974352fad41f637aa33c3b66af2444d969f5e934d7432a16b7cb24 SHA512 8c69ec372a54e7e1ad4ff15476d2387fc84cd9d29c5031f9e5c18dcdf833781c54417101f252d23868eedc91262a9ac6446eb09104f5707b08fa92342d565481
25 +DIST rssguard-4.1.2.tar.gz 21716383 BLAKE2B 5c8da03cdc563799e569dd8c2170f28c5c627a0452a5d0eb325ebb7c88c352248b13624b46d26e94fe443ef1dd948bd281dedb8dcbb0546a984f56472ba0d216 SHA512 d02c6ec7ba6156b6a40e9ad929dc614b7e4aaeb8dfcfe9002e927a4c446908bcb5f299daa1fc67745fea6ebc4954e54a2c296542044a1b86ae98864d5f25bf39
26
27 diff --git a/net-news/rssguard/rssguard-3.9.2.ebuild b/net-news/rssguard/rssguard-3.9.2.ebuild
28 deleted file mode 100644
29 index 36a00b4c4bbb..000000000000
30 --- a/net-news/rssguard/rssguard-3.9.2.ebuild
31 +++ /dev/null
32 @@ -1,50 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit flag-o-matic qmake-utils xdg
39 -
40 -DESCRIPTION="Tiny RSS and Atom feed reader"
41 -HOMEPAGE="https://github.com/martinrotter/rssguard"
42 -SRC_URI="https://github.com/martinrotter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT"
45 -SLOT="0"
46 -KEYWORDS="~amd64"
47 -IUSE="debug webengine"
48 -
49 -BDEPEND="dev-qt/linguist-tools:5"
50 -DEPEND="
51 - dev-qt/qtconcurrent:5
52 - dev-qt/qtcore:5
53 - dev-qt/qtgui:5
54 - dev-qt/qtnetwork:5[ssl]
55 - dev-qt/qtsql:5
56 - dev-qt/qtwidgets:5
57 - dev-qt/qtxml:5
58 - dev-qt/qtdeclarative:5
59 - webengine? ( dev-qt/qtwebengine:5[widgets] )
60 -"
61 -RDEPEND="${DEPEND}"
62 -
63 -src_prepare() {
64 - default
65 -
66 - sed -e 's:lib.path = $$quote($$PREFIX/lib/):lib.path = $$quote($$PREFIX/'$(get_libdir)'/):' \
67 - -i pri/install.pri || die
68 -}
69 -
70 -src_configure() {
71 - # CONFIG+=ltcg is needed because of https://github.com/martinrotter/rssguard/issues/156
72 - eqmake5 \
73 - CONFIG+=$(usex debug debug release) \
74 - $(is-flagq -flto* && echo "CONFIG+=ltcg") \
75 - USE_WEBENGINE=$(usex webengine true false) \
76 - PREFIX="${EPREFIX}"/usr \
77 - INSTALL_ROOT=.
78 -}
79 -
80 -src_install() {
81 - emake -j1 install INSTALL_ROOT="${D}"
82 -}
83
84 diff --git a/net-news/rssguard/rssguard-4.1.2.ebuild b/net-news/rssguard/rssguard-4.1.2.ebuild
85 new file mode 100644
86 index 000000000000..9dcccc8acdbd
87 --- /dev/null
88 +++ b/net-news/rssguard/rssguard-4.1.2.ebuild
89 @@ -0,0 +1,67 @@
90 +# Copyright 1999-2022 Gentoo Authors
91 +# Distributed under the terms of the GNU General Public License v2
92 +
93 +EAPI=8
94 +
95 +QTMIN="5.9.0"
96 +inherit flag-o-matic optfeature qmake-utils xdg
97 +
98 +DESCRIPTION="Simple (yet powerful) feed reader"
99 +HOMEPAGE="https://github.com/martinrotter/rssguard"
100 +SRC_URI="https://github.com/martinrotter/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
101 +
102 +LICENSE="|| ( LGPL-3 GPL-2+ ) AGPL-3+ BSD GPL-3+ MIT"
103 +SLOT="0"
104 +KEYWORDS="~amd64"
105 +IUSE="debug webengine"
106 +
107 +BDEPEND=">=dev-qt/linguist-tools-${QTMIN}:5"
108 +DEPEND="
109 + >=dev-qt/qtcore-${QTMIN}:5
110 + >=dev-qt/qtdbus-${QTMIN}:5
111 + >=dev-qt/qtdeclarative-${QTMIN}:5
112 + >=dev-qt/qtgui-${QTMIN}:5
113 + >=dev-qt/qtmultimedia-${QTMIN}:5[gstreamer]
114 + >=dev-qt/qtnetwork-${QTMIN}:5[ssl]
115 + >=dev-qt/qtsql-${QTMIN}:5
116 + >=dev-qt/qtwidgets-${QTMIN}:5
117 + >=dev-qt/qtxml-${QTMIN}:5
118 + webengine? ( >=dev-qt/qtwebengine-${QTMIN}:5[widgets(+)] )
119 +"
120 +RDEPEND="${DEPEND}"
121 +
122 +DOCS=( README.md resources/docs/Documentation.md )
123 +
124 +src_prepare() {
125 + default
126 + sed -e 's:$$PREFIX/lib:$$PREFIX/'$(get_libdir)':' -i pri/install.pri || die
127 +}
128 +
129 +src_configure() {
130 + eqmake5_args=(
131 + CONFIG+=$(usex debug debug release)
132 + USE_WEBENGINE=$(usex webengine true false)
133 + PREFIX="${EPREFIX}"/usr
134 + INSTALL_ROOT=.
135 + )
136 +
137 + # https://github.com/martinrotter/rssguard/issues/156
138 + is-flagq "-flto*" && eqmake5_args+=( CONFIG+=ltcg )
139 +
140 + eqmake5 "${eqmake5_args[@]}"
141 +}
142 +
143 +src_install() {
144 + emake -j1 install INSTALL_ROOT="${D}"
145 + einstalldocs
146 +}
147 +
148 +pkg_postinst() {
149 + xdg_pkg_postinst
150 +
151 + if use webengine; then
152 + optfeature "ad blocking functionality" net-libs/nodejs[npm]
153 + elog "Adblocker module requires additional npm modules to be installed:"
154 + elog "npm i -g @cliqz/adblocker tldts-experimental"
155 + fi
156 +}