diff options
author | Hayley Hughes <hayley@foxes.systems> | 2021-10-12 12:57:56 +1100 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-10-18 20:46:15 -0400 |
commit | 71922357de1ff64aec7d79f489c2335d12ff5856 (patch) | |
tree | 808886a170c9581e20d29e77aacb65b438a94c57 /net-im | |
parent | games-action/descent2-freedata: Keyword 1 arm64, #805497 (diff) | |
download | gentoo-71922357de1ff64aec7d79f489c2335d12ff5856.tar.gz gentoo-71922357de1ff64aec7d79f489c2335d12ff5856.tar.bz2 gentoo-71922357de1ff64aec7d79f489c2335d12ff5856.zip |
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 <hayley@foxes.systems>
Closes: https://github.com/gentoo/gentoo/pull/22583
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/discord-bin/discord-bin-0.0.16-r1.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
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 000000000000..36552f2d121c --- /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 +} |