Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-wm/sway/
Date: Mon, 11 Oct 2021 15:24:31
Message-Id: 1633965864.a93deaf82ad074df0b6703680bde622164c88d77.prometheanfire@gentoo
1 commit: a93deaf82ad074df0b6703680bde622164c88d77
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 11 15:24:15 2021 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 11 15:24:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a93deaf8
7
8 gui-wm/sway: update deps, use more meson eclass functions
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 gui-wm/sway/sway-9999.ebuild | 32 +++++++++-----------------------
14 1 file changed, 9 insertions(+), 23 deletions(-)
15
16 diff --git a/gui-wm/sway/sway-9999.ebuild b/gui-wm/sway/sway-9999.ebuild
17 index cfaa40e0985..799f71a6a9d 100644
18 --- a/gui-wm/sway/sway-9999.ebuild
19 +++ b/gui-wm/sway/sway-9999.ebuild
20 @@ -44,8 +44,8 @@ if [[ ${PV} == 9999 ]]; then
21 DEPEND+="~gui-libs/wlroots-9999:=[X=]"
22 else
23 DEPEND+="
24 - >=gui-libs/wlroots-0.14:=[X=]
25 - <gui-libs/wlroots-0.15:=[X=]
26 + >=gui-libs/wlroots-0.15:=[X=]
27 + <gui-libs/wlroots-0.16:=[X=]
28 "
29 fi
30 RDEPEND="
31 @@ -54,7 +54,7 @@ RDEPEND="
32 "
33 BDEPEND="
34 >=dev-libs/wayland-protocols-1.14
35 - >=dev-util/meson-0.53.0
36 + >=dev-util/meson-0.59.0
37 virtual/pkgconfig
38 "
39 if [[ ${PV} == 9999 ]]; then
40 @@ -63,22 +63,14 @@ else
41 BDEPEND+="man? ( >=app-text/scdoc-1.9.3 )"
42 fi
43
44 -src_prepare() {
45 - default
46 -
47 - use swaybar || sed -e "s/subdir('swaybar')//g" -e "/sway-bar.[0-9].scd/d" \
48 - -e "/completions\/[a-z]\+\/_\?swaybar/d" -i meson.build || die
49 - use swaymsg || sed -e "s/subdir('swaymsg')//g" -e "/swaymsg.[0-9].scd/d" \
50 - -e "/completions\/[a-z]\+\/_\?swaymsg/d" -i meson.build || die
51 - use swaynag || sed -e "s/subdir('swaynag')//g" -e "/swaynag.[0-9].scd/d" \
52 - -e "/completions\/[a-z]\+\/_\?swaynag/d" -i meson.build || die
53 -}
54 -
55 src_configure() {
56 local emesonargs=(
57 - -Dman-pages=$(usex man enabled disabled)
58 - -Dtray=$(usex tray enabled disabled)
59 - -Dxwayland=$(usex X enabled disabled)
60 + $(meson_feature man man-pages)
61 + $(meson_feature tray)
62 + $(meson_feature X xwayland)
63 + $(meson_feature swaybar gdk-pixbuf)
64 + $(meson_use swaynag)
65 + $(meson_use swaybar)
66 $(meson_use wallpapers default-wallpaper)
67 -Dfish-completions=true
68 -Dzsh-completions=true
69 @@ -86,11 +78,5 @@ src_configure() {
70 -Dwerror=false
71 )
72
73 - if use swaybar; then
74 - emesonargs+=( -Dgdk-pixbuf=enabled )
75 - else
76 - emesonargs+=( -Dgdk-pixbuf=disabled )
77 - fi
78 -
79 meson_src_configure
80 }