summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2016-12-27 23:12:32 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-12-28 01:06:11 +0100
commit01498eed4ebe67212c6f60617612c5bdc9f5316e (patch)
treeab38d33b7aff950ab9f778cf073f8695ede2d53d /dev-libs/sway
parentdev-libs/sway: version bump to 0.11. (diff)
downloadgentoo-01498eed4ebe67212c6f60617612c5bdc9f5316e.tar.gz
gentoo-01498eed4ebe67212c6f60617612c5bdc9f5316e.tar.bz2
gentoo-01498eed4ebe67212c6f60617612c5bdc9f5316e.zip
dev-libs/sway: update live ebuild.
add depend on sys-libs/libcap add cap_sys_ptrace capability to usr/bin/sway do not strip -g flag Closes: https://github.com/gentoo/gentoo/pull/3257 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-libs/sway')
-rw-r--r--dev-libs/sway/sway-9999.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild
index dfed231f81bb..c68703dca80a 100644
--- a/dev-libs/sway/sway-9999.ebuild
+++ b/dev-libs/sway/sway-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=6
-inherit git-r3 eutils cmake-utils
+inherit git-r3 eutils cmake-utils fcaps
DESCRIPTION="i3-compatible Wayland window manager"
HOMEPAGE="http://swaywm.org/"
@@ -22,6 +22,7 @@ RDEPEND="=dev-libs/wlc-9999[systemd=]
dev-libs/libinput
x11-libs/libxkbcommon
dev-libs/wayland
+ sys-libs/libcap
x11-libs/pango
x11-libs/cairo
swaylock? ( virtual/pam )
@@ -35,7 +36,7 @@ src_prepare() {
default
# remove bad CFLAGS that upstream is trying to add
- sed -i -e '/FLAGS.*-Werror/d' -e '/FLAGS.*-g/d' CMakeLists.txt || die
+ sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die
}
src_configure() {
@@ -63,7 +64,10 @@ src_install() {
use !systemd && fperms u+s /usr/bin/sway
}
+FILECAPS=( cap_sys_ptrace usr/bin/sway )
+
pkg_postinst() {
+ fcaps_pkg_postinst
if use swaygrab
then
optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]