Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/slack-bin/
Date: Fri, 09 Feb 2018 09:33:07
Message-Id: 1518168763.0be003699372b4da0912aa7a6ab97ec9d03b65e7.mgorny@gentoo
1 commit: 0be003699372b4da0912aa7a6ab97ec9d03b65e7
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Tue Feb 6 16:32:38 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 09:32:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0be00369
7
8 net-im/slack-bin: fix 645918 (support for ayatana)
9
10 Closes: https://bugs.gentoo.org/645918
11 Closes: https://github.com/gentoo/gentoo/pull/7051
12 Package-Manager: Portage-2.3.19, Repoman-2.3.6
13
14 net-im/slack-bin/slack-bin-3.0.5.ebuild | 15 +++++++++++++--
15 1 file changed, 13 insertions(+), 2 deletions(-)
16
17 diff --git a/net-im/slack-bin/slack-bin-3.0.5.ebuild b/net-im/slack-bin/slack-bin-3.0.5.ebuild
18 index 6f2f809380d..711f490d302 100644
19 --- a/net-im/slack-bin/slack-bin-3.0.5.ebuild
20 +++ b/net-im/slack-bin/slack-bin-3.0.5.ebuild
21 @@ -15,7 +15,7 @@ SRC_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-
22 LICENSE="all-rights-reserved"
23 SLOT="0"
24 KEYWORDS="~amd64 -*"
25 -IUSE="pax_kernel"
26 +IUSE="ayatana pax_kernel"
27 RESTRICT="bindist mirror"
28
29 RDEPEND="app-crypt/libsecret:0[${MULTILIB_USEDEP}]
30 @@ -47,7 +47,8 @@ RDEPEND="app-crypt/libsecret:0[${MULTILIB_USEDEP}]
31 x11-libs/libXrender:0[${MULTILIB_USEDEP}]
32 x11-libs/libXScrnSaver:0[${MULTILIB_USEDEP}]
33 x11-libs/libXtst:0[${MULTILIB_USEDEP}]
34 - x11-libs/pango:0[${MULTILIB_USEDEP}]"
35 + x11-libs/pango:0[${MULTILIB_USEDEP}]
36 + ayatana? ( dev-libs/libappindicator:2[${MULTILIB_USEDEP}] )"
37
38 QA_PREBUILT="opt/slack/slack
39 opt/slack/resources/app.asar.unpacked/node_modules/*
40 @@ -57,6 +58,16 @@ QA_PREBUILT="opt/slack/slack
41
42 S="${WORKDIR}"
43
44 +src_prepare() {
45 + default
46 +
47 + if use ayatana ; then
48 + sed -i '/Exec/s|=|=env XDG_CURRENT_DESKTOP=Unity |' \
49 + usr/share/applications/slack.desktop \
50 + || die "sed failed for slack.desktop"
51 + fi
52 +}
53 +
54 src_install() {
55 insinto /usr/share/pixmaps
56 doins usr/share/pixmaps/${MY_PN}.png