blob: 94cf9bebbfa7e6de22f68a352e938ea8d089da25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://codeberg.org/dnkl/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
else
inherit git-r3
EGIT_REPO_URI="https://codeberg.org/dnkl/${PN}.git"
fi
DESCRIPTION="Simplistic and highly configurable status panel for X and Wayland"
HOMEPAGE="https://codeberg.org/dnkl/yambar"
LICENSE="MIT"
SLOT="0"
IUSE="core +alsa +backlight +battery +clock +cpu +disk-io +dwl +foreign-toplevel +memory +mpd +i3 +label +network +pipewire +pulseaudio +removables +river +script sway-xkb wayland X xkb xwindow"
REQUIRED_USE="
|| ( wayland X )
sway-xkb? ( wayland )
xkb? ( X )
xwindow? ( X )
"
RDEPEND="
>=media-libs/fcft-2.4.0
dev-libs/libyaml
alsa? ( media-libs/alsa-lib )
backlight? ( virtual/libudev:= )
battery? ( virtual/libudev:= )
mpd? ( media-libs/libmpdclient )
pipewire? (
dev-libs/json-c
media-video/pipewire
)
pulseaudio? ( media-libs/libpulse )
removables? ( virtual/libudev:= )
sway-xkb? ( dev-libs/json-c )
x11-libs/pixman
X? (
x11-libs/libxcb:0=[xkb]
x11-libs/xcb-util
x11-libs/xcb-util-cursor
x11-libs/xcb-util-wm
)
wayland? ( dev-libs/wayland )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-text/scdoc
>=dev-libs/tllist-1.0.1
>=dev-util/meson-0.53.0
virtual/pkgconfig
wayland? (
dev-libs/wayland-protocols
dev-util/wayland-scanner
)
"
src_configure() {
local emesonargs=(
$(meson_feature wayland backend-wayland)
$(meson_feature X backend-x11)
$(meson_use core core-plugins-as-shared-libraries)
$(meson_feature alsa plugin-alsa)
$(meson_feature backlight plugin-backlight)
$(meson_feature battery plugin-battery)
$(meson_feature clock plugin-clock)
$(meson_feature cpu plugin-cpu)
$(meson_feature disk-io plugin-disk-io)
$(meson_feature dwl plugin-dwl)
$(meson_feature foreign-toplevel plugin-foreign-toplevel)
$(meson_feature memory plugin-mem)
$(meson_feature mpd plugin-mpd)
$(meson_feature i3 plugin-i3)
$(meson_feature label plugin-label)
$(meson_feature network plugin-network)
$(meson_feature pipewire plugin-pipewire)
$(meson_feature pulseaudio plugin-pulse)
$(meson_feature removables plugin-removables)
$(meson_feature river plugin-river)
$(meson_feature script plugin-script)
$(meson_feature sway-xkb plugin-sway-xkb)
$(meson_feature xkb plugin-xkb)
$(meson_feature xwindow plugin-xwindow)
-Dwerror=false
)
meson_src_configure
}
src_install() {
meson_src_install
rm -rf "${D}/usr/share/doc/${PN}"
}
|