From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4064158086 for ; Tue, 19 Oct 2021 00:55:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9431FE0869; Tue, 19 Oct 2021 00:55:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A5CAE0869 for ; Tue, 19 Oct 2021 00:55:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2652343655 for ; Tue, 19 Oct 2021 00:55:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6448F89 for ; Tue, 19 Oct 2021 00:55:30 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1634604375.71922357de1ff64aec7d79f489c2335d12ff5856.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/discord-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/discord-bin/discord-bin-0.0.16-r1.ebuild X-VCS-Directories: net-im/discord-bin/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 71922357de1ff64aec7d79f489c2335d12ff5856 X-VCS-Branch: master Date: Tue, 19 Oct 2021 00:55:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0251fdc6-a4f5-484f-977c-59e542986d85 X-Archives-Hash: b242a211c52afca16dcd87e9127894f1 commit: 71922357de1ff64aec7d79f489c2335d12ff5856 Author: Hayley Hughes foxes systems> AuthorDate: Tue Oct 12 01:57:56 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Tue Oct 19 00:46:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71922357 net-im/discord-bin: EAPI8, various fixes - Fix deps to match NEEDED libraries (bug #814440) - Make appindicator an optfeature (bug #743808) - Add sound optfeature (bug #722668) - Add missing EPREFIX to sed - Replace Exec in desktop file to just discord (respects EPREFIX) - Removed unnecessary inclusion of xdg - General cleanup Bug: https://bugs.gentoo.org/722668 Closes: https://bugs.gentoo.org/743808 Closes: https://bugs.gentoo.org/814440 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Hayley Hughes foxes.systems> Closes: https://github.com/gentoo/gentoo/pull/22583 Signed-off-by: Ionen Wolkens gentoo.org> net-im/discord-bin/discord-bin-0.0.16-r1.ebuild | 88 +++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/net-im/discord-bin/discord-bin-0.0.16-r1.ebuild b/net-im/discord-bin/discord-bin-0.0.16-r1.ebuild new file mode 100644 index 00000000000..36552f2d121 --- /dev/null +++ b/net-im/discord-bin/discord-bin-0.0.16-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${PN%-bin}" +MY_BIN="${MY_PN^}" + +inherit desktop linux-info optfeature pax-utils unpacker + +DESCRIPTION="All-in-one voice and text chat for gamers" +HOMEPAGE="https://discordapp.com" +SRC_URI="https://dl.discordapp.net/apps/linux/${PV}/${MY_PN}-${PV}.deb" +S="${WORKDIR}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="mirror bindist" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libdrm + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/libxshmfence + x11-libs/pango +" + +QA_PREBUILT=" + opt/discord/${MY_BIN} + opt/discord/chrome-sandbox + opt/discord/libffmpeg.so + opt/discord/libvk_swiftshader.so + opt/discord/libvulkan.so + opt/discord/libEGL.so + opt/discord/libGLESv2.so + opt/discord/libVkICD_mock_icd.so + opt/discord/swiftshader/libEGL.so + opt/discord/swiftshader/libGLESv2.so + opt/discord/swiftshader/libvk_swiftshader.so +" + +CONFIG_CHECK="~USER_NS" + +src_prepare() { + default + + sed -i \ + -e "s:/usr/share/discord/Discord:discord:" \ + usr/share/${MY_PN}/${MY_PN}.desktop || die +} + +src_install() { + doicon usr/share/${MY_PN}/${MY_PN}.png + domenu usr/share/${MY_PN}/${MY_PN}.desktop + + insinto /opt/${MY_PN} + doins -r usr/share/${MY_PN}/. + fperms +x /opt/${MY_PN}/${MY_BIN} + dosym -r /opt/${MY_PN}/${MY_BIN} /usr/bin/${MY_PN} + + pax-mark -m "${ED}"/opt/${MY_PN}/${MY_PN} +} + +pkg_postinst() { + optfeature "sound support" media-sound/pulseaudio media-video/pipewire + optfeature "system tray support" dev-libs/libappindicator +}