Ravenports generated: 12 Feb 2024 04:56
[ravenports.git] / bucket_ED / i3status
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               i3status
4 VERSION=                2.14
5 REVISION=               1
6 KEYWORDS=               x11
7 VARIANTS=               standard
8 SDESC[standard]=        Status bar for i3bar, dzen2, xmobar or similar
9 HOMEPAGE=               https://i3wm.org/i3status/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://i3wm.org/i3status/
14 DISTFILE[1]=            i3status-2.14.tar.xz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILD_DEPENDS=          asciidoc:single:standard
22                         xmlto:single:standard
23                         bash:primary:standard
24                         libconfuse:dev:standard
25 BUILDRUN_DEPENDS=       libconfuse:primary:standard
26                         yajl:single:standard
27 B_DEPS[linux]=          alsa-lib:dev:standard
28 BR_DEPS[linux]=         alsa-lib:primary:standard
29
30 USES=                   meson pkgconfig perl:build
31
32 LICENSE=                BSD3CLAUSE:single
33 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/LICENSE
34 LICENSE_SCHEME=         solo
35
36 FPC_EQUIVALENT=         x11/i3status
37 MESON_ARGS=             -Ddocs=true
38                         -Dmans=true
39                         -Dpulseaudio=false
40                         -Ddocdir=share/docs/i3status
41
42 post-install:
43         ${MV} ${STAGEDIR}${PREFIX}/etc/i3status.conf \
44                 ${STAGEDIR}${PREFIX}/etc/i3status.conf.sample
45
46 pre-configure:
47         ${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g' ${WRKSRC}/i3status.c
48
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
56 shell commands would.
57
58
59 [FILE:99:distinfo]
60 5c4d0273410f9fa3301fd32065deda32e9617fcae8b3cb34793061bf21644924        68900 i3status-2.14.tar.xz
61
62
63 [FILE:75:manifests/plist.single]
64 @sample etc/i3status.conf.sample
65 bin/i3status
66 share/man/man1/i3status.1.gz
67
68
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";
74      }
75  #endif
76 -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__OpenBSD__)
77 +#if defined(__OpenBSD__)
78      /* These OSes report battery time in minutes. */
79      hide_seconds = true;
80  #endif
81
82
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.
88   *
89   */
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) {
93  #else
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
96  
97      INSTANCE(ctx->path);
98  
99 -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
100 +#if defined(__OpenBSD__) || defined(__APPLE__)
101      struct statfs buf;
102  
103 -    if (statfs(path, &buf) == -1)
104 +    if (statfs(ctx->path, &buf) == -1)
105          return;
106  
107      mounted = true;
108 -#elif defined(__NetBSD__)
109 +#elif defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
110      struct statvfs buf;
111  
112 -    if (statvfs(path, &buf) == -1)
113 +    if (statvfs(ctx->path, &buf) == -1)
114          return;
115  
116      mounted = true;
117
118
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 $
121
122 Fix building on BSD. Upstream code was changed and the BSD paths
123 were not tested.
124
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 */
129      pbval = 1;
130  
131 -    if (mixer_idx > 0)
132 -        asprintf(&mixerpath, "/dev/mixer%d", mixer_idx);
133 +    if (ctx->mixer_idx > 0)
134 +        asprintf(&mixerpath, "/dev/mixer%d", ctx->mixer_idx);
135      else
136          mixerpath = defaultmixer;
137  
138 @@ -264,7 +264,7 @@ void print_volume(volume_ctx_t *ctx) {
139          goto out;
140      }
141  
142 -    if (mixer_idx > 0)
143 +    if (ctx->mixer_idx > 0)
144          free(mixerpath);
145  
146  #if defined(__NetBSD__) || defined(__OpenBSD__)
147 @@ -330,7 +330,7 @@ void print_volume(volume_ctx_t *ctx) {
148  
149          if (vinfo.un.ord) {
150              START_COLOR("color_degraded");
151 -            fmt = fmt_muted;
152 +            ctx->fmt = ctx->fmt_muted;
153              pbval = 0;
154          }
155      }
156 @@ -351,7 +351,7 @@ void print_volume(volume_ctx_t *ctx) {
157      }
158  
159  #endif
160 -    buffer = apply_volume_format(fmt, buffer, vol & 0x7f, devicename);
161 +    ctx->buf = apply_volume_format(ctx->fmt, vol & 0x7f, devicename);
162      close(mixfd);
163      goto out_with_format;
164  #endif
165