blob: b4269c54cc78f35d9fe51d27daa5f9d072b74b24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake python-single-r1
DESCRIPTION="A fast and easy-to-use tool for creating status bars"
HOMEPAGE="https://github.com/polybar/polybar"
SRC_URI="https://github.com/polybar/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
IUSE="alsa curl doc i3wm ipc mpd network pulseaudio"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep 'x11-base/xcb-proto[${PYTHON_USEDEP}]')
dev-libs/libuv:=
media-libs/fontconfig
media-libs/freetype
x11-base/xorg-proto
x11-libs/cairo[X,xcb(+)]
x11-libs/libxcb:=
x11-libs/xcb-util
x11-libs/xcb-util-cursor
x11-libs/xcb-util-image
x11-libs/xcb-util-wm
x11-libs/xcb-util-xrm
alsa? ( media-libs/alsa-lib )
curl? ( net-misc/curl )
doc? ( dev-python/sphinx )
i3wm? (
dev-libs/jsoncpp:=
x11-wm/i3
)
mpd? ( media-libs/libmpdclient )
network? ( dev-libs/libnl:3 )
pulseaudio? ( media-libs/libpulse )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-gcc15-cstdint-includes.patch"
)
src_configure() {
local mycmakeargs=(
-DENABLE_ALSA="$(usex alsa)"
-DENABLE_CURL="$(usex curl)"
-DBUILD_DOC="$(usex doc)"
-DENABLE_I3="$(usex i3wm)"
-DBUILD_POLYBAR_MSG="$(usex ipc)"
-DENABLE_MPD="$(usex mpd)"
-DENABLE_NETWORK="$(usex network)"
-DENABLE_PULSEAUDIO="$(usex pulseaudio)"
# Bug 767949
-DENABLE_CCACHE="OFF"
-DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc/"
)
cmake_src_configure
}
|