diff options
author | Jasen Borisov <tajjada@gmail.com> | 2016-05-12 06:36:22 +0100 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-05-13 11:34:40 +0800 |
commit | 505d988c75634917f1fb7b143b03b141700e75e1 (patch) | |
tree | 81e405dd2623fac81f70b36fde44e7d131db5477 /dev-libs | |
parent | dev-libs/wlc: add postinst message about Xwayland. (diff) | |
download | gentoo-505d988c75634917f1fb7b143b03b141700e75e1.tar.gz gentoo-505d988c75634917f1fb7b143b03b141700e75e1.tar.bz2 gentoo-505d988c75634917f1fb7b143b03b141700e75e1.zip |
dev-libs/sway: add version 0.6 and live ebuild.
Will be maintained by Jasen Borisov <tajjada@gmail.com>
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 <idella4@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/sway/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/sway/metadata.xml | 33 | ||||
-rw-r--r-- | dev-libs/sway/sway-0.6.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/sway/sway-9999.ebuild | 71 |
4 files changed, 176 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tajjada@gmail.com</email> + <name>Jasen Borisov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + "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. + </longdescription> + <use> + <flag name="gdk-pixbuf">Enable additional image format support via the gdk-pixbuf library.</flag> + <flag name="swaybar">Build 'swaybar': sway's status bar component.</flag> + <flag name="swaybg">Build 'swaybg': allows to set a desktop background image.</flag> + <flag name="swaygrab">Build 'swaygrab': allows taking screenshots or screencasts.</flag> + <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> + </use> +</pkgmetadata> 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 +} |