Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/cinnamon-control-center/files/, gnome-extra/cinnamon-control-center/
Date: Tue, 03 May 2022 03:34:35
Message-Id: 1651548826.a5f06a4b8a63dcb51935678be595fd1b3ae05517.sam@gentoo
1 commit: a5f06a4b8a63dcb51935678be595fd1b3ae05517
2 Author: Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com>
3 AuthorDate: Tue May 3 03:18:24 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 03:33:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5f06a4b
7
8 gnome-extra/cinnamon-control-center: Fix libnma dependency
9
10 Closes: https://bugs.gentoo.org/840317
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 .../cinnamon-control-center-5.2.1-r1.ebuild | 105 +++++++++++++++++++++
16 .../cinnamon-control-center-5.2.1-fix-libnma.patch | 58 ++++++++++++
17 2 files changed, 163 insertions(+)
18
19 diff --git a/gnome-extra/cinnamon-control-center/cinnamon-control-center-5.2.1-r1.ebuild b/gnome-extra/cinnamon-control-center/cinnamon-control-center-5.2.1-r1.ebuild
20 new file mode 100644
21 index 000000000000..27ee0069d477
22 --- /dev/null
23 +++ b/gnome-extra/cinnamon-control-center/cinnamon-control-center-5.2.1-r1.ebuild
24 @@ -0,0 +1,105 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +PYTHON_COMPAT=( python3_{7,8,9,10} )
31 +
32 +inherit meson gnome2-utils python-any-r1 xdg virtualx
33 +
34 +DESCRIPTION="Cinnamons's main interface to configure various aspects of the desktop"
35 +HOMEPAGE="https://projects.linuxmint.com/cinnamon/ https://github.com/linuxmint/cinnamon-control-center"
36 +SRC_URI="https://github.com/linuxmint/cinnamon-control-center/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="GPL-2+"
39 +SLOT="0"
40 +IUSE="+colord input_devices_wacom +networkmanager +modemmanager gnome-online-accounts systemd test"
41 +REQUIRED_USE="modemmanager? ( networkmanager )"
42 +KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
43 +RESTRICT="test"
44 +
45 +COMMON_DEPEND="
46 + >=dev-libs/glib-2.44.0:2
47 + >=gnome-base/libgnomekbd-3.0.0:0=
48 + >=gnome-extra/cinnamon-desktop-5.2:0=
49 + >=gnome-extra/cinnamon-menus-5.2:0=
50 + media-libs/fontconfig
51 + >=sys-auth/polkit-0.103
52 + >=x11-libs/gdk-pixbuf-2.23.0:2
53 + >=x11-libs/gtk+-3.16.0:3
54 + >=x11-libs/libnotify-0.7.3:0=
55 + x11-libs/libX11
56 + >=x11-libs/libxklavier-5.1
57 +
58 + colord? ( >=x11-misc/colord-0.1.14:0= )
59 + input_devices_wacom? (
60 + >=dev-libs/libwacom-0.7
61 + >=gnome-extra/cinnamon-settings-daemon-5.2:0=
62 + >=x11-libs/libXi-1.2 )
63 + networkmanager? (
64 + >=gnome-extra/nm-applet-1.2.0
65 + >=net-libs/libnma-1.8.34
66 + >=net-misc/networkmanager-1.2.0:=[modemmanager?]
67 +
68 + modemmanager? ( >=net-misc/modemmanager-0.7 )
69 + )
70 + gnome-online-accounts? (
71 + >=net-libs/gnome-online-accounts-3.18.0
72 + )
73 +"
74 +RDEPEND="
75 + ${COMMON_DEPEND}
76 + x11-themes/adwaita-icon-theme
77 +
78 + colord? ( >=gnome-extra/gnome-color-manager-3 )
79 + input_devices_wacom? ( gnome-extra/cinnamon-settings-daemon[input_devices_wacom] )
80 + systemd? ( >=sys-apps/systemd-31 )
81 + !systemd? ( app-admin/openrc-settingsd )
82 +"
83 +DEPEND="
84 + ${COMMON_DEPEND}
85 + app-text/iso-codes
86 + x11-base/xorg-proto
87 +"
88 +BDEPEND="
89 + ${PYTHON_DEPS}
90 + dev-util/glib-utils
91 + >=sys-devel/gettext-0.17
92 + virtual/pkgconfig
93 +"
94 +
95 +PATCHES=(
96 + # Fix >=libnma-1.8.34
97 + # https://github.com/linuxmint/cinnamon-control-center/commit/0f4d212874c4fbee18b860963d0a5c7bd54dcfd1
98 + "${FILESDIR}"/${PN}-5.2.1-fix-libnma.patch
99 +)
100 +
101 +src_prepare() {
102 + default
103 + python_fix_shebang meson_install_schemas.py
104 +}
105 +
106 +src_configure() {
107 + local emesonargs=(
108 + $(meson_use colord color)
109 + $(meson_use modemmanager)
110 + $(meson_use networkmanager)
111 + $(meson_use gnome-online-accounts onlineaccounts)
112 + $(meson_use input_devices_wacom wacom)
113 + )
114 + meson_src_configure
115 +}
116 +
117 +src_test() {
118 + virtx meson_src_test
119 +}
120 +
121 +pkg_postinst() {
122 + xdg_pkg_postinst
123 + gnome2_schemas_update
124 +}
125 +
126 +pkg_postrm() {
127 + xdg_pkg_postinst
128 + gnome2_schemas_update
129 +}
130
131 diff --git a/gnome-extra/cinnamon-control-center/files/cinnamon-control-center-5.2.1-fix-libnma.patch b/gnome-extra/cinnamon-control-center/files/cinnamon-control-center-5.2.1-fix-libnma.patch
132 new file mode 100644
133 index 000000000000..116c9a3058d3
134 --- /dev/null
135 +++ b/gnome-extra/cinnamon-control-center/files/cinnamon-control-center-5.2.1-fix-libnma.patch
136 @@ -0,0 +1,58 @@
137 +From 0f4d212874c4fbee18b860963d0a5c7bd54dcfd1 Mon Sep 17 00:00:00 2001
138 +From: Michael Webster <miketwebster@×××××.com>
139 +Date: Mon, 31 Jan 2022 08:56:28 -0500
140 +Subject: [PATCH] network: Remove old workaround for openvpn widgets.
141 +
142 +I can't reproduce the original issue anymore, and NMACertChooser
143 +is removed in network-manager-openvpn 1.8.34.
144 +
145 +Fixes #10616
146 +
147 +ref:
148 +6db4961fd3a002182984d0e71ec364c9befdd93b
149 +---
150 + meson.build | 2 --
151 + panels/network/cc-network-panel.c | 10 ----------
152 + 2 files changed, 12 deletions(-)
153 +
154 +diff --git a/meson.build b/meson.build
155 +index f1f213b..c4d7d86 100644
156 +--- a/meson.build
157 ++++ b/meson.build
158 +@@ -56,8 +56,6 @@ else
159 + libnma= dependency('', required: false)
160 + endif
161 +
162 +-config.set('HAVE_NMA_18', libnm.version().version_compare('>=1.8.0'))
163 +-
164 + if get_option('modemmanager')
165 + if not get_option('networkmanager')
166 + error('*** NetworkManager is required by ModemManager ***')
167 +diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
168 +index a4289de..d1925e4 100644
169 +--- a/panels/network/cc-network-panel.c
170 ++++ b/panels/network/cc-network-panel.c
171 +@@ -47,10 +47,6 @@
172 + #include <libmm-glib.h>
173 + #endif
174 +
175 +-#ifdef HAVE_NMA_18
176 +-#include <nma-cert-chooser.h>
177 +-#endif
178 +-
179 + CC_PANEL_REGISTER (CcNetworkPanel, cc_network_panel)
180 +
181 + #define NETWORK_PANEL_PRIVATE(o) \
182 +@@ -1244,12 +1240,6 @@ cc_network_panel_init (CcNetworkPanel *panel)
183 + return;
184 + }
185 +
186 +-#ifdef HAVE_NMA_18
187 +- /* some newer VPN plugins pre-require internal resources from libnma */
188 +- /* this solution is really ugly, but works clean */
189 +- gtk_widget_destroy (nma_cert_chooser_new ("dummy", NMA_CERT_CHOOSER_FLAG_NONE));
190 +-#endif
191 +-
192 + panel->priv->cancellable = g_cancellable_new ();
193 +
194 + panel->priv->treeview = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,