diff options
author | Stephan Hartmann <sultan@gentoo.org> | 2021-06-28 10:12:58 +0200 |
---|---|---|
committer | Stephan Hartmann <sultan@gentoo.org> | 2021-06-28 10:13:13 +0200 |
commit | 8041ecd8735fa711583ddc611e21e425dd6215a2 (patch) | |
tree | ce575c3ceef67f04efecd32fd8d765e6c4c849d4 /net-im | |
parent | www-client/vivaldi-snapshot: Drop old 4.0.2312.17 and 4.1.2328.3 (diff) | |
download | gentoo-8041ecd8735fa711583ddc611e21e425dd6215a2.tar.gz gentoo-8041ecd8735fa711583ddc611e21e425dd6215a2.tar.bz2 gentoo-8041ecd8735fa711583ddc611e21e425dd6215a2.zip |
net-im/teams: bump to 1.4.00.13653
Also rework ebuild a bit and move to /opt.
Closes: https://bugs.gentoo.org/796356
Closes: https://bugs.gentoo.org/749588
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/teams/Manifest | 1 | ||||
-rw-r--r-- | net-im/teams/metadata.xml | 1 | ||||
-rw-r--r-- | net-im/teams/teams-1.4.00.13653.ebuild | 105 |
3 files changed, 107 insertions, 0 deletions
diff --git a/net-im/teams/Manifest b/net-im/teams/Manifest index b0091c4b7bd4..fc9b03d0c06c 100644 --- a/net-im/teams/Manifest +++ b/net-im/teams/Manifest @@ -1,2 +1,3 @@ +DIST teams_1.4.00.13653_amd64.deb 83232268 BLAKE2B bc59aa1f4b9d5f1740fedc7bfc3c2cec6f8b4c1979a55e5a68742c36ea4399ba0e8c276de2d9e5b8de39363a9359136a5d1be59a6019af8bd5ac9922a5aab2c9 SHA512 d15b6cca0321e5e569e6a1f4ad0801f7a2de1e9312e8f584f07a4bc8bcac8a55626eb060a41baf31b9f4cfcd1cf2757e2f2b946f671f0e4c95c81f9eea0f8e2c DIST teams_1.4.00.4855_amd64.deb 76579552 BLAKE2B 3b03451d5a333a0e3736fd48d21252498a0b08041104a97b33a6166263ee8a5d2149f138e5598356bb42aa0c8d7a0619c6b1cd954d2ac5793b063c9bdbb3b929 SHA512 5596db57e8019068e8dac94cc6da8df2b1b6c813e8b67b4a61717fb7775f28973b09b49d77d001ab2dfd65ffe99ef2aaeaba8bc722f1348a474677b3d7a84df8 DIST teams_1.4.00.7556_amd64.deb 77232550 BLAKE2B f663a79a9edb29aecb240722f46cb29aa6f4e2cca6dbe1a29801aee2e9c408b1ad00ab0d2b8fac3c7c4c227429b0382a06b46114921d2f435fbe1c80415ea9d4 SHA512 0afe2714e290e8b2d30039e27a2af4d22cbd03bc4bfe90d6979714ae1cc75bc5226af8932dc38528a5dc5bd6b4820c4b9d9444abcb558a76438c62cff285ffac diff --git a/net-im/teams/metadata.xml b/net-im/teams/metadata.xml index b1de3ebb5c8e..fa147c289cb9 100644 --- a/net-im/teams/metadata.xml +++ b/net-im/teams/metadata.xml @@ -6,6 +6,7 @@ <name>Stephan Hartmann</name> </maintainer> <use> + <flag name="swiftshader">Install SwiftShader OpenGL libaries.</flag> <flag name="system-ffmpeg">Use the system-wide <pkg>media-video/ffmpeg</pkg> instead of bundled.</flag> <flag name="system-mesa">Use the system-wide <pkg>media-libs/mesa</pkg> instead of bundled.</flag> </use> diff --git a/net-im/teams/teams-1.4.00.13653.ebuild b/net-im/teams/teams-1.4.00.13653.ebuild new file mode 100644 index 000000000000..2e508b9fb6ef --- /dev/null +++ b/net-im/teams/teams-1.4.00.13653.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he + hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr + sv sw ta te th tr uk vi zh-CN zh-TW" + +inherit chromium-2 desktop unpacker xdg + +DESCRIPTION="Microsoft Teams, an Office 365 multimedia collaboration client, pre-release" +HOMEPAGE="https://products.office.com/en-us/microsoft-teams/group-chat-software/" +SRC_URI="https://packages.microsoft.com/repos/ms-teams/pool/main/t/${PN}/${PN}_${PV}_amd64.deb" + +LICENSE="ms-teams-pre" +SLOT="0" +KEYWORDS="-* ~amd64" +RESTRICT="bindist mirror splitdebug test" +IUSE="swiftshader system-ffmpeg" + +QA_PREBUILT="*" +# libasound2 (>= 1.0.16), libatk-bridge2.0-0 (>= 2.5.3), libatk1.0-0 (>= 2.2.0), libatspi2.0-0 (>= 2.9.90), libc6 (>= 2.17), libcairo2 (>= 1.10.0), +# libcups2 (>= 1.7.0), libdrm2 (>= 2.4.38), libexpat1 (>= 2.0.1), libgbm1 (>= 17.1.0~rc2), libgcc1 (>= 1:3.0), libgdk-pixbuf2.0-0 (>= 2.22.0), +# libglib2.0-0 (>= 2.39.4), libgtk-3-0 (>= 3.19.12), libnspr4 (>= 2:4.9-2~), libnss3 (>= 2:3.22), libpango-1.0-0 (>= 1.14.0), +# libpangocairo-1.0-0 (>= 1.14.0), libx11-6 (>= 2:1.4.99.1), libx11-xcb1, libxcb-dri3-0, libxcb1 (>= 1.6), libxcomposite1 (>= 1:0.3-1), +# libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxi6 (>= 2:1.2.99.4), libxrandr2, libxrender1, libxtst6, +# apt-transport-https, libfontconfig1 (>= 2.11.0), libdbus-1-3 (>= 1.6.18), libstdc++6 (>= 4.8.1) +RDEPEND=" + app-accessibility/at-spi2-core:2 + app-accessibility/at-spi2-atk:2 + app-crypt/libsecret + dev-libs/atk + dev-libs/expat + dev-libs/glib + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/mesa[gbm] + net-print/cups + sys-apps/dbus + sys-apps/util-linux + x11-libs/cairo + x11-libs/libdrm + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/libxcb + x11-libs/libxkbfile + x11-libs/pango + system-ffmpeg? ( <media-video/ffmpeg-4.3[chromium] ) +" + +S="${WORKDIR}" + +src_prepare() { + default + sed -i '/OnlyShowIn=/d' usr/share/applications/${PN}.desktop || die + sed -e "s@^TEAMS_PATH=.*@TEAMS_PATH=${EPREFIX}/opt/teams/teams@" \ + -i usr/bin/teams || die +} + +src_install() { + rm _gpgorigin || die + rm -r "usr/share/${PN}/resources/assets/"{.gitignore,macos,tlb,windows,x86,x64,arm64} || die + rm -r "usr/share/${PN}/resources/tmp" || die + rm "usr/share/${PN}/chrome-sandbox" || die + + insinto /opt + doins -r usr/share/${PN} + + dobin usr/bin/${PN} + domenu usr/share/applications/${PN}.desktop + doicon usr/share/pixmaps/${PN}.png + + pushd "${ED}/opt/${PN}/locales" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die + + if use system-ffmpeg; then + rm "${ED}/opt/${PN}/libffmpeg.so" || die + dosym "../../$(get_libdir)/chromium/libffmpeg.so" "opt/${PN}/libffmpeg.so" || die + elog "Using system ffmpeg. This is experimental and may lead to crashes." + fi + + if ! use swiftshader; then + rm -r "${ED}/opt/${PN}/swiftshader" || die + elog "Running without SwiftShader OpenGL implementation. If Teams doesn't start " + elog "or you experience graphic issues, then try with USE=swiftshader enabled." + fi + + fperms +x /usr/bin/${PN} + fperms +x /opt/${PN}/${PN} +} |