Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sway/
Date: Wed, 28 Dec 2016 00:18:24
Message-Id: 1482883568.e263cf48778a841512e250eae4ce151a824f65ae.monsieurp@gentoo
1 commit: e263cf48778a841512e250eae4ce151a824f65ae
2 Author: Mykyta Holubakha <hilobakho <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 27 21:10:40 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 00:06:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e263cf48
7
8 dev-libs/sway: version bump to 0.11.
9
10 Closes: https://github.com/gentoo/gentoo/pull/3257
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 dev-libs/sway/Manifest | 1 +
15 dev-libs/sway/sway-0.11.ebuild | 77 ++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 78 insertions(+)
17
18 diff --git a/dev-libs/sway/Manifest b/dev-libs/sway/Manifest
19 index b067eea..cafbe3f 100644
20 --- a/dev-libs/sway/Manifest
21 +++ b/dev-libs/sway/Manifest
22 @@ -1,2 +1,3 @@
23 DIST sway-0.10.tar.gz 11016470 SHA256 9723baf037cf7e9de557e4ca9a54280594962ec1cf85e736592b860789b447f1 SHA512 2a8d6c716956848f30fe680945e0106bf310597926708da24a76853fcf384dbcfb09882692eaa88a5d62171500028ff9ae21082f4aca6386dc0c346d847943c2 WHIRLPOOL 90e3e21df81ea630165d3a8bbd8c814154a8c0e44997e92d410263c22b480139595dc974aaceea9d1b817b980a3a3f627ba9c140c3a3abf0f72ae8ed4f83fca3
24 +DIST sway-0.11.tar.gz 11027681 SHA256 3d4d18afc849db8704d8da9cb69eb121ea92b27d7fa556acdcc6708f05c84964 SHA512 4cd69c83a0c8815ddc1663b4cd4b69c8d99d6d9d2a030e575c544836e3dfba445bc6407f7eaf97c0d7fdefd62e3ceed4206195ad91701f840ec8686f3b75989c WHIRLPOOL 72b663418c848c4a989d3d277761399dfdca046ebeac972e523b7fe78caee030bf4bbb9e3dd068b712f1a931feedbd214005989aa5fd5b6f877e42fe1f9d0873
25 DIST sway-0.9.tar.gz 11010131 SHA256 dc98fe5abd084dbf059fdf19b5b40e44b5c7ac75a5b704b47a6b53c9f489f42d SHA512 546af976379f50314567472766fe801dc15e84057bc1bd4d8b9b8c02ddc897ce3ece264a429bcc7c44f6fa2f7a58ed65f92d5a194951297c5d37dbb8085658cf WHIRLPOOL de3bbc9139d851088018a57a1668edbe585701960e705881f36e9c6077475fd80d40a44a37bb2ddbe74378dbc169aa947e08da975208e2a5904722f6c81b5af3
26
27 diff --git a/dev-libs/sway/sway-0.11.ebuild b/dev-libs/sway/sway-0.11.ebuild
28 new file mode 100644
29 index 00000000..a52e617
30 --- /dev/null
31 +++ b/dev-libs/sway/sway-0.11.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit eutils cmake-utils fcaps
40 +
41 +DESCRIPTION="i3-compatible Wayland window manager"
42 +HOMEPAGE="http://swaywm.org/"
43 +
44 +SRC_URI="https://github.com/SirCmpwn/sway/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+swaybg +swaybar +swaymsg swaygrab swaylock +gdk-pixbuf zsh-completion wallpapers systemd"
50 +
51 +RDEPEND=">=dev-libs/wlc-0.0.5[systemd=]
52 + dev-libs/json-c
53 + dev-libs/libpcre
54 + dev-libs/libinput
55 + x11-libs/libxkbcommon
56 + dev-libs/wayland
57 + sys-libs/libcap
58 + x11-libs/pango
59 + x11-libs/cairo
60 + swaylock? ( virtual/pam )
61 + gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] )"
62 +
63 +DEPEND="${RDEPEND}
64 + virtual/pkgconfig
65 + app-text/asciidoc"
66 +
67 +src_prepare() {
68 + default
69 +
70 + # remove bad CFLAGS that upstream is trying to add
71 + sed -i -e '/FLAGS.*-Werror/d' CMakeLists.txt || die
72 +}
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -Denable-swaybar=$(usex swaybar)
77 + -Denable-swaybg=$(usex swaybg)
78 + -Denable-swaygrab=$(usex swaygrab)
79 + -Denable-swaylock=$(usex swaylock)
80 + -Denable-swaymsg=$(usex swaymsg)
81 +
82 + -Ddefault-wallpaper=$(usex wallpapers)
83 +
84 + -Denable-gdk-pixbuf=$(usex gdk-pixbuf)
85 + -Dzsh-completions=$(usex zsh-completion)
86 +
87 + -DCMAKE_INSTALL_SYSCONFDIR="/etc"
88 + )
89 +
90 + cmake-utils_src_configure
91 +}
92 +
93 +src_install() {
94 + cmake-utils_src_install
95 +
96 + use !systemd && fperms u+s /usr/bin/sway
97 +}
98 +
99 +FILECAPS=( cap_sys_ptrace usr/bin/sway )
100 +
101 +pkg_postinst() {
102 + fcaps_pkg_postinst
103 + if use swaygrab
104 + then
105 + optfeature "swaygrab screenshot support" media-gfx/imagemagick[png]
106 + optfeature "swaygrab video capture support" virtual/ffmpeg
107 + fi
108 + optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland]
109 +}