Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/liferea/
Date: Sun, 31 Oct 2021 02:48:35
Message-Id: 1635648501.46920e693a3f7fd9128b344a1f01bcd32cde89df.sam@gentoo
1 commit: 46920e693a3f7fd9128b344a1f01bcd32cde89df
2 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
3 AuthorDate: Sat Oct 30 10:50:11 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 02:48:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46920e69
7
8 net-news/liferea: add python 3.10 and use optfeature eclass
9
10 Closes: https://bugs.gentoo.org/818748
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Yuri Konotopov <ykonotopov <AT> gnome.org>
13 Closes: https://github.com/gentoo/gentoo/pull/22759
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-news/liferea/liferea-1.12.9-r2.ebuild | 74 +++++++++++++++++++++++++++++++
17 1 file changed, 74 insertions(+)
18
19 diff --git a/net-news/liferea/liferea-1.12.9-r2.ebuild b/net-news/liferea/liferea-1.12.9-r2.ebuild
20 new file mode 100644
21 index 00000000000..6788102f8dc
22 --- /dev/null
23 +++ b/net-news/liferea/liferea-1.12.9-r2.ebuild
24 @@ -0,0 +1,74 @@
25 +# Copyright 1999-2021 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +PYTHON_COMPAT=( python3_{8..10} )
31 +
32 +inherit autotools gnome2-utils optfeature python-single-r1 xdg
33 +
34 +DESCRIPTION="News Aggregator for RDF/RSS/CDF/Atom/Echo feeds"
35 +HOMEPAGE="https://lzone.de/liferea/"
36 +SRC_URI="https://github.com/lwindolf/${PN}/releases/download/v${PV}/${P}.tar.bz2"
37 +
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
41 +IUSE=""
42 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
43 +
44 +RDEPEND="${PYTHON_DEPS}
45 + dev-db/sqlite:3
46 + dev-libs/glib:2
47 + dev-libs/gobject-introspection
48 + dev-libs/json-glib
49 + dev-libs/libpeas[gtk,python,${PYTHON_SINGLE_USEDEP}]
50 + dev-libs/libxml2:2
51 + dev-libs/libxslt
52 + gnome-base/gsettings-desktop-schemas
53 + net-libs/libsoup:2.4
54 + net-libs/webkit-gtk:4
55 + x11-libs/gtk+:3
56 + x11-libs/pango"
57 +DEPEND="${RDEPEND}"
58 +BDEPEND="dev-util/intltool
59 + virtual/pkgconfig"
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${P}-webkit-css.patch
63 +)
64 +
65 +src_prepare() {
66 + xdg_src_prepare
67 +
68 + sed -i -e 's#$(datadir)/appdata#$(datadir)/metainfo#g' \
69 + Makefile.am || die
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 + econf --disable-static
75 +}
76 +
77 +src_compile() {
78 + # Workaround crash in libwebkit2gtk-4.0.so
79 + # https://bugs.gentoo.org/704594
80 + WEBKIT_DISABLE_COMPOSITING_MODE=1 \
81 + default
82 +}
83 +
84 +src_install() {
85 + default
86 + find "${D}" -name '*.la' -delete || die
87 +}
88 +
89 +pkg_postinst() {
90 + xdg_pkg_postinst
91 + gnome2_schemas_update
92 +
93 + optfeature "Libsecret Support plugin" app-crypt/libsecret[introspection]
94 + optfeature "Tray Icon (GNOME Classic) plugin" "dev-python/pycairo x11-libs/gdk-pixbuf[introspection]"
95 + optfeature "Media Player plugin" media-libs/gstreamer[introspection]
96 + optfeature "monitoring network status" net-misc/networkmanager
97 + optfeature "Popup Notifications plugin" x11-libs/libnotify[introspection]
98 +}