Skip to content

Commit b069537

Browse files
authored
Merge pull request #2144 from LukashonakV/cava_bump
2 parents e4faf25 + f5ef13c commit b069537

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

Dockerfiles/gentoo

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN export FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -sandbox -usersa
88
emerge --verbose --update --deep --with-bdeps=y --backtrack=30 --newuse @world && \
99
USE="wayland gtk3 gtk -doc X" emerge dev-vcs/git dev-libs/wayland dev-libs/wayland-protocols =dev-cpp/gtkmm-3.24.6 x11-libs/libxkbcommon \
1010
x11-libs/gtk+:3 dev-libs/libdbusmenu dev-libs/libnl sys-power/upower media-libs/libpulse dev-libs/libevdev media-libs/libmpdclient \
11-
media-sound/sndio gui-libs/gtk-layer-shell app-text/scdoc media-sound/playerctl
11+
media-sound/sndio gui-libs/gtk-layer-shell app-text/scdoc media-sound/playerctl dev-libs/iniparser

meson.build

+5-7
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,11 @@ if get_option('experimental')
341341
add_project_arguments('-DUSE_EXPERIMENTAL', language: 'cpp')
342342
endif
343343

344-
cava = compiler.find_library('cava',
345-
required: get_option('cava'))
346-
if not cava.found() and not get_option('cava').disabled()
347-
cava = dependency('cava',
348-
required: false,
349-
fallback: [ 'cava', 'cava_dep' ])
350-
endif
344+
cava = dependency('cava',
345+
version : '>=0.8.4',
346+
required: get_option('cava'),
347+
fallback : ['cava', 'cava_dep'],
348+
not_found_message: 'cava is not found. Building waybar without cava')
351349

352350
if cava.found()
353351
add_project_arguments('-DHAVE_LIBCAVA', language: 'cpp')

src/modules/network.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
497497

498498
net->ifname_ = new_ifname;
499499
net->ifid_ = ifi->ifi_index;
500-
if (ifi->ifi_flags & IFF_POINTOPOINT)
501-
net->is_p2p_ = true;
500+
if (ifi->ifi_flags & IFF_POINTOPOINT) net->is_p2p_ = true;
502501
if (carrier.has_value()) {
503502
net->carrier_ = carrier.value();
504503
}
@@ -543,8 +542,7 @@ int waybar::modules::Network::handleEvents(struct nl_msg *msg, void *data) {
543542
for (; RTA_OK(ifa_rta, attrlen); ifa_rta = RTA_NEXT(ifa_rta, attrlen)) {
544543
switch (ifa_rta->rta_type) {
545544
case IFA_ADDRESS:
546-
if (net->is_p2p_)
547-
continue;
545+
if (net->is_p2p_) continue;
548546
case IFA_LOCAL:
549547
char ipaddr[INET6_ADDRSTRLEN];
550548
if (!is_del_event) {

subprojects/cava.wrap

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[wrap-file]
2-
directory = cava-0.8.3
3-
source_url = https://github.com/LukashonakV/cava/archive/0.8.3.tar.gz
4-
source_filename = cava-0.8.3.tar.gz
5-
source_hash = 10f9ec910682102c47dc39d684fd3fc90d38a4d1c2e5a310f132f70ad0e00850
2+
directory = cava-0.8.4
3+
source_url = https://github.com/LukashonakV/cava/archive/0.8.4.tar.gz
4+
source_filename = cava-0.8.4.tar.gz
5+
source_hash = 523353f446570277d40b8e1efb84468d70fdec53e1356a555c14bf466557a3ed
66
[provide]
77
cava = cava_dep

0 commit comments

Comments
 (0)