Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-news/liferea/, net-news/liferea/files/
Date: Tue, 27 Jun 2017 12:56:32
Message-Id: 1498568180.f76071ffeadfaaaa771cc1bb830f283acb5854b0.kensington@gentoo
1 commit: f76071ffeadfaaaa771cc1bb830f283acb5854b0
2 Author: Yuri Konotopov <ykonotopov <AT> gnome <DOT> org>
3 AuthorDate: Mon Jun 26 12:39:28 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 27 12:56:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76071ff
7
8 net-news/liferea: fixed external browser option.
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=622638
11
12 .../liferea/files/liferea-1.12_rc3-signal.patch | 66 +++++++++++++++++++
13 net-news/liferea/liferea-1.12_rc3-r1.ebuild | 74 ++++++++++++++++++++++
14 2 files changed, 140 insertions(+)
15
16 diff --git a/net-news/liferea/files/liferea-1.12_rc3-signal.patch b/net-news/liferea/files/liferea-1.12_rc3-signal.patch
17 new file mode 100644
18 index 00000000000..56fa5a8cce6
19 --- /dev/null
20 +++ b/net-news/liferea/files/liferea-1.12_rc3-signal.patch
21 @@ -0,0 +1,66 @@
22 +From b08641b21bdb590770e10bad873666aedf4ae306 Mon Sep 17 00:00:00 2001
23 +From: leiaz <leiaz@××××.fr>
24 +Date: Sun, 14 May 2017 20:08:39 +0200
25 +Subject: [PATCH] Fixes #500 Connects browser entry to callback
26 +
27 +Glade copy/paste doesn't copy the signals/callbacks part. I missed that
28 +one when updating the ui file.
29 +---
30 + glade/prefs.ui | 24 ++++++++++++++----------
31 + 1 file changed, 14 insertions(+), 10 deletions(-)
32 +
33 +diff --git a/glade/prefs.ui b/glade/prefs.ui
34 +index b5b97bac0..65d055986 100644
35 +--- a/glade/prefs.ui
36 ++++ b/glade/prefs.ui
37 +@@ -736,16 +736,6 @@
38 + </packing>
39 + </child>
40 + <child>
41 +- <object class="GtkComboBox" id="browserpopup">
42 +- <property name="visible">True</property>
43 +- <property name="can_focus">False</property>
44 +- </object>
45 +- <packing>
46 +- <property name="left_attach">1</property>
47 +- <property name="top_attach">1</property>
48 +- </packing>
49 +- </child>
50 +- <child>
51 + <object class="GtkLabel" id="manuallabel">
52 + <property name="visible">True</property>
53 + <property name="can_focus">False</property>
54 +@@ -765,6 +755,7 @@
55 + <property name="visible">True</property>
56 + <property name="can_focus">True</property>
57 + <property name="activates_default">True</property>
58 ++ <signal name="changed" handler="on_browsercmd_changed" swapped="no"/>
59 + </object>
60 + <packing>
61 + <property name="left_attach">1</property>
62 +@@ -787,6 +778,16 @@
63 + </packing>
64 + </child>
65 + <child>
66 ++ <object class="GtkComboBox" id="browserpopup">
67 ++ <property name="visible">True</property>
68 ++ <property name="can_focus">False</property>
69 ++ </object>
70 ++ <packing>
71 ++ <property name="left_attach">1</property>
72 ++ <property name="top_attach">1</property>
73 ++ </packing>
74 ++ </child>
75 ++ <child>
76 + <placeholder/>
77 + </child>
78 + </object>
79 +@@ -1422,5 +1423,8 @@
80 + <action-widgets>
81 + <action-widget response="-7">prefclosebtn</action-widget>
82 + </action-widgets>
83 ++ <child>
84 ++ <placeholder/>
85 ++ </child>
86 + </object>
87 + </interface>
88
89 diff --git a/net-news/liferea/liferea-1.12_rc3-r1.ebuild b/net-news/liferea/liferea-1.12_rc3-r1.ebuild
90 new file mode 100644
91 index 00000000000..5e51ec58054
92 --- /dev/null
93 +++ b/net-news/liferea/liferea-1.12_rc3-r1.ebuild
94 @@ -0,0 +1,74 @@
95 +# Copyright 1999-2017 Gentoo Foundation
96 +# Distributed under the terms of the GNU General Public License v2
97 +
98 +EAPI=6
99 +
100 +PYTHON_COMPAT=( python3_{4,5} )
101 +
102 +inherit autotools gnome2 pax-utils python-single-r1
103 +
104 +MY_P=${P/_/-}
105 +MY_PV=${PV/_/-}
106 +
107 +S=${WORKDIR}/${MY_P}
108 +
109 +DESCRIPTION="News Aggregator for RDF/RSS/CDF/Atom/Echo feeds"
110 +HOMEPAGE="https://lzone.de/liferea/"
111 +SRC_URI="https://github.com/lwindolf/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.bz2"
112 +
113 +LICENSE="GPL-2+"
114 +SLOT="0"
115 +KEYWORDS="~amd64 ~arm ~ppc ~x86"
116 +IUSE=""
117 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
118 +
119 +RDEPEND="${PYTHON_DEPS}
120 + >=dev-db/sqlite-3.7.0:3
121 + >=dev-libs/glib-2.28.0:2
122 + dev-libs/gobject-introspection
123 + dev-libs/json-glib
124 + >=dev-libs/libpeas-1.0.0[gtk,python,${PYTHON_USEDEP}]
125 + >=dev-libs/libxml2-2.6.27:2
126 + >=dev-libs/libxslt-1.1.19
127 + gnome-base/gsettings-desktop-schemas
128 + >=net-libs/libsoup-2.42:2.4
129 + net-libs/webkit-gtk:4
130 + x11-libs/gtk+:3
131 + >=x11-libs/pango-1.4.0"
132 +DEPEND="${RDEPEND}
133 + dev-util/intltool
134 + virtual/pkgconfig"
135 +
136 +S="${WORKDIR}"/${MY_P}
137 +
138 +PATCHES=(
139 + "${FILESDIR}/${P}-signal.patch"
140 +)
141 +
142 +src_prepare() {
143 + gnome2_src_prepare
144 +
145 + # gnome2_src_prepare calls elibtoolize
146 + if [ -f "${S}"/.elibtoolized ]; then
147 + local AT_NOELIBTOOLIZE="yes"
148 + fi
149 + eautoreconf
150 +}
151 +
152 +src_configure() {
153 + gnome2_src_configure --disable-schemas-compile
154 +}
155 +
156 +src_install() {
157 + gnome2_src_install
158 +
159 + # bug #338213
160 + # Uses webkit's JIT. Needs mmap('rwx') to generate code in runtime.
161 + # MPROTECT policy violation. Will sit here until webkit will
162 + # get optional JIT.
163 + pax-mark m "${D%/}"/usr/bin/liferea
164 +
165 + einfo "If you want to enhance the functionality of this package,"
166 + einfo "you should consider installing:"
167 + einfo " net-misc/networkmanager"
168 +}