summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-02-24 20:16:07 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-02-24 20:18:35 -0500
commit31eeaaff57edd25ebb3895ca852b44b869f5bcdf (patch)
tree5183371d9c3a71538787205d091c5b7f8c684f9d /media-gfx/ueberzugpp
parentapp-emulation/wine-staging: add 9.3 (diff)
downloadgentoo-31eeaaff57edd25ebb3895ca852b44b869f5bcdf.tar.gz
gentoo-31eeaaff57edd25ebb3895ca852b44b869f5bcdf.tar.bz2
gentoo-31eeaaff57edd25ebb3895ca852b44b869f5bcdf.zip
media-gfx/ueberzugpp: add 2.9.3
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/ueberzugpp')
-rw-r--r--media-gfx/ueberzugpp/Manifest1
-rw-r--r--media-gfx/ueberzugpp/ueberzugpp-2.9.3.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/media-gfx/ueberzugpp/Manifest b/media-gfx/ueberzugpp/Manifest
index 4000ef310ce6..7118112d6a64 100644
--- a/media-gfx/ueberzugpp/Manifest
+++ b/media-gfx/ueberzugpp/Manifest
@@ -1 +1,2 @@
DIST ueberzugpp-2.9.2.tar.gz 66310 BLAKE2B cef413922765f10cea65616c935e67b8a7c86d51f04be5a7383cc009dc238005ffa68638a7099f3c6dcf1a9a4bb3d874806e5ea90cabc53939da499692e5de82 SHA512 560a61a861eea7cd33b9a97819a9d97f2b8686640d366152cdfb677ee7d8e094e21ace923e9c83ef2a71a672df6e7d286633fc48da5f3e546d130d40723e0dde
+DIST ueberzugpp-2.9.3.tar.gz 68130 BLAKE2B d2431e4361b1845caf5c92b851a3d90bf004533ea3afa513e8106881ba868bf2c84665fde44c58f6ea6689b967746f9e70c44022470a39e11ec05a8cf5e31caa SHA512 c7113c947be68b53b31cede2521e411009473c4f9187a2a92e628bc812fa6d44dc0fd360ba1a735154a92b89129b1759411a3c6eaed8fc0ee8a1b45ac30d20cd
diff --git a/media-gfx/ueberzugpp/ueberzugpp-2.9.3.ebuild b/media-gfx/ueberzugpp/ueberzugpp-2.9.3.ebuild
new file mode 100644
index 000000000000..bca372eaed2b
--- /dev/null
+++ b/media-gfx/ueberzugpp/ueberzugpp-2.9.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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 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/libexif
+ media-libs/libsixel
+ media-libs/vips:=
+ X? (
+ x11-libs/libxcb:=
+ x11-libs/xcb-util-image
+ xcb-errors? ( x11-libs/xcb-util-errors )
+ )
+ 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() {
+ # 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_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
+}