Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/teams/
Date: Sat, 10 Apr 2021 09:53:56
Message-Id: 1618048343.3e9564d78cb1629ca3eb1df600a506448aad4899.dilfridge@gentoo
1 commit: 3e9564d78cb1629ca3eb1df600a506448aad4899
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 10 09:52:23 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 10 09:52:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9564d7
7
8 net-im/teams: Version bump 1.4.00.7556
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 net-im/teams/Manifest | 1 +
14 net-im/teams/teams-1.4.00.7556.ebuild | 110 ++++++++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/net-im/teams/Manifest b/net-im/teams/Manifest
18 index 6f52766c2a3..b8adc6f7f44 100644
19 --- a/net-im/teams/Manifest
20 +++ b/net-im/teams/Manifest
21 @@ -1,2 +1,3 @@
22 DIST teams_1.3.00.30857_amd64.deb 76334658 BLAKE2B 486ee2945f46e7a7c7bfe1d2a6edf29f8cac5a7827c0a8bcf121d25ce95fde2caf31fed520c2f036e27b399c986ac1acc1531aaa1a9caf5a5d6848b10ac0d204 SHA512 5a8be75bfe752347bd36bf2abc2de74ad069cbf4a6430bfcad9ca7396d5b5bf8196a74798a0595908a33ebcb2fcdbedc403c7ff31eec76d07246a3d1c46eeab4
23 DIST teams_1.4.00.4855_amd64.deb 76579552 BLAKE2B 3b03451d5a333a0e3736fd48d21252498a0b08041104a97b33a6166263ee8a5d2149f138e5598356bb42aa0c8d7a0619c6b1cd954d2ac5793b063c9bdbb3b929 SHA512 5596db57e8019068e8dac94cc6da8df2b1b6c813e8b67b4a61717fb7775f28973b09b49d77d001ab2dfd65ffe99ef2aaeaba8bc722f1348a474677b3d7a84df8
24 +DIST teams_1.4.00.7556_amd64.deb 77232550 BLAKE2B f663a79a9edb29aecb240722f46cb29aa6f4e2cca6dbe1a29801aee2e9c408b1ad00ab0d2b8fac3c7c4c227429b0382a06b46114921d2f435fbe1c80415ea9d4 SHA512 0afe2714e290e8b2d30039e27a2af4d22cbd03bc4bfe90d6979714ae1cc75bc5226af8932dc38528a5dc5bd6b4820c4b9d9444abcb558a76438c62cff285ffac
25
26 diff --git a/net-im/teams/teams-1.4.00.7556.ebuild b/net-im/teams/teams-1.4.00.7556.ebuild
27 new file mode 100644
28 index 00000000000..93fe30a5e8b
29 --- /dev/null
30 +++ b/net-im/teams/teams-1.4.00.7556.ebuild
31 @@ -0,0 +1,110 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit desktop unpacker xdg-utils chromium-2
38 +
39 +DESCRIPTION="Microsoft Teams, an Office 365 multimedia collaboration client, pre-release"
40 +HOMEPAGE="https://products.office.com/en-us/microsoft-teams/group-chat-software/"
41 +SRC_URI="https://packages.microsoft.com/repos/ms-teams/pool/main/t/${PN}/${PN}_${PV}_amd64.deb"
42 +
43 +LICENSE="ms-teams-pre"
44 +SLOT="0"
45 +KEYWORDS="-* ~amd64"
46 +RESTRICT="bindist mirror splitdebug test"
47 +IUSE="system-ffmpeg system-mesa"
48 +
49 +QA_PREBUILT="*"
50 +
51 +# libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.17), libcairo2 (>= 1.6.0), libcups2 (>= 1.4.0),
52 +# libexpat1 (>= 2.0.1), libgcc1 (>= 1:3.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.35.8), libgtk-3-0 (>= 3.9.10), libnspr4 (>= 2:4.9-2~), libnss3
53 +# (>= 2:3.22), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libsecret-1-0 (>= 0.7), libuuid1 (>= 2.16), libx11-6 (>= 2:1.4.99.1), libx11-xcb1,
54 +# libxcb1 (>= 1.6), libxcomposite1 (>= 1:0.3-1), libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxi6 (>= 2:1.2.99.4), libxkbfile1,
55 +# libxrandr2 (>= 2:1.2.99.3), libxrender1, libxss1, libxtst6, apt-transport-https, libfontconfig1 (>= 2.11.0), libdbus-1-3 (>= 1.6.18), libstdc++6 (>= 4.8.1)
56 +RDEPEND="
57 + app-accessibility/at-spi2-atk
58 + app-crypt/libsecret
59 + dev-libs/atk
60 + dev-libs/expat
61 + dev-libs/glib
62 + dev-libs/nspr
63 + dev-libs/nss
64 + media-libs/alsa-lib
65 + media-libs/fontconfig
66 + net-print/cups
67 + sys-apps/dbus
68 + sys-apps/util-linux
69 + x11-libs/cairo
70 + x11-libs/cairo
71 + x11-libs/gdk-pixbuf
72 + x11-libs/gtk+:3
73 + x11-libs/libX11
74 + x11-libs/libXScrnSaver
75 + x11-libs/libXcomposite
76 + x11-libs/libXcursor
77 + x11-libs/libXdamage
78 + x11-libs/libXext
79 + x11-libs/libXfixes
80 + x11-libs/libXi
81 + x11-libs/libXrandr
82 + x11-libs/libXrender
83 + x11-libs/libXtst
84 + x11-libs/libxcb
85 + x11-libs/libxkbfile
86 + x11-libs/pango
87 + system-mesa? ( media-libs/mesa )
88 + system-ffmpeg? ( <media-video/ffmpeg-4.3[chromium] )
89 +"
90 +
91 +S="${WORKDIR}"
92 +
93 +pkg_pretend() {
94 + chromium_suid_sandbox_check_kernel_config
95 +}
96 +
97 +src_configure() {
98 + chromium_suid_sandbox_check_kernel_config
99 + default
100 +}
101 +
102 +src_install() {
103 + rm _gpgorigin || die
104 + doins -r .
105 +
106 + fperms +x /usr/bin/teams
107 + fperms +x /usr/share/teams/teams
108 +
109 + if use system-ffmpeg ; then
110 + rm -f "${D}"/usr/share/teams/libffmpeg.so || die
111 +
112 + cat > 99teams <<-EOF
113 + LDPATH=${EROOT}/usr/$(get_libdir)/chromium
114 + EOF
115 + doenvd 99teams
116 + elog "Using system ffmpeg. This is experimental and may lead to crashes."
117 + fi
118 +
119 + if use system-mesa ; then
120 + rm -f "${D}"/usr/share/teams/libEGL.so || die
121 + rm -f "${D}"/usr/share/teams/libGLESv2.so || die
122 + rm -f "${D}"/usr/share/teams/swiftshader/libEGL.so || die
123 + rm -f "${D}"/usr/share/teams/swiftshader/libGLESv2.so || die
124 + elog "Using system mesa. This is experimental and may lead to crashes."
125 + fi
126 +
127 + rm -rf "${D}"/usr/share/teams/resources/app.asar.unpacked/node_modules/keytar3 || die
128 +
129 + sed -i '/OnlyShowIn=/d' "${S}"/usr/share/applications/teams.desktop || die
130 + domenu usr/share/applications/teams.desktop
131 +}
132 +
133 +pkg_postinst() {
134 + xdg_desktop_database_update
135 + xdg_icon_cache_update
136 +}
137 +
138 +pkg_postrm() {
139 + xdg_desktop_database_update
140 + xdg_icon_cache_update
141 +}