x11-misc/i3status: add 2.15

Closes: https://bugs.gentoo.org/908843
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin 2025-12-15 08:37:40 +02:00
parent 326c9e1c0b
commit 82fe82e94f
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504
2 changed files with 59 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST i3status-2.14.tar.xz 68900 BLAKE2B e85019c2a95d50b6bd4adc6bc9dafb85c3a3d8cdaa93602a9c2af54e6818a4e58ad26f47e2c85b38744c12c08f52c4b5c1216e6f3215f8ee2f4152b42a547905 SHA512 10a1235cc314f5fc4dde4e1369a30f49118c95271f636c5803caa52d94d99ad8565b89fcd602d0c8aa7c830a79d3a3bb08e5ac8123cf07cfddc8ef0126b10f80
DIST i3status-2.15.tar.xz 70220 BLAKE2B 4c46e0f9f6cf28f4cbe24034c1d604699fc73ba8c8e0e8b6386e324b877d7c80cb127c8f951da657a63c5fb12a70bab262bd7aba76ff19900329aa3eeaa83928 SHA512 fc099abb6740a4989a1797bc298e57ed0c824598a3fac50d497060af53079a9d350bfc7748e75fa4194db05d3373254a03e94611f0a97a2ffe62cc023b2a2260

View File

@ -0,0 +1,58 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fcaps meson
DESCRIPTION="Generates a status bar for dzen2, xmobar or similar"
HOMEPAGE="https://i3wm.org/i3status/"
SRC_URI="https://i3wm.org/${PN}/${P}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="pulseaudio"
RDEPEND="
>=dev-libs/yajl-2.0.2:=
dev-libs/confuse:=
dev-libs/libnl:3
media-libs/alsa-lib
pulseaudio? ( || ( media-libs/libpulse media-sound/apulse[sdk] ) )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# Needs an ALSA master device, bug #840622
# Also skipped in CI:
# https://github.com/i3/i3status/blob/07ad5aef2deea1f10eb6c544593e7a87205f24f8/.github/workflows/main.yml#L34
rm -rf testcases/020-percentliteral-volume || die
if use elibc_musl; then
# musl errors out when a bad format string is used ("% % ")
rm -rf testcases/020-percentliteral-time || die
fi
}
src_configure() {
local emesonargs=(
$(meson_use pulseaudio pulseaudio)
-Ddocs=false # dist tarball includes prebuilt docs
-Dmans=false # dist tarball includes prebuilt manpages
)
meson_src_configure
}
pkg_postinst() {
fcaps cap_net_admin usr/bin/${PN}
elog "${PN} can be used with any of the following programs:"
elog " i3bar (x11-wm/i3)"
elog " x11-misc/xmobar"
elog " x11-misc/dzen"
elog "Please refer to manual: man ${PN}"
}