Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/
Date: Wed, 28 Dec 2016 00:18:24
Message-Id: 1482883571.01498eed4ebe67212c6f60617612c5bdc9f5316e.monsieurp@gentoo
1 commit: 01498eed4ebe67212c6f60617612c5bdc9f5316e
2 Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 27 21:12:32 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 00:06:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01498eed
7
8 dev-libs/sway: update live ebuild.
9
10 add depend on sys-libs/libcap
11
12 add cap_sys_ptrace capability to usr/bin/sway
13
14 do not strip -g flag
15 Closes: https://github.com/gentoo/gentoo/pull/3257
16
17 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
18
19 dev-libs/sway/sway-9999.ebuild | 8 ++++++--
20 1 file changed, 6 insertions(+), 2 deletions(-)
21
22 diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild
23 index dfed231..c68703d 100644
24 --- a/dev-libs/sway/sway-9999.ebuild
25 +++ b/dev-libs/sway/sway-9999.ebuild
26 @@ -4,7 +4,7 @@
27
28 EAPI=6
29
30 -inherit git-r3 eutils cmake-utils
31 +inherit git-r3 eutils cmake-utils fcaps
32
33 DESCRIPTION="i3-compatible Wayland window manager"
34 HOMEPAGE="http://swaywm.org/"
35 @@ -22,6 +22,7 @@ RDEPEND="=dev-libs/wlc-9999[systemd=]
36 dev-libs/libinput
37 x11-libs/libxkbcommon
38 dev-libs/wayland
39 + sys-libs/libcap
40 x11-libs/pango
41 x11-libs/cairo
42 swaylock? ( virtual/pam )
43 @@ -35,7 +36,7 @@ src_prepare() {
44 default
45
46 # remove bad CFLAGS that upstream is trying to add
47 - sed -i -e '/FLAGS.*-Werror/d' -e '/FLAGS.*-g/d' CMakeLists.txt || die
48 + sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die
49 }
50
51 src_configure() {
52 @@ -63,7 +64,10 @@ src_install() {
53 use !systemd && fperms u+s /usr/bin/sway
54 }
55
56 +FILECAPS=( cap_sys_ptrace usr/bin/sway )
57 +
58 pkg_postinst() {
59 + fcaps_pkg_postinst
60 if use swaygrab
61 then
62 optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]