public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/slack-bin/
Date: Sun, 14 Jan 2018 09:17:18 +0000 (UTC)	[thread overview]
Message-ID: <1515921420.f75212c749440e32892d880b6726b1da09d024d9.kensington@gentoo> (raw)

commit:     f75212c749440e32892d880b6726b1da09d024d9
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
AuthorDate: Sun Dec 10 12:24:14 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 09:17:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f75212c7

net-im/slack-bin: improve ebuild along with version bump

1. Removed eutils eclass and added desktop.
2. Fixed symlink with absolute path.
3. Added "-*" to KEYWORDS.
4. Added xdg_mimeinfo_database_update to pkg_post.
5. Added pax_kernel to USE flags.
6. Support for multilib-build.

Closes: https://bugs.gentoo.org/640092
Closes: https://github.com/gentoo/gentoo/pull/6508
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 net-im/slack-bin/Manifest               |  1 +
 net-im/slack-bin/metadata.xml           |  3 ++
 net-im/slack-bin/slack-bin-3.0.2.ebuild | 85 +++++++++++++++++++++++++++++++++
 3 files changed, 89 insertions(+)

diff --git a/net-im/slack-bin/Manifest b/net-im/slack-bin/Manifest
index 73a23706960..2fb6f2c4536 100644
--- a/net-im/slack-bin/Manifest
+++ b/net-im/slack-bin/Manifest
@@ -4,3 +4,4 @@ DIST slack-desktop-2.5.2-amd64.deb 47812458 BLAKE2B 1f066cf0c85ce0b6153a1e62737c
 DIST slack-desktop-2.6.3-amd64.deb 51434914 BLAKE2B 7924e0e220c97946a5e1eb944e9ed3b01a46cc5e082fa40606667d83d68ed1de874bf98b637585c029cc674e324fd32688752c9a14644921dd585058055c5bf4 SHA512 943abc3084e395277c41f7a42feffcdeb184900c9cf0bce58bbbe6891d23b97b937fa8d47a1200e9aaa62ed0f7d4b6e3f24d41cd610cd185df570e58c31640bf
 DIST slack-desktop-2.8.0-amd64.deb 51225854 BLAKE2B 746a11d85941272c53a9c7d2433c2801fb880e6d59bf2ee1599597650a3ce59369e04b15c51af28c1e90e3375f9b9fcc88a1bf9cfc130472faafa2b7b8809be5 SHA512 9a3a8c4eec95583cde76003e99679dda9d6e44692258242bef888043666d589da8a7a5d68898f61e645a6810291ef36fea9551834c3d2fbec8e3baa6a84313d0
 DIST slack-desktop-2.8.2-amd64.deb 51257834 BLAKE2B 85f06aa634b40f3ddd1450fcfaa044bf4cf9b5a7463525ac0ee98b07cd882e0b30e0a894c8ab2e2605e3db903e570c318d6d6cb968223d59abc5013053528547 SHA512 533b360ff22ff74743fb7323c08f01230509428e752aed2ed090bf002475934063e6c3853727ab030f6267ca332d783a045df02da02a3a12d045d6a168bf5b58
+DIST slack-desktop-3.0.2-amd64.deb 55654542 BLAKE2B 70a1da6cc7be1313b02e74225ee87fbb93c0050f40301e0a02c01241efe91db9d09149fd8feeecf33786c657b53e8aec3a4d7563e61ae88e4b46f85bad27ded7 SHA512 29d7d96dbf4b81ac4164043c0cae0e314d94770b74118068684770763a52eed2a3fd430b4a307db2d133ad46cc57379a71415d92790946f5c1b448153c9bc2c1

diff --git a/net-im/slack-bin/metadata.xml b/net-im/slack-bin/metadata.xml
index 15eca405ed0..200d6a674a2 100644
--- a/net-im/slack-bin/metadata.xml
+++ b/net-im/slack-bin/metadata.xml
@@ -15,6 +15,9 @@
 	All content inside Slack is searchable, including files, conversations,
 	and people.
 	</longdescription>
+	<use>
+		<flag name="pax_kernel">Triggers a paxmarking of the binary</flag>
+	</use>
 	<upstream>
 		<doc>https://get.slack.help/hc/en-us</doc>
 	</upstream>

diff --git a/net-im/slack-bin/slack-bin-3.0.2.ebuild b/net-im/slack-bin/slack-bin-3.0.2.ebuild
new file mode 100644
index 00000000000..6f2f809380d
--- /dev/null
+++ b/net-im/slack-bin/slack-bin-3.0.2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="${PN/-bin/}"
+MULTILIB_COMPAT=( abi_x86_64 )
+
+inherit desktop gnome2-utils multilib-build pax-utils unpacker xdg-utils
+
+DESCRIPTION="Team collaboration tool"
+HOMEPAGE="http://www.slack.com/"
+SRC_URI="https://downloads.slack-edge.com/linux_releases/${MY_PN}-desktop-${PV}-amd64.deb"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 -*"
+IUSE="pax_kernel"
+RESTRICT="bindist mirror"
+
+RDEPEND="app-crypt/libsecret:0[${MULTILIB_USEDEP}]
+	dev-libs/atk:0[${MULTILIB_USEDEP}]
+	dev-libs/expat:0[${MULTILIB_USEDEP}]
+	dev-libs/glib:2[${MULTILIB_USEDEP}]
+	dev-libs/nspr:0[${MULTILIB_USEDEP}]
+	dev-libs/nss:0[${MULTILIB_USEDEP}]
+	gnome-base/gconf:2[${MULTILIB_USEDEP}]
+	media-libs/alsa-lib:0[${MULTILIB_USEDEP}]
+	media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
+	media-libs/freetype:2[${MULTILIB_USEDEP}]
+	net-misc/curl:0[${MULTILIB_USEDEP}]
+	net-print/cups:0[${MULTILIB_USEDEP}]
+	sys-apps/dbus:0[${MULTILIB_USEDEP}]
+	x11-libs/cairo:0[${MULTILIB_USEDEP}]
+	x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
+	x11-libs/gtk+:2[${MULTILIB_USEDEP}]
+	x11-libs/libX11:0[${MULTILIB_USEDEP}]
+	x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
+	x11-libs/libXcomposite:0[${MULTILIB_USEDEP}]
+	x11-libs/libXcursor:0[${MULTILIB_USEDEP}]
+	x11-libs/libXdamage:0[${MULTILIB_USEDEP}]
+	x11-libs/libXext:0[${MULTILIB_USEDEP}]
+	x11-libs/libXfixes:0[${MULTILIB_USEDEP}]
+	x11-libs/libXi:0[${MULTILIB_USEDEP}]
+	x11-libs/libxkbfile:0[${MULTILIB_USEDEP}]
+	x11-libs/libXrandr:0[${MULTILIB_USEDEP}]
+	x11-libs/libXrender:0[${MULTILIB_USEDEP}]
+	x11-libs/libXScrnSaver:0[${MULTILIB_USEDEP}]
+	x11-libs/libXtst:0[${MULTILIB_USEDEP}]
+	x11-libs/pango:0[${MULTILIB_USEDEP}]"
+
+QA_PREBUILT="opt/slack/slack
+	opt/slack/resources/app.asar.unpacked/node_modules/*
+	opt/slack/libnode.so
+	opt/slack/libffmpeg.so
+	opt/slack/libCallsCore.so"
+
+S="${WORKDIR}"
+
+src_install() {
+	insinto /usr/share/pixmaps
+	doins usr/share/pixmaps/${MY_PN}.png
+
+	newicon -s 512 usr/share/pixmaps/${MY_PN}.png ${MY_PN}.png
+	domenu usr/share/applications/${MY_PN}.desktop
+
+	insinto /opt/${MY_PN}
+	doins -r usr/lib/${MY_PN}/.
+	fperms +x /opt/${MY_PN}/${MY_PN}
+	dosym ../../opt/${MY_PN}/${MY_PN} 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
+}


             reply	other threads:[~2018-01-14  9:17 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-14  9:17 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-14  9:55 [gentoo-commits] repo/gentoo:master commit in: net-im/slack-bin/ Joonas Niilola
2020-02-08 16:25 David Seifert
2020-02-06  6:20 Joonas Niilola
2020-02-06  6:20 Joonas Niilola
2020-02-06  6:20 Joonas Niilola
2020-02-06  2:06 Andreas Sturmlechner
2020-02-05 11:55 Jason A. Donenfeld
2020-02-05 11:55 Jason A. Donenfeld
2020-02-05 11:55 Jason A. Donenfeld
2019-09-05 18:28 Joonas Niilola
2019-09-05 18:28 Joonas Niilola
2019-06-09 10:50 Michał Górny
2019-05-09  1:19 Georgy Yakovlev
2019-05-09  1:19 Georgy Yakovlev
2019-05-09  1:19 Georgy Yakovlev
2019-03-18 22:53 Patrice Clement
2019-01-18 15:49 Matthew Thode
2019-01-15 18:43 Matthew Thode
2018-10-13 13:43 Michał Górny
2018-10-13 13:43 Michał Górny
2018-09-09 15:46 Amy Liffey
2018-07-08 19:23 Andreas Sturmlechner
2018-07-08 19:23 Andreas Sturmlechner
2018-06-17 21:32 Michał Górny
2018-05-13 19:25 Aaron Bauman
2018-05-13 19:25 Aaron Bauman
2018-05-13 19:25 Aaron Bauman
2018-03-30 18:16 Michał Górny
2018-02-09  9:33 Michał Górny
2018-02-09  9:33 Michał Górny
2017-10-28 13:37 Patrice Clement
2017-09-22 13:54 Patrice Clement
2017-07-15 11:25 Michał Górny
2017-07-11 20:01 Michał Górny
2017-07-11 20:01 Michał Górny
2017-07-11 20:01 Michał Górny
2017-07-11 20:01 Michał Górny
2017-07-11 20:01 Michał Górny
2017-03-16 19:13 David Seifert
2017-01-21 21:14 Patrice Clement
2017-01-15  2:26 Göktürk Yüksek
2016-09-27 20:29 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1515921420.f75212c749440e32892d880b6726b1da09d024d9.kensington@gentoo \
    --to=kensington@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox