summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--metadata/md5-cache/x11-misc/polybar-3.7.2-r1016
-rw-r--r--metadata/pkg_desc_index1
-rw-r--r--x11-misc/polybar/Manifest1
-rw-r--r--x11-misc/polybar/files/polybar-3.7.2-freetype.patch11
-rw-r--r--x11-misc/polybar/files/polybar-3.7.2-gcc15-cstdint-includes.patch97
-rw-r--r--x11-misc/polybar/polybar-3.7.2-r10.ebuild72
6 files changed, 198 insertions, 0 deletions
diff --git a/metadata/md5-cache/x11-misc/polybar-3.7.2-r10 b/metadata/md5-cache/x11-misc/polybar-3.7.2-r10
new file mode 100644
index 00000000..4837047d
--- /dev/null
+++ b/metadata/md5-cache/x11-misc/polybar-3.7.2-r10
@@ -0,0 +1,16 @@
+BDEPEND=app-alternatives/ninja >=dev-build/cmake-3.20.5
+DEFINED_PHASES=compile configure install postinst prepare setup test
+DEPEND=python_single_target_python3_10? ( dev-lang/python:3.10 ) python_single_target_python3_11? ( dev-lang/python:3.11 ) python_single_target_python3_12? ( dev-lang/python:3.12 ) python_single_target_python3_13? ( dev-lang/python:3.13 ) python_single_target_python3_10? ( x11-base/xcb-proto[python_targets_python3_10(-)] ) python_single_target_python3_11? ( x11-base/xcb-proto[python_targets_python3_11(-)] ) python_single_target_python3_12? ( x11-base/xcb-proto[python_targets_python3_12(-)] ) python_single_target_python3_13? ( x11-base/xcb-proto[python_targets_python3_13(-)] ) 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 )
+DESCRIPTION=A fast and easy-to-use tool for creating status bars
+EAPI=8
+HOMEPAGE=https://github.com/polybar/polybar
+INHERIT=cmake optfeature python-single-r1
+IUSE=alsa curl doc i3wm ipc mpd network pulseaudio python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 python_single_target_python3_13
+KEYWORDS=amd64 ~riscv x86
+LICENSE=MIT
+RDEPEND=python_single_target_python3_10? ( dev-lang/python:3.10 ) python_single_target_python3_11? ( dev-lang/python:3.11 ) python_single_target_python3_12? ( dev-lang/python:3.12 ) python_single_target_python3_13? ( dev-lang/python:3.13 ) python_single_target_python3_10? ( x11-base/xcb-proto[python_targets_python3_10(-)] ) python_single_target_python3_11? ( x11-base/xcb-proto[python_targets_python3_11(-)] ) python_single_target_python3_12? ( x11-base/xcb-proto[python_targets_python3_12(-)] ) python_single_target_python3_13? ( x11-base/xcb-proto[python_targets_python3_13(-)] ) 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 )
+REQUIRED_USE=^^ ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 python_single_target_python3_13 )
+SLOT=0
+SRC_URI=https://github.com/polybar/polybar/releases/download/3.7.2/polybar-3.7.2.tar.gz
+_eclasses_=cmake c0c9c21d01b8a96d2d736c554daedc57 flag-o-matic e8de74bac929ba17427e740e95707d00 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 optfeature 538bce96e5589935b57e178e8635f301 python-single-r1 47d8ac9be330c9366112b78fd4f8ce57 python-utils-r1 d1be7a6de225276141d669742d56f3f3 toolchain-funcs f9d71a6efe9d083aec750dd13968e169 xdg-utils 42869b3c8d86a70ef3cf75165a395e09
+_md5_=31b14e6cb6ab0edf7e63bc1b1b9bdc8b
diff --git a/metadata/pkg_desc_index b/metadata/pkg_desc_index
index a86196e3..85f22d47 100644
--- a/metadata/pkg_desc_index
+++ b/metadata/pkg_desc_index
@@ -89,6 +89,7 @@ x11-libs/gtk+ 2.24.33-r6 3.24.48: Gimp ToolKit +
x11-misc/nvidia-prime 314: NVIDIA Prime Render Offload configuration and utilities
x11-misc/nvidia-settings 390.157-r7 470.256.02 550.144.03: NVIDIA Linux X11 Settings Utility
x11-misc/pcmanfm-qt-share 1337-r1: PCManFM-QT custom action to share folder using Samba
+x11-misc/polybar 3.7.2-r10: A fast and easy-to-use tool for creating status bars
x11-themes/material-icon-theme 1.314.1337-r2: Icon theme following the Google's material design specifications
x11-themes/redcore-artwork-calamares 1.314.1337-r6: Redcore Linux branding component for Calamares
x11-themes/redcore-artwork-community 1.314.1337-r1: Redcore Linux Community Wallpapers
diff --git a/x11-misc/polybar/Manifest b/x11-misc/polybar/Manifest
new file mode 100644
index 00000000..cd433c63
--- /dev/null
+++ b/x11-misc/polybar/Manifest
@@ -0,0 +1 @@
+DIST polybar-3.7.2.tar.gz 494383 BLAKE2B dda97c42de5f32a005ae6d4de737651278df0364187c735d7fa8a6d34e644b917ba3f32859cc19bd869c43f5d14f73ca734a4227651eb267724d808e4a766e08 SHA512 a0ee701533e101789f7eb95c71717ecf1d389a10b202d19261f9f71fee9d43fb8be17fb63e4a056c5e8bd62d2e669c95ee4d4b8c6bb06b933e1e4b26ab1a0624
diff --git a/x11-misc/polybar/files/polybar-3.7.2-freetype.patch b/x11-misc/polybar/files/polybar-3.7.2-freetype.patch
new file mode 100644
index 00000000..68807397
--- /dev/null
+++ b/x11-misc/polybar/files/polybar-3.7.2-freetype.patch
@@ -0,0 +1,11 @@
+diff '--color=auto' -Nur a/src/CMakeLists.txt b/src/CMakeLists.txt
+--- a/src/CMakeLists.txt 2024-08-17 12:39:55.000000000 +0100
++++ b/src/CMakeLists.txt 2025-05-06 10:14:10.645565586 +0100
+@@ -159,6 +159,7 @@
+ target_link_libraries(poly PUBLIC
+ Threads::Threads
+ Cairo::CairoFC
++ freetype
+ xpp
+ LibUV::LibUV
+ )
diff --git a/x11-misc/polybar/files/polybar-3.7.2-gcc15-cstdint-includes.patch b/x11-misc/polybar/files/polybar-3.7.2-gcc15-cstdint-includes.patch
new file mode 100644
index 00000000..97d9a4c7
--- /dev/null
+++ b/x11-misc/polybar/files/polybar-3.7.2-gcc15-cstdint-includes.patch
@@ -0,0 +1,97 @@
+commit e79b671aa7bc4edbae5d8272d523caa092f7548d
+Author: John Helmert III <ajak@gentoo.org>
+Date: Fri Aug 30 23:13:23 2024 -0700
+
+ add missing cstdint includes
+
+ In GCC 15, cstdint is less commonly included in stdlib headers so we
+ need explicit includes: https://gcc.gnu.org/gcc-15/porting_to.html
+
+ See-Also: https://bugs.gentoo.org/937526
+ Signed-off-by: John Helmert III <ajak@gentoo.org>
+
+diff --git a/include/ipc/decoder.hpp b/include/ipc/decoder.hpp
+index 9d1afe1c..dcdf9e1a 100644
+--- a/include/ipc/decoder.hpp
++++ b/include/ipc/decoder.hpp
+@@ -5,6 +5,8 @@
+ #include "errors.hpp"
+ #include "ipc/msg.hpp"
+
++#include <cstdint>
++
+ POLYBAR_NS
+
+ namespace ipc {
+diff --git a/include/ipc/encoder.hpp b/include/ipc/encoder.hpp
+index 1fd36f60..ebb1ea82 100644
+--- a/include/ipc/encoder.hpp
++++ b/include/ipc/encoder.hpp
+@@ -4,6 +4,8 @@
+ #include "errors.hpp"
+ #include "ipc/msg.hpp"
+
++#include <cstdint>
++
+ POLYBAR_NS
+
+ namespace ipc {
+diff --git a/include/ipc/msg.hpp b/include/ipc/msg.hpp
+index 1b37022d..a423d3bb 100644
+--- a/include/ipc/msg.hpp
++++ b/include/ipc/msg.hpp
+@@ -3,6 +3,7 @@
+ #include "common.hpp"
+
+ #include <array>
++#include <cstdint>
+
+ POLYBAR_NS
+
+diff --git a/include/utils/color.hpp b/include/utils/color.hpp
+index 491d48ee..9d301af7 100644
+--- a/include/utils/color.hpp
++++ b/include/utils/color.hpp
+@@ -1,6 +1,7 @@
+ #pragma once
+
+ #include <cstdlib>
++#include <cstdint>
+
+ #include "common.hpp"
+
+diff --git a/include/utils/string.hpp b/include/utils/string.hpp
+index 45eaec06..27e06f7a 100644
+--- a/include/utils/string.hpp
++++ b/include/utils/string.hpp
+@@ -1,5 +1,6 @@
+ #pragma once
+
++#include <cstdint>
+ #include <sstream>
+
+ #include "common.hpp"
+diff --git a/src/ipc/encoder.cpp b/src/ipc/encoder.cpp
+index 87cbd915..38da55a1 100644
+--- a/src/ipc/encoder.cpp
++++ b/src/ipc/encoder.cpp
+@@ -2,6 +2,7 @@
+
+ #include <cassert>
+ #include <cstring>
++#include <cstdint>
+
+ POLYBAR_NS
+
+diff --git a/src/utils/color.cpp b/src/utils/color.cpp
+index 59fa59ae..7e47dad5 100644
+--- a/src/utils/color.cpp
++++ b/src/utils/color.cpp
+@@ -1,6 +1,7 @@
+ #include "utils/color.hpp"
+
+ #include <algorithm>
++#include <cstdint>
+
+ POLYBAR_NS
+
diff --git a/x11-misc/polybar/polybar-3.7.2-r10.ebuild b/x11-misc/polybar/polybar-3.7.2-r10.ebuild
new file mode 100644
index 00000000..95311b8c
--- /dev/null
+++ b/x11-misc/polybar/polybar-3.7.2-r10.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit cmake optfeature 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"
+ "${FILESDIR}/${P}-freetype.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
+}
+
+pkg_postinst() {
+ optfeature "Unprivileged display backlight control via udev" sys-power/acpilight
+}