1 |
commit: 1e3239c14bffae667b91d132c9734357c58c4e0e |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 26 10:15:35 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 26 10:15:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e3239c1 |
7 |
|
8 |
x11-plugins/pidgin-indicator: Add appindicator plugin for pidgin |
9 |
|
10 |
Since gnome-shell-extensions-topicons-plus is unmaintained for a long time |
11 |
and has no Gnome 40 support, this is the only way to still be able to manage |
12 |
pidgin from tray icon, relying on appindicator. |
13 |
|
14 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
15 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
16 |
|
17 |
x11-plugins/pidgin-indicator/Manifest | 1 + |
18 |
.../pidgin-indicator-1.0.1-appindicator3.patch | 22 +++++++++++ |
19 |
x11-plugins/pidgin-indicator/metadata.xml | 8 ++++ |
20 |
.../pidgin-indicator/pidgin-indicator-1.0.1.ebuild | 44 ++++++++++++++++++++++ |
21 |
4 files changed, 75 insertions(+) |
22 |
|
23 |
diff --git a/x11-plugins/pidgin-indicator/Manifest b/x11-plugins/pidgin-indicator/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000000..7f72b304951 |
26 |
--- /dev/null |
27 |
+++ b/x11-plugins/pidgin-indicator/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST pidgin-indicator-1.0.1.tar.bz2 311197 BLAKE2B 53c29c5c549f77caabbbbea69c447c2c092e063ee8d1a082507ec195ef7be45bf150e7831ff27c7759c79fc31ce289cd374fb7734f5171a9853e5fd37ac05bd3 SHA512 a39a285309242cfd121cff6aa6466cc2d6b4e37787cce87b9b7ed00a4147fee8ce2e9c6817212680c81b20b9c0bf7dac5d501861e6feffd8d0479a8293ad8201 |
30 |
|
31 |
diff --git a/x11-plugins/pidgin-indicator/files/pidgin-indicator-1.0.1-appindicator3.patch b/x11-plugins/pidgin-indicator/files/pidgin-indicator-1.0.1-appindicator3.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..436166fe399 |
34 |
--- /dev/null |
35 |
+++ b/x11-plugins/pidgin-indicator/files/pidgin-indicator-1.0.1-appindicator3.patch |
36 |
@@ -0,0 +1,22 @@ |
37 |
+From b0d26dd060475505f3c0a6369f4fbbd3c20d84b0 Mon Sep 17 00:00:00 2001 |
38 |
+From: =?UTF-8?q?Patrick=20H=C3=B6hn?= <hoehnp@××××××××××××××××××××.com> |
39 |
+Date: Fri, 7 Feb 2020 10:26:46 +0100 |
40 |
+Subject: [PATCH] Update configure.ac to make compatible with python3 |
41 |
+ |
42 |
+--- |
43 |
+ configure.ac | 2 +- |
44 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
45 |
+ |
46 |
+diff --git a/configure.ac b/configure.ac |
47 |
+index dfd8a1b..fefd90d 100644 |
48 |
+--- a/configure.ac |
49 |
++++ b/configure.ac |
50 |
+@@ -96,7 +96,7 @@ PKG_CHECK_MODULES(GTK, [gtk+-2.0]) |
51 |
+ AC_SUBST(GTK_LIBS) |
52 |
+ AC_SUBST(GTK_CFLAGS) |
53 |
+ |
54 |
+-PKG_CHECK_MODULES(INDICATOR, [appindicator-0.1]) |
55 |
++PKG_CHECK_MODULES(INDICATOR, [appindicator3-0.1]) |
56 |
+ AC_SUBST(INDICATOR_LIBS) |
57 |
+ AC_SUBST(INDICATOR_CFLAGS) |
58 |
+ |
59 |
|
60 |
diff --git a/x11-plugins/pidgin-indicator/metadata.xml b/x11-plugins/pidgin-indicator/metadata.xml |
61 |
new file mode 100644 |
62 |
index 00000000000..5e1cee9e7c1 |
63 |
--- /dev/null |
64 |
+++ b/x11-plugins/pidgin-indicator/metadata.xml |
65 |
@@ -0,0 +1,8 @@ |
66 |
+<?xml version="1.0" encoding="UTF-8"?> |
67 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
68 |
+<pkgmetadata> |
69 |
+<maintainer type="person"> |
70 |
+ <email>pacho@g.o</email> |
71 |
+ <name>Pacho Ramos</name> |
72 |
+</maintainer> |
73 |
+</pkgmetadata> |
74 |
|
75 |
diff --git a/x11-plugins/pidgin-indicator/pidgin-indicator-1.0.1.ebuild b/x11-plugins/pidgin-indicator/pidgin-indicator-1.0.1.ebuild |
76 |
new file mode 100644 |
77 |
index 00000000000..f3f67ac2bc9 |
78 |
--- /dev/null |
79 |
+++ b/x11-plugins/pidgin-indicator/pidgin-indicator-1.0.1.ebuild |
80 |
@@ -0,0 +1,44 @@ |
81 |
+# Copyright 1999-2021 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=7 |
85 |
+inherit autotools |
86 |
+ |
87 |
+DESCRIPTION="AppIndicator/KStatusNotifierItem plugin for Pidgin" |
88 |
+HOMEPAGE="https://github.com/philipl/pidgin-indicator" |
89 |
+SRC_URI="https://github.com/philipl/pidgin-indicator/releases/download/${PV}/${P}.tar.bz2" |
90 |
+ |
91 |
+LICENSE="GPL-2+" |
92 |
+SLOT="0" |
93 |
+KEYWORDS="~amd64" |
94 |
+IUSE="" |
95 |
+ |
96 |
+# No direct gtk3 until pidgin migrates: |
97 |
+# https://github.com/philipl/pidgin-indicator/issues/32 |
98 |
+RDEPEND=" |
99 |
+ dev-libs/libappindicator:3 |
100 |
+ net-im/pidgin[gtk] |
101 |
+ x11-libs/gtk+:2 |
102 |
+" |
103 |
+DEPEND="${RDEPEND} |
104 |
+ dev-perl/XML-Parser |
105 |
+" |
106 |
+BDEPEND=" |
107 |
+ dev-util/intltool |
108 |
+ sys-devel/gettext |
109 |
+ virtual/pkgconfig |
110 |
+" |
111 |
+ |
112 |
+PATCHES=( |
113 |
+ "${FILESDIR}/${P}-appindicator3.patch" |
114 |
+) |
115 |
+ |
116 |
+src_prepare() { |
117 |
+ default |
118 |
+ eautoreconf |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ default |
123 |
+ find "${D}" -name '*.la' -delete || die "Pruning failed" |
124 |
+} |