diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2016-12-27 23:10:40 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-12-28 01:06:08 +0100 |
commit | e263cf48778a841512e250eae4ce151a824f65ae (patch) | |
tree | fbf72e4b75e50d82aa2426d20dfd90b23d1c75bc /dev-libs/sway | |
parent | kde-plasma/sddm-kcm: Punt bogus dep (diff) | |
download | gentoo-e263cf48778a841512e250eae4ce151a824f65ae.tar.gz gentoo-e263cf48778a841512e250eae4ce151a824f65ae.tar.bz2 gentoo-e263cf48778a841512e250eae4ce151a824f65ae.zip |
dev-libs/sway: version bump to 0.11.
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/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/sway/sway-0.11.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest index b067eea2ea0d..cafbe3f65905 100644 --- a/dev-libs/sway/Manifest +++ b/dev-libs/sway/Manifest @@ -1,2 +1,3 @@ DIST sway-0.10.tar.gz 11016470 SHA256 9723baf037cf7e9de557e4ca9a54280594962ec1cf85e736592b860789b447f1 SHA512 2a8d6c716956848f30fe680945e0106bf310597926708da24a76853fcf384dbcfb09882692eaa88a5d62171500028ff9ae21082f4aca6386dc0c346d847943c2 WHIRLPOOL 90e3e21df81ea630165d3a8bbd8c814154a8c0e44997e92d410263c22b480139595dc974aaceea9d1b817b980a3a3f627ba9c140c3a3abf0f72ae8ed4f83fca3 +DIST sway-0.11.tar.gz 11027681 SHA256 3d4d18afc849db8704d8da9cb69eb121ea92b27d7fa556acdcc6708f05c84964 SHA512 4cd69c83a0c8815ddc1663b4cd4b69c8d99d6d9d2a030e575c544836e3dfba445bc6407f7eaf97c0d7fdefd62e3ceed4206195ad91701f840ec8686f3b75989c WHIRLPOOL 72b663418c848c4a989d3d277761399dfdca046ebeac972e523b7fe78caee030bf4bbb9e3dd068b712f1a931feedbd214005989aa5fd5b6f877e42fe1f9d0873 DIST sway-0.9.tar.gz 11010131 SHA256 dc98fe5abd084dbf059fdf19b5b40e44b5c7ac75a5b704b47a6b53c9f489f42d SHA512 546af976379f50314567472766fe801dc15e84057bc1bd4d8b9b8c02ddc897ce3ece264a429bcc7c44f6fa2f7a58ed65f92d5a194951297c5d37dbb8085658cf WHIRLPOOL de3bbc9139d851088018a57a1668edbe585701960e705881f36e9c6077475fd80d40a44a37bb2ddbe74378dbc169aa947e08da975208e2a5904722f6c81b5af3 diff --git a/dev-libs/sway/sway-0.11.ebuild b/dev-libs/sway/sway-0.11.ebuild new file mode 100644 index 000000000000..a52e617043c1 --- /dev/null +++ b/dev-libs/sway/sway-0.11.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils cmake-utils fcaps + +DESCRIPTION="i3-compatible Wayland window manager" +HOMEPAGE="http://swaywm.org/" + +SRC_URI="https://github.com/SirCmpwn/sway/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd" + +RDEPEND=">=dev-libs/wlc-0.0.5[systemd=] + dev-libs/json-c + dev-libs/libpcre + dev-libs/libinput + x11-libs/libxkbcommon + dev-libs/wayland + sys-libs/libcap + x11-libs/pango + x11-libs/cairo + swaylock? ( virtual/pam ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + app-text/asciidoc" + +src_prepare() { + default + + # remove bad CFLAGS that upstream is trying to add + sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -Denable-swaybar=$(usex swaybar) + -Denable-swaybg=$(usex swaybg) + -Denable-swaygrab=$(usex swaygrab) + -Denable-swaylock=$(usex swaylock) + -Denable-swaymsg=$(usex swaymsg) + + -Ddefault-wallpaper=$(usex wallpapers) + + -Denable-gdk-pixbuf=$(usex gdk-pixbuf) + -Dzsh-completions=$(usex zsh-completion) + + -DCMAKE_INSTALL_SYSCONFDIR="/etc" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_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] + optfeature "swaygrab video capture support" virtual/ffmpeg + fi + optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland] +} |