1 |
commit: 017aa49e21f78f5518ce4e419df47d4f843b1ba4 |
2 |
Author: Niccolò Scatena <speedjack95 <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Oct 22 15:55:10 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 8 22:12:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=017aa49e |
7 |
|
8 |
dev-libs/sway: update live version 9999. |
9 |
|
10 |
Now version 9999 should build from upstream master branch. |
11 |
|
12 |
Signed-off-by: Niccolò Scatena <speedjack95 <AT> gmail.com> |
13 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
dev-libs/sway/sway-9999.ebuild | 111 ++++++++++++++++++++++------------------- |
17 |
1 file changed, 61 insertions(+), 50 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/sway/sway-9999.ebuild b/dev-libs/sway/sway-9999.ebuild |
20 |
index 68d15fce04a..381dbbb1a60 100644 |
21 |
--- a/dev-libs/sway/sway-9999.ebuild |
22 |
+++ b/dev-libs/sway/sway-9999.ebuild |
23 |
@@ -1,83 +1,94 @@ |
24 |
# Copyright 1999-2018 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=7 |
29 |
|
30 |
-inherit git-r3 eutils cmake-utils |
31 |
+if [[ ${PV} == 9999 ]] ; then |
32 |
+ EGIT_REPO_URI="https://github.com/swaywm/sway.git" |
33 |
+ inherit git-r3 |
34 |
+else |
35 |
+ # Version format: major.minor-beta.betanum |
36 |
+ SWAY_PV="$(ver_cut 1-2)-$(ver_cut 3).$(ver_cut 4)" |
37 |
+ SRC_URI="https://github.com/swaywm/sway/archive/${SWAY_PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ S="${WORKDIR}/sway-${SWAY_PV}" |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+fi |
41 |
|
42 |
-DESCRIPTION="i3-compatible Wayland window manager" |
43 |
-HOMEPAGE="http://swaywm.org/" |
44 |
+inherit eutils fcaps meson pam |
45 |
|
46 |
-EGIT_REPO_URI="https://github.com/swaywm/sway.git" |
47 |
-EGIT_BRANCH="0.15" |
48 |
+DESCRIPTION="i3-compatible Wayland window manager" |
49 |
+HOMEPAGE="https://swaywm.org" |
50 |
|
51 |
LICENSE="MIT" |
52 |
SLOT="0" |
53 |
-KEYWORDS="" |
54 |
-IUSE="+gdk-pixbuf +swaybar +swaybg swaygrab swaylock +swaymsg systemd +tray wallpapers zsh-completion" |
55 |
+IUSE="elogind fish-completion +swaybar +swaybg +swaylock systemd +tray wallpapers X zsh-completion" |
56 |
+REQUIRED_USE="?? ( elogind systemd )" |
57 |
|
58 |
-REQUIRED_USE="tray? ( swaybar )" |
59 |
- |
60 |
-RDEPEND="=dev-libs/wlc-9999[systemd=] |
61 |
- dev-libs/json-c:0= |
62 |
+RDEPEND="~dev-libs/wlroots-9999[systemd=,elogind=,X=] |
63 |
+ >=dev-libs/json-c-0.13:0= |
64 |
+ >=dev-libs/libinput-1.6.0:0= |
65 |
dev-libs/libpcre |
66 |
- dev-libs/libinput |
67 |
dev-libs/wayland |
68 |
- sys-libs/libcap |
69 |
- x11-libs/libxkbcommon |
70 |
+ >=dev-libs/wayland-protocols-1.14 |
71 |
x11-libs/cairo |
72 |
+ x11-libs/libxkbcommon |
73 |
x11-libs/pango |
74 |
- gdk-pixbuf? ( x11-libs/gdk-pixbuf[jpeg] ) |
75 |
- swaylock? ( virtual/pam ) |
76 |
- tray? ( sys-apps/dbus )" |
77 |
- |
78 |
-DEPEND="${RDEPEND} |
79 |
- app-text/asciidoc |
80 |
+ x11-libs/pixman |
81 |
+ elogind? ( >=sys-auth/elogind-237 ) |
82 |
+ swaybar? ( x11-libs/gdk-pixbuf:2[jpeg] ) |
83 |
+ swaybg? ( x11-libs/gdk-pixbuf:2[jpeg] ) |
84 |
+ swaylock? ( |
85 |
+ virtual/pam |
86 |
+ x11-libs/gdk-pixbuf:2[jpeg] |
87 |
+ ) |
88 |
+ systemd? ( >=sys-apps/systemd-237 ) |
89 |
+ tray? ( >=sys-apps/dbus-1.10 ) |
90 |
+ X? ( x11-libs/libxcb:0=[xkb] )" |
91 |
+DEPEND="${RDEPEND}" |
92 |
+BDEPEND="app-text/scdoc |
93 |
virtual/pkgconfig" |
94 |
|
95 |
+FILECAPS=( cap_sys_admin usr/bin/sway ) |
96 |
+ |
97 |
src_prepare() { |
98 |
- cmake-utils_src_prepare |
99 |
+ default |
100 |
|
101 |
- # remove bad CFLAGS that upstream is trying to add |
102 |
- sed -i -e '/add_compile_options/s/-Werror//' CMakeLists.txt || die |
103 |
+ use swaybar || sed -e "s/subdir('swaybar')//g" -i meson.build || die |
104 |
+ use swaybg || sed -e "s/subdir('swaybg')//g" -i meson.build || die |
105 |
+ use swaylock || sed -e "s/subdir('swaylock')//g" -i meson.build || die |
106 |
} |
107 |
|
108 |
src_configure() { |
109 |
- local mycmakeargs=( |
110 |
- -Denable-swaybar=$(usex swaybar) |
111 |
- -Denable-swaybg=$(usex swaybg) |
112 |
- -Denable-swaygrab=$(usex swaygrab) |
113 |
- -Denable-swaylock=$(usex swaylock) |
114 |
- -Denable-swaymsg=$(usex swaymsg) |
115 |
- -Denable-tray=$(usex tray) |
116 |
- |
117 |
- -Ddefault-wallpaper=$(usex wallpapers) |
118 |
- |
119 |
- -Denable-gdk-pixbuf=$(usex gdk-pixbuf) |
120 |
- -Dzsh-completions=$(usex zsh-completion) |
121 |
- |
122 |
- -DCMAKE_INSTALL_SYSCONFDIR="/etc" |
123 |
+ local emesonargs=( |
124 |
+ $(meson_use wallpapers default-wallpaper) |
125 |
+ $(meson_use zsh-completion zsh-completions) |
126 |
+ $(meson_use fish-completion fish-completions) |
127 |
+ $(meson_use X enable-xwayland) |
128 |
+ "-Dbash-completions=true" |
129 |
+ "-Dwerror=false" |
130 |
) |
131 |
|
132 |
- cmake-utils_src_configure |
133 |
+ meson_src_configure |
134 |
} |
135 |
|
136 |
src_install() { |
137 |
- cmake-utils_src_install |
138 |
+ meson_src_install |
139 |
|
140 |
- use !systemd && fperms u+s /usr/bin/sway |
141 |
+ use swaylock && newpamd swaylock/pam/swaylock.linux swaylock |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
- if use swaygrab |
146 |
- then |
147 |
- optfeature "swaygrab screenshot support" media-gfx/imagemagick[png] |
148 |
- optfeature "swaygrab video capture support" virtual/ffmpeg |
149 |
- fi |
150 |
- if use tray |
151 |
- then |
152 |
+ elog "You must be in the input group to allow sway to access input devices!" |
153 |
+ local dbus_cmd="" |
154 |
+ if use tray ; then |
155 |
+ elog "" |
156 |
optfeature "experimental xembed tray icons support" kde-plasma/xembed-sni-proxy |
157 |
+ dbus_cmd="dbus-launch --sh-syntax --exit-with-session " |
158 |
+ fi |
159 |
+ if ! use systemd && ! use elogind ; then |
160 |
+ fcaps_pkg_postinst |
161 |
+ elog "" |
162 |
+ elog "If you use ConsoleKit2, remember to launch sway using:" |
163 |
+ elog "exec ck-launch-session ${dbus_cmd}sway" |
164 |
fi |
165 |
- optfeature "X11 applications support" dev-libs/wlc[xwayland] x11-base/xorg-server[wayland] |
166 |
- |
167 |
} |