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: Sat, 13 Oct 2018 13:43:59
Message-Id: 1539438174.1b4c5714dc87970d7eaf0d4e7d34af4a73fca73e.mgorny@gentoo
1 commit: 1b4c5714dc87970d7eaf0d4e7d34af4a73fca73e
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Sat Oct 13 09:57:36 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 13 13:42:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b4c5714
7
8 net-im/slack-bin: sort KEYWORDS, version bump to 3.3.3
9
10 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/10083
14
15 net-im/slack-bin/Manifest | 1 +
16 net-im/slack-bin/slack-bin-3.3.3.ebuild | 94 +++++++++++++++++++++++++++++++++
17 2 files changed, 95 insertions(+)
18
19 diff --git a/net-im/slack-bin/Manifest b/net-im/slack-bin/Manifest
20 index 83589e18e5c..a274dea8e12 100644
21 --- a/net-im/slack-bin/Manifest
22 +++ b/net-im/slack-bin/Manifest
23 @@ -2,3 +2,4 @@ DIST slack-desktop-2.1.2-amd64.deb 46460486 BLAKE2B c6478764d3bd49745f9626d85287
24 DIST slack-desktop-2.1.2-i386.deb 42997902 BLAKE2B e5b3375efbe00d31e34c900aedde4c6c19b0e6a550d9db6155d9f8333c9d6db241da60e9b711eee7dbf6cf89d5ac4b84050c9e89c490172b7db205f38981dca3 SHA512 6b68123d3c85687043e886974449fe424af267c326ffc869d03d911ae5d0f30f5081b611e136bc4f832da8d555b2851a4c093df9c8be2de98235ebcd03528d8c
25 DIST slack-desktop-3.1.1-amd64.deb 60320286 BLAKE2B 3054e8283b41d5b8b45323131b2a85800ba8b8e24e0b80aa0eff0c0152c7cad0a2914bf64a6b83621cf6c9ad52b9bf26c0d113cf5867d4c3f2e7d6129d4d27ae SHA512 06f209b07d1bbbadede592f4e63da7c53436ecc821585448269d4eda16ad0bdf8355ac46e508741150fae6dc883c90563509361f47dd02fda2f15b2829dda309
26 DIST slack-desktop-3.3.1-amd64.deb 54172074 BLAKE2B 88402ce58e02e20a2c5a90358b979bb4acc0409eb32da87a517ebd8631be88e716033d3047a98462c50e8d31f177bae9bfe3e25404a7d3add320c157b381569b SHA512 9b284ba60c1a9dd9fbd489d34438dc343b5cf6d458ef7968a2d7bd65514f24c9a21f0824771ebffbf23c877fc191be19602e62ac5bcf8543e78156ba95c575f6
27 +DIST slack-desktop-3.3.3-amd64.deb 54203216 BLAKE2B 93f72a2a7ead75682b9ef9bd9f9b5ec19a5954d20e4ef3da214154eb53fd21533fac4e07893d883b7f9a51fd3af4e53f4b7102a0bee060d23f98b15bbc9207e9 SHA512 bb773ddc9cb13f520143412f73d47e308410d861fa63ca13a986d2c390900c59827b2cca6c55175a2778b341c534b0aab49841a4506f63d11359cada57473b67
28
29 diff --git a/net-im/slack-bin/slack-bin-3.3.3.ebuild b/net-im/slack-bin/slack-bin-3.3.3.ebuild
30 new file mode 100644
31 index 00000000000..9f937d1780a
32 --- /dev/null
33 +++ b/net-im/slack-bin/slack-bin-3.3.3.ebuild
34 @@ -0,0 +1,94 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +MY_PN="${PN/-bin/}"
41 +MULTILIB_COMPAT=( abi_x86_64 )
42 +
43 +inherit desktop gnome2-utils multilib-build pax-utils unpacker xdg-utils
44 +
45 +DESCRIPTION="Team collaboration tool"
46 +HOMEPAGE="http://www.slack.com/"
47 +SRC_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-amd64.deb"
48 +
49 +LICENSE="all-rights-reserved"
50 +SLOT="0"
51 +KEYWORDS="-* ~amd64"
52 +IUSE="ayatana gnome-keyring pax_kernel"
53 +RESTRICT="bindist mirror"
54 +
55 +RDEPEND="dev-libs/atk:0[${MULTILIB_USEDEP}]
56 + dev-libs/expat:0[${MULTILIB_USEDEP}]
57 + dev-libs/glib:2[${MULTILIB_USEDEP}]
58 + dev-libs/nspr:0[${MULTILIB_USEDEP}]
59 + dev-libs/nss:0[${MULTILIB_USEDEP}]
60 + gnome-base/gconf:2[${MULTILIB_USEDEP}]
61 + media-libs/alsa-lib:0[${MULTILIB_USEDEP}]
62 + media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
63 + media-libs/freetype:2[${MULTILIB_USEDEP}]
64 + net-misc/curl:0[${MULTILIB_USEDEP}]
65 + net-print/cups:0[${MULTILIB_USEDEP}]
66 + sys-apps/dbus:0[${MULTILIB_USEDEP}]
67 + x11-libs/cairo:0[${MULTILIB_USEDEP}]
68 + x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
69 + x11-libs/gtk+:3[${MULTILIB_USEDEP}]
70 + x11-libs/libX11:0[${MULTILIB_USEDEP}]
71 + x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
72 + x11-libs/libXcomposite:0[${MULTILIB_USEDEP}]
73 + x11-libs/libXcursor:0[${MULTILIB_USEDEP}]
74 + x11-libs/libXdamage:0[${MULTILIB_USEDEP}]
75 + x11-libs/libXext:0[${MULTILIB_USEDEP}]
76 + x11-libs/libXfixes:0[${MULTILIB_USEDEP}]
77 + x11-libs/libXi:0[${MULTILIB_USEDEP}]
78 + x11-libs/libxkbfile:0[${MULTILIB_USEDEP}]
79 + x11-libs/libXrandr:0[${MULTILIB_USEDEP}]
80 + x11-libs/libXrender:0[${MULTILIB_USEDEP}]
81 + x11-libs/libXScrnSaver:0[${MULTILIB_USEDEP}]
82 + x11-libs/libXtst:0[${MULTILIB_USEDEP}]
83 + x11-libs/pango:0[${MULTILIB_USEDEP}]
84 + ayatana? ( dev-libs/libappindicator:3[${MULTILIB_USEDEP}] )
85 + gnome-keyring? ( app-crypt/libsecret:0[${MULTILIB_USEDEP}] )"
86 +
87 +QA_PREBUILT="opt/slack/slack
88 + opt/slack/resources/app.asar.unpacked/node_modules/*
89 + opt/slack/libnode.so
90 + opt/slack/libffmpeg.so
91 + opt/slack/libCallsCore.so"
92 +
93 +S="${WORKDIR}"
94 +
95 +src_prepare() {
96 + default
97 +
98 + if use ayatana ; then
99 + sed -i '/Exec/s|=|=env XDG_CURRENT_DESKTOP=Unity |' \
100 + usr/share/applications/slack.desktop \
101 + || die "sed failed for slack.desktop"
102 + fi
103 +}
104 +
105 +src_install() {
106 + doicon usr/share/pixmaps/slack.png
107 + doicon -s 512 usr/share/pixmaps/slack.png
108 + domenu usr/share/applications/slack.desktop
109 +
110 + insinto /opt/slack
111 + doins -r usr/lib/slack/.
112 + fperms +x /opt/slack/slack
113 + dosym ../../opt/slack/slack usr/bin/slack
114 +
115 + use pax_kernel && pax-mark -m "${ED%/}"/opt/slack/slack
116 +}
117 +
118 +pkg_postinst() {
119 + xdg_desktop_database_update
120 + xdg_mimeinfo_database_update
121 + gnome2_icon_cache_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_desktop_database_update
126 + xdg_mimeinfo_database_update
127 + gnome2_icon_cache_update
128 +}