# Copyright 2023-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="Drop in replacement for ueberzug written in C++" HOMEPAGE="https://github.com/jstkdng/ueberzugpp/" SRC_URI=" https://github.com/jstkdng/ueberzugpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz " LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" IUSE="X dbus opencv opengl wayland xcb-errors" REQUIRED_USE="xcb-errors? ( X )" RDEPEND=" dev-cpp/tbb:= dev-libs/glib:2 dev-libs/libfmt:= dev-libs/openssl:= dev-libs/spdlog:= media-gfx/chafa media-libs/libsixel media-libs/vips:= X? ( x11-libs/libxcb:= x11-libs/xcb-util-image xcb-errors? ( x11-libs/xcb-util-errors ) ) dbus? ( sys-apps/dbus ) opencv? ( media-libs/opencv:= ) opengl? ( media-libs/libglvnd ) wayland? ( dev-libs/wayland ) !media-gfx/ueberzug " DEPEND=" ${RDEPEND} dev-cpp/cli11 dev-cpp/nlohmann_json dev-cpp/range-v3 X? ( x11-base/xorg-proto ) wayland? ( dev-libs/wayland-protocols ) " BDEPEND=" wayland? ( dev-util/wayland-scanner kde-frameworks/extra-cmake-modules ) " src_configure() { if use X && tc-is-clang && [[ $(tc-get-cxx-stdlib) == libc++ && $(clang-major-version) -lt 20 ]] then # X support makes use of C++20's std::jthread which works but # is currently marked experimental in