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 9D173138334 for ; Wed, 4 Dec 2019 16:06:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3BB8E0863; Wed, 4 Dec 2019 16:06:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9BD32E0863 for ; Wed, 4 Dec 2019 16:06:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7720A34D7CF for ; Wed, 4 Dec 2019 16:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 513738C9 for ; Wed, 4 Dec 2019 16:06:49 +0000 (UTC) From: "Aaron Bauman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aaron Bauman" Message-ID: <1575475585.664243d88a359cda12a7383525c5670065b31aa4.bman@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.9-r1.ebuild X-VCS-Directories: net-im/discord-bin/ X-VCS-Committer: bman X-VCS-Committer-Name: Aaron Bauman X-VCS-Revision: 664243d88a359cda12a7383525c5670065b31aa4 X-VCS-Branch: master Date: Wed, 4 Dec 2019 16:06:49 +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: 2f4791e2-8cde-4d10-a837-0ca54bd9f58a X-Archives-Hash: 2e4c62319493315755a098c53e677b6c commit: 664243d88a359cda12a7383525c5670065b31aa4 Author: Mathy Vanvoorden vanvoorden be> AuthorDate: Fri Nov 29 00:33:31 2019 +0000 Commit: Aaron Bauman gentoo org> CommitDate: Wed Dec 4 16:06:25 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664243d8 net-im/discord-bin: remove dependency on gconf This is no longer used by discord Closes: https://bugs.gentoo.org/694296 Package-Manager: Portage-2.3.76, Repoman-2.3.18 Signed-off-by: Mathy Vanvoorden vanvoorden.be> Closes: https://github.com/gentoo/gentoo/pull/13793 Signed-off-by: Aaron Bauman gentoo.org> net-im/discord-bin/discord-bin-0.0.9-r1.ebuild | 93 ++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/net-im/discord-bin/discord-bin-0.0.9-r1.ebuild b/net-im/discord-bin/discord-bin-0.0.9-r1.ebuild new file mode 100644 index 00000000000..b7ee3f914d4 --- /dev/null +++ b/net-im/discord-bin/discord-bin-0.0.9-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +MY_PN=${PN/-bin/} +MY_BIN="D${MY_PN/d/}" + +inherit desktop gnome2-utils pax-utils unpacker xdg-utils + +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" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" +IUSE="pax_kernel" +RESTRICT="mirror bindist" + +RDEPEND=" + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig:1.0 + media-libs/freetype:2 + net-print/cups + sys-apps/dbus + sys-libs/libcxx + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libxcb + 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/pango +" + +S=${WORKDIR} + +QA_PREBUILT=" + opt/discord/${MY_BIN} + opt/discord/libEGL.so + opt/discord/libGLESv2.so + opt/discord/swiftshader/libEGL.so + opt/discord/swiftshader/libGLESv2.so + opt/discord/libVkICD_mock_icd.so + opt/discord/libffmpeg.so +" + +src_prepare() { + default + + sed -i \ + -e "s:/usr/share/discord/Discord:/opt/${MY_PN}/${MY_BIN}:g" \ + 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 ../../opt/${MY_PN}/${MY_BIN} usr/bin/${MY_PN} + + use pax_kernel && pax-mark -m "${ED%/}"/opt/${MY_PN}/${MY_PN} +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + gnome2_icon_cache_update +}