summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/sway/Manifest1
-rw-r--r--dev-libs/sway/sway-0.12.2.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
index 78f52d8177c..391e01e69cf 100644
--- a/dev-libs/sway/Manifest
+++ b/dev-libs/sway/Manifest
@@ -1,2 +1,3 @@
DIST sway-0.11.tar.gz 11027681 SHA256 3d4d18afc849db8704d8da9cb69eb121ea92b27d7fa556acdcc6708f05c84964 SHA512 4cd69c83a0c8815ddc1663b4cd4b69c8d99d6d9d2a030e575c544836e3dfba445bc6407f7eaf97c0d7fdefd62e3ceed4206195ad91701f840ec8686f3b75989c WHIRLPOOL 72b663418c848c4a989d3d277761399dfdca046ebeac972e523b7fe78caee030bf4bbb9e3dd068b712f1a931feedbd214005989aa5fd5b6f877e42fe1f9d0873
DIST sway-0.12.1.tar.gz 5348408 SHA256 f395ab920733dd5523d1cc887e21a4245f5827ef7c1545ac4f836d69cc60b28c SHA512 224a170cc1cbbff9486e224b19078794ed1c549a9c1eb03e533248e7d2e4698004d12c3c77c7052228aa2b6fa130840f8e889014404f438ba06ce1cfac7789ca WHIRLPOOL 15cb69a8bead1b5897fac5fd7dfe790539bb252b2e184a03a05fb16b6649d0214d453a8b042408c808f7d5b5f75364dee9a1f435287ac7b77d354aa6e41b8e49
+DIST sway-0.12.2.tar.gz 5348464 SHA256 134387d4da1b912f31c0b23f75722d3896cd2560ef5a37775f75e7057cd4a010 SHA512 dee93cc8e42e00589529ae413206593f2b1c67076aa6a27980f65ee7ad86ca80684e3cbbdad8c1cbd0741af7235364453257b855a5c722fc80fbad32a37dc4d4 WHIRLPOOL b104dd9eef80b3a836ae93232bf785da66409286ff09831c0f01207a47cbc6bb32fab02b876bc2f1e8cc91f7205879eaf6059355922d83fe697eab4da4d1cbc3
diff --git a/dev-libs/sway/sway-0.12.2.ebuild b/dev-libs/sway/sway-0.12.2.ebuild
new file mode 100644
index 00000000000..acf978e84c8
--- /dev/null
+++ b/dev-libs/sway/sway-0.12.2.ebuild
@@ -0,0 +1,74 @@
+# 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"
+
+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 )
+ 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)
+
+ -Ddefault-wallpaper=$(usex wallpapers)
+
+ -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
+ -Dzsh-completions=$(usex zsh-completion)
+
+ -DCMAKE_INSTALL_SYSCONFDIR="/etc"
+ -DGIT_COMMIT_HASH="${PVR}" # specify version info, may change in future
+ )
+
+ 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
+ optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
+}