diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2018-05-01 18:43:21 +0300 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2018-05-05 17:45:35 -0400 |
commit | 0b884529301729a796ea52db4438cb176ce7416e (patch) | |
tree | df13a5e46d6c354b9607bd6cff27183fb9057d8d /dev-libs/sway | |
parent | dev-libs/sway: keyword ~arm64 (diff) | |
download | gentoo-0b884529301729a796ea52db4438cb176ce7416e.tar.gz gentoo-0b884529301729a796ea52db4438cb176ce7416e.tar.bz2 gentoo-0b884529301729a796ea52db4438cb176ce7416e.zip |
dev-libs/sway: version bump to 0.15.2
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'dev-libs/sway')
-rw-r--r-- | dev-libs/sway/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/sway/sway-0.15.2.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest index 7d5ca1734a54..adb833c4ffa4 100644 --- a/dev-libs/sway/Manifest +++ b/dev-libs/sway/Manifest @@ -1 +1,2 @@ DIST sway-0.15.1.tar.gz 5395223 BLAKE2B b5803f6858f2fa9e70fef75f888970c05cf0ccb4f69ea520ec5121b683780d9ad7bd182ae9d1d4f53612e71a70c594e063a5adf94246318cefce67576e202253 SHA512 5a972fb58ab7f352f206694299832f7bcbeb053419ac47504041dccbbb55433a8de8ec06e3fa38aab259694f1a2042d2a2f920db16cb32dfcc1ac5344017de09 +DIST sway-0.15.2.tar.gz 5398956 BLAKE2B 6bb527e802b7837ef39cb1e29597d55fd33831231dbfb7f12225e50c38e49ae17d8bf2eb43672c195c6e074986d254b1680bac7c9d60b80b84feaf07e09718df SHA512 c457ace514f5c69ebd366d313cce93a76b199bb51c7540debc9c0586bff490401e6374f9725c784474afdfcca15bcab686a972c6c178117e45e2de83825ed370 diff --git a/dev-libs/sway/sway-0.15.2.ebuild b/dev-libs/sway/sway-0.15.2.ebuild new file mode 100644 index 000000000000..4c02b8d32662 --- /dev/null +++ b/dev-libs/sway/sway-0.15.2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 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/swaywm/sway/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~arm64 ~amd64 ~x86" +IUSE="+gdk-pixbuf +swaybar +swaybg swaygrab swaylock +swaymsg systemd +tray wallpapers zsh-completion" + +REQUIRED_USE="tray? ( swaybar )" + +RDEPEND=">=dev-libs/wlc-0.0.8[systemd=] + dev-libs/json-c:0= + dev-libs/libpcre + dev-libs/libinput + dev-libs/wayland + sys-libs/libcap + x11-libs/libxkbcommon + x11-libs/cairo + x11-libs/pango + gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] ) + swaylock? ( virtual/pam ) + tray? ( sys-apps/dbus )" + +DEPEND="${RDEPEND} + app-text/asciidoc + virtual/pkgconfig" + +src_prepare() { + cmake-utils_src_prepare + + # remove bad CFLAGS that upstream is trying to add + sed -i -e '/add_compile_options/s/-Werror//' 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] +} |