1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Status bar for i3bar, dzen2, xmobar or similar
9 HOMEPAGE= https://i3wm.org/i3status/
13 SITES[main]= https://i3wm.org/i3status/
14 DISTFILE[1]= i3status-2.14.tar.xz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= asciidoc:single:standard
24 libconfuse:dev:standard
25 BUILDRUN_DEPENDS= libconfuse:primary:standard
27 B_DEPS[linux]= alsa-lib:dev:standard
28 BR_DEPS[linux]= alsa-lib:primary:standard
30 USES= meson pkgconfig perl:build
32 LICENSE= BSD3CLAUSE:single
33 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
36 FPC_EQUIVALENT= x11/i3status
37 MESON_ARGS= -Ddocs=true
40 -Ddocdir=share/docs/i3status
43 ${MV} ${STAGEDIR}${PREFIX}/etc/i3status.conf \
44 ${STAGEDIR}${PREFIX}/etc/i3status.conf.sample
47 ${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/i3status.c
49 [FILE:466:descriptions/desc.single]
50 i3status is a small program (about 1500 SLOC) for generating a status bar
51 for dzen2, xmobar or similar programs. It is designed to be very efficient
52 by issuing a very small number of system calls, as one generally wants to
53 update such a status line every second. This ensures that even under high
54 load, your status bar is updated correctly. Also, it saves a bit of energy
55 by not hogging your CPU as much as spawning the corresponding amount of
60 5c4d0273410f9fa3301fd32065deda32e9617fcae8b3cb34793061bf21644924 68900 i3status-2.14.tar.xz
63 [FILE:75:manifests/plist.single]
64 @sample etc/i3status.conf.sample
66 share/man/man1/i3status.1.gz
69 [FILE:429:patches/patch-src_print__battery__info.c]
70 --- src/print_battery_info.c.orig 2021-11-09 07:27:11 UTC
71 +++ src/print_battery_info.c
72 @@ -593,7 +593,7 @@ void print_battery_info(battery_info_ctx
73 ctx->format_percentage = "%.00f%s";
76 -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__)
77 +#if defined(__OpenBSD__)
78 /* These OSes report battery time in minutes. */
83 [FILE:1321:patches/patch-src_print__disk__info.c]
84 --- src/print_disk_info.c.orig 2021-11-09 07:27:11 UTC
85 +++ src/print_disk_info.c
86 @@ -63,7 +63,7 @@ static int print_bytes_human(char *outwa
87 * Determines whether remaining bytes are below given threshold.
90 -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
91 +#if defined(__OpenBSD__) || defined(__APPLE__)
92 static bool below_threshold(struct statfs buf, const char *prefix_type, const char *threshold_type, const double low_threshold) {
94 static bool below_threshold(struct statvfs buf, const char *prefix_type, const char *threshold_type, const double low_threshold) {
95 @@ -124,17 +124,17 @@ void print_disk_info(disk_info_ctx_t *ct
99 -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
100 +#if defined(__OpenBSD__) || defined(__APPLE__)
103 - if (statfs(path, &buf) == -1)
104 + if (statfs(ctx->path, &buf) == -1)
108 -#elif defined(__NetBSD__)
109 +#elif defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
112 - if (statvfs(path, &buf) == -1)
113 + if (statvfs(ctx->path, &buf) == -1)
119 [FILE:1348:patches/patch-src_print__volume.c]
120 $NetBSD: patch-src_print__volume.c,v 1.3 2022/04/12 14:43:01 nia Exp $
122 Fix building on BSD. Upstream code was changed and the BSD paths
125 --- src/print_volume.c.orig 2021-11-09 07:27:11 UTC
126 +++ src/print_volume.c
127 @@ -250,8 +250,8 @@ void print_volume(volume_ctx_t *ctx) {
128 const char *devicename = "UNSUPPORTED"; /* TODO: implement support for this */
132 - asprintf(&mixerpath, "/dev/mixer%d", mixer_idx);
133 + if (ctx->mixer_idx > 0)
134 + asprintf(&mixerpath, "/dev/mixer%d", ctx->mixer_idx);
136 mixerpath = defaultmixer;
138 @@ -264,7 +264,7 @@ void print_volume(volume_ctx_t *ctx) {
143 + if (ctx->mixer_idx > 0)
146 #if defined(__NetBSD__) || defined(__OpenBSD__)
147 @@ -330,7 +330,7 @@ void print_volume(volume_ctx_t *ctx) {
150 START_COLOR("color_degraded");
152 + ctx->fmt = ctx->fmt_muted;
156 @@ -351,7 +351,7 @@ void print_volume(volume_ctx_t *ctx) {
160 - buffer = apply_volume_format(fmt, buffer, vol & 0x7f, devicename);
161 + ctx->buf = apply_volume_format(ctx->fmt, vol & 0x7f, devicename);
163 goto out_with_format;