diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-05-29 19:31:18 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-06-11 20:21:35 +0200 |
commit | b77d068b17a5e27c659fb258f6ac0cce3dc0fb71 (patch) | |
tree | 2a1befd14dd33abc46752a1520c9270079f782d1 | |
parent | net-voip/mumble: Switch IUSE=pulseaudio to media-libs/libpulse (diff) | |
download | gentoo-b77d068b17a5e27c659fb258f6ac0cce3dc0fb71.tar.gz gentoo-b77d068b17a5e27c659fb258f6ac0cce3dc0fb71.tar.bz2 gentoo-b77d068b17a5e27c659fb258f6ac0cce3dc0fb71.zip |
x11-misc/i3status: EAPI 8 bump, switch to media-libs/libpulse
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | x11-misc/i3status/i3status-2.14-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/x11-misc/i3status/i3status-2.14-r1.ebuild b/x11-misc/i3status/i3status-2.14-r1.ebuild new file mode 100644 index 000000000000..4e7bd55d627b --- /dev/null +++ b/x11-misc/i3status/i3status-2.14-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 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" + +BDEPEND="virtual/pkgconfig" +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} + app-text/asciidoc + app-text/xmlto +" + +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 +} + +src_configure() { + local emesonargs=( + $(meson_use pulseaudio pulseaudio) + ) + 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}" +} |