summaryrefslogtreecommitdiff
path: root/mate-extra
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-27 18:17:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-27 18:17:42 +0100
commitd198e0ebeee70707545d19ee3beb1de70802cc7c (patch)
treecc34c94525eccb3c19212de1316e86e7d187ac89 /mate-extra
parentc8e8719ce75120aeba1784b5edbe919b2e5e3dc3 (diff)
gentoo auto-resync : 27:04:2023 - 18:17:42
Diffstat (limited to 'mate-extra')
-rw-r--r--mate-extra/Manifest.gzbin2908 -> 2908 bytes
-rw-r--r--mate-extra/mate-polkit/Manifest2
-rw-r--r--mate-extra/mate-polkit/files/mate-polkit-1.26.0-ayatana.patch176
-rw-r--r--mate-extra/mate-polkit/mate-polkit-1.26.0-r1.ebuild46
4 files changed, 224 insertions, 0 deletions
diff --git a/mate-extra/Manifest.gz b/mate-extra/Manifest.gz
index c09e39664112..19bd95641481 100644
--- a/mate-extra/Manifest.gz
+++ b/mate-extra/Manifest.gz
Binary files differ
diff --git a/mate-extra/mate-polkit/Manifest b/mate-extra/mate-polkit/Manifest
index a6abc01dbb2d..f9160d71d5b0 100644
--- a/mate-extra/mate-polkit/Manifest
+++ b/mate-extra/mate-polkit/Manifest
@@ -1,3 +1,5 @@
+AUX mate-polkit-1.26.0-ayatana.patch 6764 BLAKE2B 351a5f347c685f610ba1fb0ef746be0c3ce1d59d6dc039421929f20f6ca658c0d2a236e0825b9ff9f148405c573f0aa186109c0485e0434d760f0bd5d8266e5e SHA512 0db50fabc09129db71a7c196e10017704a9fef8808c4d45ccd427384c4f3012e486a56cac587ea4c10df2ac3c2af6ba30bbbdf27234edb2c616e029b57fe48ec
DIST mate-polkit-1.26.0.tar.xz 335768 BLAKE2B 15b1fd38efcb157802ff96f09879a8790d6a8356d6fe75f833bcd4b9f088e30b019a7e0739d48000aed4a7d9b5634727c2176ce7b725d82431118c7da4e04f04 SHA512 393a8a0a9567ec75762dcd1e776a1544756f4b9b88b8bbb4f6d1ed87dcc25c30025e27d6f4e18c04c79f5f02152490f577fb89c758ce042dc466a387d9202e0f
+EBUILD mate-polkit-1.26.0-r1.ebuild 1051 BLAKE2B 6acd75838dd42e24f3e53b89cb1fcf6c743cd04f6bd05e05837755fe88ebc847e46d723b43c9d0dbbd0428b9239fdf9c6cedc165aa9063c2e903d4f802300c06 SHA512 e9751a0089f206f348699b847e26167dd9adbf0320752e8a3f0339f23713d9abf8d5c5e2bbb30d7367968c8da3625d7c2161c27745613bd34eaf7300e40c1180
EBUILD mate-polkit-1.26.0.ebuild 901 BLAKE2B a947d917cebeb76616a843447e00919c31a39bcea9a2c0e3468358d44c386a98f915ac931559dc023ee23cec66e5714ea8ccb77d0e4c044b502439d87be01966 SHA512 9f3b0a55bb9cff906cd18ac135579c0f31b4664c519213a39e81e5cb3673c985f22c33af6afe18d3ea55bfa794c62ef3400c6156a5559e7b433b994716dfb53a
MISC metadata.xml 442 BLAKE2B 02aa1b8e6c0782e8ade7f38e2af219dcdc8b92036d439abd16d6fefc9f255ac473cee15b620766e1ba29ce21236aa3643910cdac58bb26e8301db4d173afd9bd SHA512 6fe20a514c55f283b0921ecafed0a4fe7f1cc8d71bb2a65f47caae34ef9cd34a859aeb41ef70eb8e5b370c7a636a70b35c787568d4526bda77370dbb1b776be7
diff --git a/mate-extra/mate-polkit/files/mate-polkit-1.26.0-ayatana.patch b/mate-extra/mate-polkit/files/mate-polkit-1.26.0-ayatana.patch
new file mode 100644
index 000000000000..edd91c2a1111
--- /dev/null
+++ b/mate-extra/mate-polkit/files/mate-polkit-1.26.0-ayatana.patch
@@ -0,0 +1,176 @@
+From 65a6c367e28e338dc74931dece1af9e53338276f Mon Sep 17 00:00:00 2001
+From: lukefromdc <lukefromdc@hushmail.com>
+Date: Tue, 31 Jan 2023 01:25:20 -0500
+Subject: [PATCH] Prefer building against Ayatana AppIndicator, but also
+ support legacy Ubuntu Appindicator
+
+---
+ configure.ac | 54 +++++++++++++++++++++++++++++++++++--------------
+ src/Makefile.am | 6 ++++--
+ src/main.c | 15 +++++++-------
+ 3 files changed, 51 insertions(+), 24 deletions(-)
+
+--- a/configure.ac.old 2023-04-27 16:48:35.940816452 +0200
++++ b/configure.ac 2023-04-27 16:52:21.303890924 +0200
+@@ -111,8 +111,17 @@
+
+ AM_CONDITIONAL([HAVE_ACCOUNTSSERVICE], [test "x$enable_accountsservice" = xyes])
+
+-# Application indicator
+-APPINDICATOR_PKG=appindicator3-0.1
++# Application Indicator (Ubuntu and Ayatana implementation)
++
++AYATANA_APPINDICATOR_PKG=ayatana-appindicator3-0.1
++UBUNTU_APPINDICATOR_PKG=appindicator3-0.1
++
++PKG_CHECK_EXISTS($AYATANA_APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED,
++ [have_appindicator_ayatana="yes"],
++ [have_appindicator_ayatana="no"])
++PKG_CHECK_EXISTS($UBUNTU_APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED,
++ [have_appindicator_ubuntu="yes"],
++ [have_appindicator_ubuntu="no"])
+
+ AC_ARG_ENABLE([appindicator],
+ AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators]),
+@@ -120,22 +129,33 @@
+ [enable_appindicator="auto"])
+
+
+-if test "x$enable_appindicator" = "xauto"; then
+- PKG_CHECK_EXISTS($APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED,
+- [enable_appindicator="yes"],
+- [enable_appindicator="no"])
++if test "x$enable_appindicator" == "xauto" &&
++ (test "x$have_appindicator_ayatana" == "xyes" ||
++ test "x$have_appindicator_ubuntu" == "xyes"); then
++ AC_MSG_NOTICE([Enabling AppIndicator support (as --enable-appindicator=auto was used).])
++ enable_appindicator="yes"
+ fi
+
+-if test "x$enable_appindicator" = "xyes"; then
+- PKG_CHECK_MODULES(APPINDICATOR,
+- [$APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED],
+- [AC_DEFINE(HAVE_APPINDICATOR, 1, [Have AppIndicator])])
++if test "x$enable_appindicator" == "xyes"; then
++ if test "x$have_appindicator_ayatana" == "xyes"; then
++ AC_MSG_NOTICE([Buidling against Ayatana AppIndicator.])
++ PKG_CHECK_MODULES(AYATANA_APPINDICATOR,
++ [$AYATANA_APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED],
++ [AC_DEFINE(HAVE_AYATANA_APPINDICATOR, 1, [Have Ayatana AppIndicator])])
++ AC_SUBST(AYATANA_APPINDICATOR_CFLAGS)
++ AC_SUBST(AYATANA_APPINDICATOR_LIBS)
++ elif test "x$have_appindicator_ubuntu" == "xyes"; then
++ AC_MSG_NOTICE([Buidling against Ubuntu AppIndicator.])
++ PKG_CHECK_MODULES(UBUNTU_APPINDICATOR,
++ [$UBUNTU_APPINDICATOR_PKG >= $APPINDICATOR_REQUIRED],
++ [AC_DEFINE(HAVE_UBUNTU_APPINDICATOR, 1, [Have Ubuntu AppIndicator])])
++ AC_SUBST(UBUNTU_APPINDICATOR_CFLAGS)
++ AC_SUBST(UBUNTU_APPINDICATOR_LIBS)
++ else
++ AC_MSG_ERROR([Neither Ayatana AppIndicator nor Ubuntu AppIndicator library is present, but you enabled AppIndicator support.])
++ fi
+ fi
+
+-AM_CONDITIONAL(HAVE_APPINDICATOR, test "x$enable_appindicator" = "xyes")
+-AC_SUBST(APPINDICATOR_CFLAGS)
+-AC_SUBST(APPINDICATOR_LIBS)
+-
+ # ********************
+ # Internationalisation
+ # ********************
+@@ -181,6 +201,10 @@
+ Warning flags: ${WARN_CFLAGS}
+
+ Accountsservice: ${enable_accountsservice}
+- Application indicator: ${enable_appindicator}
++
++ AppIndicator enabled: ${enable_appindicator}
++ Ayatana AppIndicator (preferred) ${have_appindicator_ayatana}
++ Ubuntu AppIndicator (legacy) ${have_appindicator_ubuntu}
++
+ Maintainer mode: ${USE_MAINTAINER_MODE}
+ "
+diff --git a/src/Makefile.am b/src/Makefile.am
+index a534d1e..5f7ead8 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -35,7 +35,8 @@ polkit_mate_authentication_agent_1_CFLAGS = \
+ $(GLIB_CFLAGS) \
+ $(POLKIT_AGENT_CFLAGS) \
+ $(POLKIT_GOBJECT_CFLAGS) \
+- $(APPINDICATOR_CFLAGS) \
++ $(AYATANA_APPINDICATOR_CFLAGS) \
++ $(UBUNTU_APPINDICATOR_CFLAGS) \
+ $(WARN_CFLAGS) \
+ $(AM_CFLAGS)
+
+@@ -47,7 +48,8 @@ polkit_mate_authentication_agent_1_LDADD = \
+ $(GLIB_LIBS) \
+ $(POLKIT_AGENT_LIBS) \
+ $(POLKIT_GOBJECT_LIBS) \
+- $(APPINDICATOR_LIBS)
++ $(AYATANA_APPINDICATOR_LIBS) \
++ $(UBUNTU_APPINDICATOR_LIBS)
+
+ EXTRA_DIST = \
+ polkit-mate-authentication-agent-1.desktop.in \
+diff --git a/src/main.c b/src/main.c
+index 8c5f437..d60cd8f 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -1,6 +1,5 @@
+ /*
+ * Copyright (C) 2009 Red Hat, Inc.
+- * Copyright (C) 2012-2021 MATE Developers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+@@ -30,8 +29,10 @@
+ #include <glib/gi18n.h>
+ #include <polkitagent/polkitagent.h>
+
+-#ifdef HAVE_APPINDICATOR
+-#include <libappindicator/app-indicator.h>
++#if defined(HAVE_AYATANA_APPINDICATOR)
++# include <libayatana-appindicator/app-indicator.h>
++#elif defined(HAVE_UBUNTU_APPINDICATOR)
++# include <libappindicator/app-indicator.h>
+ #endif
+
+ #include "polkitmatelistener.h"
+@@ -51,7 +52,7 @@ static PolkitSubject *session = NULL;
+ /* the current set of temporary authorizations */
+ static GList *current_temporary_authorizations = NULL;
+
+-#ifdef HAVE_APPINDICATOR
++#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)
+ static AppIndicator *app_indicator = NULL;
+ #else
+ static GtkStatusIcon *status_icon = NULL;
+@@ -90,7 +91,7 @@ revoke_tmp_authz (void)
+ NULL);
+ }
+
+-#ifdef HAVE_APPINDICATOR
++#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)
+ static void
+ on_menu_item_activate (GtkMenuItem *menu_item,
+ gpointer user_data)
+@@ -151,7 +152,7 @@ update_temporary_authorization_icon_real (void)
+ if (current_temporary_authorizations != NULL)
+ {
+ /* show icon */
+-#ifdef HAVE_APPINDICATOR
++#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)
+ if (app_indicator == NULL)
+ {
+ GtkWidget *item, *menu;
+@@ -199,7 +200,7 @@ update_temporary_authorization_icon_real (void)
+ else
+ {
+ /* hide icon */
+-#ifdef HAVE_APPINDICATOR
++#if defined(HAVE_AYATANA_APPINDICATOR) || defined(HAVE_UBUNTU_APPINDICATOR)
+ if (app_indicator != NULL)
+ {
+ /* keep the app_indicator, hide the icon or it won't come back*/
diff --git a/mate-extra/mate-polkit/mate-polkit-1.26.0-r1.ebuild b/mate-extra/mate-polkit/mate-polkit-1.26.0-r1.ebuild
new file mode 100644
index 000000000000..720be36f5713
--- /dev/null
+++ b/mate-extra/mate-polkit/mate-polkit-1.26.0-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit mate
+
+if [[ ${PV} != 9999 ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
+fi
+
+DESCRIPTION="A MATE specific DBUS service that is used to bring up authentication dialogs"
+LICENSE="LGPL-2"
+SLOT="0"
+
+IUSE="accountsservice appindicator"
+
+COMMON_DEPEND="x11-libs/gdk-pixbuf:2
+ virtual/libintl:0
+ >=x11-libs/gtk+-3.22.0:3
+ appindicator? ( dev-libs/libayatana-appindicator )"
+
+RDEPEND="${COMMON_DEPEND}
+ >=dev-libs/glib-2.50:2
+ >=sys-auth/polkit-0.102
+ accountsservice? ( sys-apps/accountsservice )"
+
+BDEPEND="${COMMON_DEPEND}
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am
+ >=dev-util/intltool-0.35
+ sys-devel/gettext
+ >=sys-devel/libtool-2.2.6
+ virtual/pkgconfig"
+
+PATCHES=(
+ # https://github.com/mate-desktop/mate-polkit/commit/65a6c367e28e338dc74931dece1af9e53338276f
+ "${FILESDIR}/${P}-ayatana.patch"
+)
+
+src_configure() {
+ mate_src_configure \
+ --disable-static \
+ $(use_enable accountsservice) \
+ $(use_enable appindicator)
+}