summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2017-07-27 22:24:39 +0300
committerDavid Seifert <soap@gentoo.org>2017-07-30 16:37:36 +0200
commit95ccb20d9949c411e737711e4e17fd6e1a0b00e4 (patch)
tree33f7c8ec6488405e82ff26016a20c79aafa7ca08 /dev-libs
parentdev-libs/wlc: drop old 0.0.8-r1 (diff)
downloadgentoo-95ccb20d9949c411e737711e4e17fd6e1a0b00e4.tar.gz
gentoo-95ccb20d9949c411e737711e4e17fd6e1a0b00e4.tar.bz2
gentoo-95ccb20d9949c411e737711e4e17fd6e1a0b00e4.zip
dev-libs/sway: version bump to 0.14.0
added tray USE flag for tray icon support Closes: https://github.com/gentoo/gentoo/pull/5224
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/sway/Manifest1
-rw-r--r--dev-libs/sway/metadata.xml1
-rw-r--r--dev-libs/sway/sway-0.14.0.ebuild84
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
index 17baa3df35b1..8138d0d42d82 100644
--- a/dev-libs/sway/Manifest
+++ b/dev-libs/sway/Manifest
@@ -1,2 +1,3 @@
DIST sway-0.12.2.tar.gz 5348464 SHA256 134387d4da1b912f31c0b23f75722d3896cd2560ef5a37775f75e7057cd4a010 SHA512 dee93cc8e42e00589529ae413206593f2b1c67076aa6a27980f65ee7ad86ca80684e3cbbdad8c1cbd0741af7235364453257b855a5c722fc80fbad32a37dc4d4 WHIRLPOOL b104dd9eef80b3a836ae93232bf785da66409286ff09831c0f01207a47cbc6bb32fab02b876bc2f1e8cc91f7205879eaf6059355922d83fe697eab4da4d1cbc3
DIST sway-0.13.0.tar.gz 5355130 SHA256 56a20c9d28d92777bf99381edd09078f72bf39b8ac586242950d514456a77f7d SHA512 7f137e103bb278777ee3e36b40446156ee02bfbba3ce099b23b093751832a67155cd9519f7583364608d584d2d7c9206a8945f2114ae58220b47bd0f1ff362e8 WHIRLPOOL bff2fd4550334625533984c3bfaa1b479609b7b62cd62935fc5e96eae4a518242d69f553775f44368b76c87ed64fcd6011df785339bd71fb62e09eb426948b1f
+DIST sway-0.14.0.tar.gz 5376243 SHA256 e63efee81cd3952ee00c7bd379cf90b065530b03423f593895584aa51e9c7f1b SHA512 2c2e45ddc935504bd240288386662d05f284eb0d540e05b6e56ca577e9b1f2303929b9659eaa3cb99b8cdadb60bd1bfa4104624bf2574e41365e1b3df5361410 WHIRLPOOL d9a5ce41e3063d041cf1f22ebbb48ffc966b34b7d2e23caa77528035176dd9b5d74a8e6cdb238be3191849a349102562becb797835240309b245d554b63753cd
diff --git a/dev-libs/sway/metadata.xml b/dev-libs/sway/metadata.xml
index 0f0ae875709a..eba9ef639db3 100644
--- a/dev-libs/sway/metadata.xml
+++ b/dev-libs/sway/metadata.xml
@@ -32,6 +32,7 @@
<flag name="swaylock">Build 'swaylock': sway's screen locker.</flag>
<flag name="swaymsg">Build 'swaymsg': tool for communicating with a running sway instance.</flag>
<flag name="wallpapers">Install sway's default wallpaper image.</flag>
+ <flag name="tray">Enable support for StatusNotifierItem tray specification.</flag>
</use>
<upstream>
<remote-id type="github">SirCmpwn/sway</remote-id>
diff --git a/dev-libs/sway/sway-0.14.0.ebuild b/dev-libs/sway/sway-0.14.0.ebuild
new file mode 100644
index 000000000000..e43916587bdf
--- /dev/null
+++ b/dev-libs/sway/sway-0.14.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+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 +tray"
+
+REQUIRED_USE="tray? ( swaybar )"
+
+RDEPEND=">=dev-libs/wlc-0.0.8[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 )
+ tray? ( sys-apps/dbus )
+ gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ app-text/asciidoc"
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # 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)
+ -Denable-tray=$(usex tray)
+
+ -Ddefault-wallpaper=$(usex wallpapers)
+
+ -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
+ -Dzsh-completions=$(usex zsh-completion)
+
+ -DCMAKE_INSTALL_SYSCONFDIR="/etc"
+ -DVERSION="${PV}"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use !systemd && fperms u+s /usr/bin/sway
+}
+
+pkg_postinst() {
+ if use swaygrab
+ then
+ optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
+ optfeature "swaygrab video capture support" virtual/ffmpeg
+ fi
+ if use tray
+ then
+ optfeature "experimental xembed tray icons support" \
+ x11-misc/xembedsniproxy
+ fi
+
+ optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
+}