Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/nautilus/, gnome-base/nautilus/files/
Date: Tue, 03 Mar 2020 22:20:53
Message-Id: 1583273957.94ca243228734271e0e93704fd50a1f5d0a5e1dd.leio@gentoo
1 commit: 94ca243228734271e0e93704fd50a1f5d0a5e1dd
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 3 22:19:07 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 3 22:19:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94ca2432
7
8 gnome-base/nautilus: bump to 3.34.2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 gnome-base/nautilus/Manifest | 1 +
14 .../nautilus/files/3.34.2-pango-1.42-compat.patch | 106 ++++++++++++++++++++
15 gnome-base/nautilus/nautilus-3.34.2.ebuild | 107 +++++++++++++++++++++
16 3 files changed, 214 insertions(+)
17
18 diff --git a/gnome-base/nautilus/Manifest b/gnome-base/nautilus/Manifest
19 index c27e9f9b5a9..5928b3e7fc0 100644
20 --- a/gnome-base/nautilus/Manifest
21 +++ b/gnome-base/nautilus/Manifest
22 @@ -1 +1,2 @@
23 DIST nautilus-3.32.3.tar.xz 3197820 BLAKE2B 28140210a855fe62faba4f0833067a81c4d8f71c0cc870ba4fdcc016754b01df003e45f636836f67cced8515aba8c8fb7922de788a14bfe0f0cc4518010aed5f SHA512 f19710f02bd91edb2d2f6cb8f46be6bebea3edfed14a07612444d5990533bafd032b604d65533727eb377b574d6bd4c82dbe11894d85ad254ee1473b683c4392
24 +DIST nautilus-3.34.2.tar.xz 3196976 BLAKE2B 38424061cb5591fc1df5824dd80e282637345bde148955c81632d4894153e10f3840389bb4e43dffe8c28f10eb6e64c1cc89f1bffdcf80fa581a5d47b7724dee SHA512 1a4e24fea3201f68b0316b95425bbc90078baa1ae7dccef2d2e48beda4007ecf2986254cde243d310c548e47a4693d84d1255654199649ce08429a99fb3a3a51
25
26 diff --git a/gnome-base/nautilus/files/3.34.2-pango-1.42-compat.patch b/gnome-base/nautilus/files/3.34.2-pango-1.42-compat.patch
27 new file mode 100644
28 index 00000000000..76ab1fb1c2e
29 --- /dev/null
30 +++ b/gnome-base/nautilus/files/3.34.2-pango-1.42-compat.patch
31 @@ -0,0 +1,106 @@
32 +From a9cd85a7bc045ae4b4661f0e6f9ece362a26c0c3 Mon Sep 17 00:00:00 2001
33 +From: Emmanuele Bassi <ebassi@×××××.org>
34 +Date: Wed, 27 Nov 2019 14:08:27 +0000
35 +Subject: [PATCH] Conditionally depend on Pango 1.44.4
36 +MIME-Version: 1.0
37 +Content-Type: text/plain; charset=UTF-8
38 +Content-Transfer-Encoding: 8bit
39 +
40 +We're using newly introduced Pango API, but we're not doing a version
41 +check on it. One option is to force a Pango ≥ 1.44.4 dependency; another
42 +is to do a compile time check and only use the new API if we're building
43 +against a new enough Pango.
44 +---
45 + src/nautilus-canvas-item.c | 14 +++++++++-----
46 + src/nautilus-view-icon-item-ui.c | 16 ++++++++++------
47 + 2 files changed, 19 insertions(+), 11 deletions(-)
48 +
49 +diff --git a/src/nautilus-canvas-item.c b/src/nautilus-canvas-item.c
50 +index 4d33d119b..5b5d3312f 100644
51 +--- a/src/nautilus-canvas-item.c
52 ++++ b/src/nautilus-canvas-item.c
53 +@@ -1381,14 +1381,12 @@ create_label_layout (NautilusCanvasItem *item,
54 + GString *str;
55 + char *zeroified_text;
56 + const char *p;
57 +- PangoAttrList *attr_list;
58 +
59 + canvas_item = EEL_CANVAS_ITEM (item);
60 +
61 + container = NAUTILUS_CANVAS_CONTAINER (canvas_item->canvas);
62 + context = gtk_widget_get_pango_context (GTK_WIDGET (canvas_item->canvas));
63 + layout = pango_layout_new (context);
64 +- attr_list = pango_attr_list_new ();
65 +
66 + zeroified_text = NULL;
67 +
68 +@@ -1417,8 +1415,15 @@ create_label_layout (NautilusCanvasItem *item,
69 + pango_layout_set_spacing (layout, LABEL_LINE_SPACING);
70 + pango_layout_set_wrap (layout, PANGO_WRAP_WORD_CHAR);
71 +
72 +- pango_attr_list_insert (attr_list, pango_attr_insert_hyphens_new (FALSE));
73 +- pango_layout_set_attributes (layout, attr_list);
74 ++#if PANGO_VERSION_CHECK (1, 44, 4)
75 ++ {
76 ++ PangoAttrList *attr_list = pango_attr_list_new ();
77 ++
78 ++ pango_attr_list_insert (attr_list, pango_attr_insert_hyphens_new (FALSE));
79 ++ pango_layout_set_attributes (layout, attr_list);
80 ++ pango_attr_list_unref (attr_list);
81 ++ }
82 ++#endif
83 +
84 + /* Create a font description */
85 + if (container->details->font)
86 +@@ -1432,7 +1437,6 @@ create_label_layout (NautilusCanvasItem *item,
87 + pango_layout_set_font_description (layout, desc);
88 + pango_font_description_free (desc);
89 + g_free (zeroified_text);
90 +- pango_attr_list_unref (attr_list);
91 +
92 + return layout;
93 + }
94 +diff --git a/src/nautilus-view-icon-item-ui.c b/src/nautilus-view-icon-item-ui.c
95 +index d192e28fa..837dc54a9 100644
96 +--- a/src/nautilus-view-icon-item-ui.c
97 ++++ b/src/nautilus-view-icon-item-ui.c
98 +@@ -128,7 +128,6 @@ constructed (GObject *object)
99 + GtkBox *container;
100 + GtkBox *item_selection_background;
101 + GtkLabel *label;
102 +- PangoAttrList *attr_list;
103 + GtkStyleContext *style_context;
104 + NautilusFile *file;
105 + guint icon_size;
106 +@@ -150,9 +149,16 @@ constructed (GObject *object)
107 +
108 + label = GTK_LABEL (gtk_label_new (nautilus_file_get_display_name (file)));
109 + gtk_widget_show (GTK_WIDGET (label));
110 +- attr_list = pango_attr_list_new ();
111 +- pango_attr_list_insert (attr_list, pango_attr_insert_hyphens_new (FALSE));
112 +- gtk_label_set_attributes (label, attr_list);
113 ++
114 ++#if PANGO_VERSION_CHECK (1, 44, 4)
115 ++ {
116 ++ PangoAttrList *attr_list = pango_attr_list_new ();
117 ++ pango_attr_list_insert (attr_list, pango_attr_insert_hyphens_new (FALSE));
118 ++ gtk_label_set_attributes (label, attr_list);
119 ++ pango_attr_list_unref (attr_list);
120 ++ }
121 ++#endif
122 ++
123 + gtk_label_set_ellipsize (label, PANGO_ELLIPSIZE_MIDDLE);
124 + gtk_label_set_line_wrap (label, TRUE);
125 + gtk_label_set_line_wrap_mode (label, PANGO_WRAP_WORD_CHAR);
126 +@@ -182,8 +188,6 @@ constructed (GObject *object)
127 + (GCallback) on_view_item_size_changed, self);
128 + g_signal_connect (self->model, "notify::file",
129 + (GCallback) on_view_item_file_changed, self);
130 +-
131 +- pango_attr_list_unref (attr_list);
132 + }
133 +
134 + static void
135 +--
136 +2.20.1
137 +
138
139 diff --git a/gnome-base/nautilus/nautilus-3.34.2.ebuild b/gnome-base/nautilus/nautilus-3.34.2.ebuild
140 new file mode 100644
141 index 00000000000..5678b21d825
142 --- /dev/null
143 +++ b/gnome-base/nautilus/nautilus-3.34.2.ebuild
144 @@ -0,0 +1,107 @@
145 +# Copyright 1999-2020 Gentoo Authors
146 +# Distributed under the terms of the GNU General Public License v2
147 +
148 +EAPI=7
149 +
150 +inherit gnome.org gnome2-utils meson readme.gentoo-r1 virtualx xdg
151 +
152 +DESCRIPTION="Default file manager for the GNOME desktop"
153 +HOMEPAGE="https://wiki.gnome.org/Apps/Nautilus"
154 +
155 +LICENSE="GPL-3+ LGPL-2.1+"
156 +SLOT="0"
157 +IUSE="gnome +gstreamer gtk-doc +introspection packagekit +previewer selinux sendto"
158 +
159 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
160 +
161 +DEPEND="
162 + >=dev-libs/glib-2.58.1:2
163 + >=media-libs/gexiv2-0.10.0
164 + gstreamer? ( media-libs/gstreamer:1.0
165 + media-libs/gst-plugins-base:1.0 )
166 + >=app-arch/gnome-autoar-0.2.1
167 + >=gnome-base/gnome-desktop-3.0.0:3=
168 + >=x11-libs/gtk+-3.22.27:3[X,introspection?]
169 + >=x11-libs/pango-1.28.3
170 + selinux? ( >=sys-libs/libselinux-2.0 )
171 + >=app-misc/tracker-2.0:=
172 + x11-libs/libX11
173 + >=dev-libs/libxml2-2.7.8:2
174 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
175 +"
176 +RDEPEND="${DEPEND}
177 + packagekit? ( app-admin/packagekit-base )
178 + sendto? ( !<gnome-extra/nautilus-sendto-3.0.1 )
179 + gstreamer? ( !<media-video/totem-3.31.91[nautilus] )
180 + >=app-misc/tracker-miners-2.0:=
181 +" # uses org.freedesktop.Tracker.Miner.Files gsettings schema from tracker-miners
182 +BDEPEND="
183 + >=dev-util/gdbus-codegen-2.51.2
184 + dev-util/glib-utils
185 + gtk-doc? (
186 + >=dev-util/gtk-doc-1.10
187 + app-text/docbook-xml-dtd:4.1.2 )
188 + >=sys-devel/gettext-0.19.8
189 + virtual/pkgconfig
190 + x11-base/xorg-proto
191 +"
192 +PDEPEND="
193 + gnome? ( x11-themes/adwaita-icon-theme )
194 + previewer? ( >=gnome-extra/sushi-0.1.9 )
195 + sendto? ( >=gnome-extra/nautilus-sendto-3.0.1 )
196 + >=gnome-base/gvfs-1.14[gtk(+)]
197 +" # Need gvfs[gtk] for recent:/// support; always built (without USE=gtk) since gvfs-1.34
198 +
199 +PATCHES=(
200 + "${FILESDIR}"/3.30.5-docs-build.patch # Always install pregenerated manpage, keeping docs option for gtk-doc
201 + "${FILESDIR}"/3.32.3-optional-gstreamer.patch # Allow controlling audio-video-properties build
202 + "${FILESDIR}"/${PV}-pango-1.42-compat.patch
203 +)
204 +
205 +src_prepare() {
206 + if use previewer; then
207 + DOC_CONTENTS="nautilus uses gnome-extra/sushi to preview media files.
208 + To activate the previewer, select a file and press space; to
209 + close the previewer, press space again."
210 + fi
211 + xdg_src_prepare
212 +}
213 +
214 +src_configure() {
215 + local emesonargs=(
216 + $(meson_use gtk-doc docs)
217 + -Dextensions=true # image file properties, sendto support; also required for -Dgstreamer=true
218 + $(meson_use gstreamer) # gstreamer audio-video-properties extension
219 + $(meson_use introspection)
220 + $(meson_use packagekit)
221 + $(meson_use selinux)
222 + -Dprofiling=false
223 + -Dtests=$(usex test all none)
224 + )
225 + meson_src_configure
226 +}
227 +
228 +src_install() {
229 + use previewer && readme.gentoo_create_doc
230 + meson_src_install
231 +}
232 +
233 +src_test() {
234 + virtx meson_src_test
235 +}
236 +
237 +pkg_postinst() {
238 + xdg_pkg_postinst
239 + gnome2_schemas_update
240 +
241 + if use previewer; then
242 + readme.gentoo_print_elog
243 + else
244 + elog "To preview media files, emerge nautilus with USE=previewer"
245 + fi
246 +}
247 +
248 +pkg_postrm() {
249 + xdg_pkg_postrm
250 + gnome2_schemas_update
251 +}