From 505d988c75634917f1fb7b143b03b141700e75e1 Mon Sep 17 00:00:00 2001 From: Jasen Borisov Date: Thu, 12 May 2016 06:36:22 +0100 Subject: dev-libs/sway: add version 0.6 and live ebuild. Will be maintained by Jasen Borisov as part of the Gentoo Proxy Maintainers program. Extensively reviewed by many via both IRC & commmentary via the pull request Package-Manager: portage-2.2.28 Closes: https://github.com/gentoo/gentoo/pull/1458 Signed-off-by: Ian Delaney --- dev-libs/sway/Manifest | 1 + dev-libs/sway/metadata.xml | 33 ++++++++++++++++++++ dev-libs/sway/sway-0.6.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++++ dev-libs/sway/sway-9999.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 dev-libs/sway/Manifest create mode 100644 dev-libs/sway/metadata.xml create mode 100644 dev-libs/sway/sway-0.6.ebuild create mode 100644 dev-libs/sway/sway-9999.ebuild (limited to 'dev-libs/sway') diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest new file mode 100644 index 000000000000..cafdebc0ff97 --- /dev/null +++ b/dev-libs/sway/Manifest @@ -0,0 +1 @@ +DIST sway-0.6.tar.gz 10995907 SHA256 a9159033ca3e976383cc9485bcb10fe89485711c4577d8c7414d8f23c56e54ea SHA512 b38455183b8a488fd5f2721356864bd4d28a4bcb5f0ce54f1a6b1c013e75c758fb2a429f549d8f78a2284a79721048333003fd040b70d26169c5eb900b20acd2 WHIRLPOOL 1df951d1d962f8951471613a2c4eeccfd2c4561565297eb077776c38ee42aeea9bbbe702454d8a4ef06f36b21d3dfaf56d4461565cb8b522adb5af71a899e66e diff --git a/dev-libs/sway/metadata.xml b/dev-libs/sway/metadata.xml new file mode 100644 index 000000000000..45bddf64f7d8 --- /dev/null +++ b/dev-libs/sway/metadata.xml @@ -0,0 +1,33 @@ + + + + + tajjada@gmail.com + Jasen Borisov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + "SirCmpwn's Wayland window manager" is an i3-compatible window manager + for Wayland. + + sway was created to fill the need of an i3-like window manager for + Wayland. The upstream i3 developers have no intention of porting i3 to + Wayland, and projects proposed by others ended up as vaporware. Many + thanks to the i3 folks for providing such a great piece of software, so + good that your users would rather write an entirely new window manager + from scratch that behaved *exactly* like i3 rather than switch to + something else. + + + Enable additional image format support via the gdk-pixbuf library. + Build 'swaybar': sway's status bar component. + Build 'swaybg': allows to set a desktop background image. + Build 'swaygrab': allows taking screenshots or screencasts. + Build 'swaylock': sway's screen locker. + Build 'swaymsg': tool for communicating with a running sway instance. + Install sway's default wallpaper image. + + diff --git a/dev-libs/sway/sway-0.6.ebuild b/dev-libs/sway/sway-0.6.ebuild new file mode 100644 index 000000000000..e87b63f666fd --- /dev/null +++ b/dev-libs/sway/sway-0.6.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="swaylock swaybg swaybar swaygrab swaymsg gdk-pixbuf zsh-completion wallpapers systemd" + +RDEPEND="dev-libs/wlc[systemd=] + dev-libs/json-c + dev-libs/libpcre + dev-libs/libinput + x11-libs/libxkbcommon + dev-libs/wayland + x11-libs/pango + x11-libs/cairo + swaylock? ( virtual/pam ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )" + +DEPEND="${RDEPEND} + app-text/asciidoc" + +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 +} + +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 +} + +pkg_postinst() { + if use swaygrab + then + optfeature "swaygrab screenshot support" media-gfx/imagemagick[png] + optfeature "swaygrab video capture support" virtual/ffmpeg + fi +} diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild new file mode 100644 index 000000000000..4a2b39bf0291 --- /dev/null +++ b/dev-libs/sway/sway-9999.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit git-r3 eutils cmake-utils + +DESCRIPTION="i3-compatible Wayland window manager" +HOMEPAGE="http://swaywm.org/" + +EGIT_REPO_URI="https://github.com/SirCmpwn/sway.git" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="swaylock swaybg swaybar swaygrab swaymsg gdk-pixbuf zsh-completion wallpapers systemd" + +RDEPEND="=dev-libs/wlc-9999[systemd=] + dev-libs/json-c + dev-libs/libpcre + dev-libs/libinput + x11-libs/libxkbcommon + dev-libs/wayland + x11-libs/pango + x11-libs/cairo + swaylock? ( virtual/pam ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )" + +DEPEND="${RDEPEND} + app-text/asciidoc" + +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 +} + +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 +} + +pkg_postinst() { + if use swaygrab + then + optfeature "swaygrab screenshot support" media-gfx/imagemagick[png] + optfeature "swaygrab video capture support" virtual/ffmpeg + fi +} -- cgit v1.2.3-65-gdbad