commit: d7533afd674effae342369002b9ac520b330a099 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Oct 28 01:25:32 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Oct 28 01:25:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7533afd
media-gfx/ueberzugpp: add 2.9.8 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> media-gfx/ueberzugpp/Manifest | 1 + media-gfx/ueberzugpp/ueberzugpp-2.9.8.ebuild | 80 ++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/media-gfx/ueberzugpp/Manifest b/media-gfx/ueberzugpp/Manifest index 867aed4cbdf4..959ad0313e04 100644 --- a/media-gfx/ueberzugpp/Manifest +++ b/media-gfx/ueberzugpp/Manifest @@ -1 +1,2 @@ DIST ueberzugpp-2.9.7.tar.gz 69664 BLAKE2B ff010d58c4a786a414fdddd78de0adb35efc42cafe89f981d9204fb49358d37a9989044b0f74e92bdde330927e89716e8795f6f9fe1e67bf4a5a2443385e518b SHA512 f059343721b67376a062015852975ef72cb2c84b108921de5fe8385ff28ac1a0bb79625c41ae116963ff4ba3892636adfce7ddd8bbf1301c3ca0bcb92bd67f84 +DIST ueberzugpp-2.9.8.tar.gz 69753 BLAKE2B a16ddc7a3fa4c5cdbcb84ccbdbcf942e966a8cabdf6da37eb47faaff7bdc73a633f48214ba0e2fdefba67132caac96598cf1a36b0d4c20d31b288a9f79a53737 SHA512 4eae090a1e59c961624c5c15b210454f2cb269b065ba24ddda2af10940d1bd73e210741f0e389be404f59a501e156b32e7d535e8671af4e57a516eb4352fd051 diff --git a/media-gfx/ueberzugpp/ueberzugpp-2.9.8.ebuild b/media-gfx/ueberzugpp/ueberzugpp-2.9.8.ebuild new file mode 100644 index 000000000000..ed50b51c0b2c --- /dev/null +++ b/media-gfx/ueberzugpp/ueberzugpp-2.9.8.ebuild @@ -0,0 +1,80 @@ +# 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 <libcxx-20 + append-cxxflags $(test-flags-CXX -fexperimental-library) + fi + + # TODO?: wayfire plugin is skipped for now (needs wlroots which is + # likely to be messier), but could be handled if there is a demand + + local mycmakeargs=( + -DENABLE_DBUS=$(usex dbus) + -DENABLE_OPENCV=$(usex opencv) + -DENABLE_OPENGL=$(usex opengl) + -DENABLE_TURBOBASE64=no # not packaged + -DENABLE_WAYLAND=$(usex wayland) + -DENABLE_X11=$(usex X) + -DENABLE_XCB_ERRORS=$(usex xcb-errors) + -DFETCHCONTENT_FULLY_DISCONNECTED=yes + ) + + cmake_src_configure +}
