Skip to content

Commit

Permalink
net-im/slack-bin: fix 645918 (support for ayatana)
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/645918
Closes: gentoo#7051
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
SpiderX authored and mgorny committed Feb 9, 2018
1 parent f4e5de7 commit 0be0036
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions net-im/slack-bin/slack-bin-3.0.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SRC_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 -*"
IUSE="pax_kernel"
IUSE="ayatana pax_kernel"
RESTRICT="bindist mirror"

RDEPEND="app-crypt/libsecret:0[${MULTILIB_USEDEP}]
Expand Down Expand Up @@ -47,7 +47,8 @@ RDEPEND="app-crypt/libsecret:0[${MULTILIB_USEDEP}]
x11-libs/libXrender:0[${MULTILIB_USEDEP}]
x11-libs/libXScrnSaver:0[${MULTILIB_USEDEP}]
x11-libs/libXtst:0[${MULTILIB_USEDEP}]
x11-libs/pango:0[${MULTILIB_USEDEP}]"
x11-libs/pango:0[${MULTILIB_USEDEP}]
ayatana? ( dev-libs/libappindicator:2[${MULTILIB_USEDEP}] )"

QA_PREBUILT="opt/slack/slack
opt/slack/resources/app.asar.unpacked/node_modules/*
Expand All @@ -57,6 +58,16 @@ QA_PREBUILT="opt/slack/slack

S="${WORKDIR}"

src_prepare() {
default

if use ayatana ; then
sed -i '/Exec/s|=|=env XDG_CURRENT_DESKTOP=Unity |' \
usr/share/applications/slack.desktop \
|| die "sed failed for slack.desktop"
fi
}

src_install() {
insinto /usr/share/pixmaps
doins usr/share/pixmaps/${MY_PN}.png
Expand Down

0 comments on commit 0be0036

Please sign in to comment.