diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-11-06 10:14:28 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-11-07 14:27:58 -0500 |
commit | 6201c5d26038352ce7bf09c9415b120963d20bec (patch) | |
tree | 14bc56cebe25200a5826688c425a38b72447d4fc /media-gfx/qimgv | |
parent | media-gfx/photoqt: use mpv slot, fix with api 2.0 (diff) | |
download | gentoo-6201c5d26038352ce7bf09c9415b120963d20bec.tar.gz gentoo-6201c5d26038352ce7bf09c9415b120963d20bec.tar.bz2 gentoo-6201c5d26038352ce7bf09c9415b120963d20bec.zip |
media-gfx/qimgv: use mpv subslot, backport api 2.0 fix
libmpv.so.1 -> libmpv.so.2
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-gfx/qimgv')
-rw-r--r-- | media-gfx/qimgv/files/qimgv-1.0.2-libmpv-api2.patch | 15 | ||||
-rw-r--r-- | media-gfx/qimgv/qimgv-1.0.2-r1.ebuild (renamed from media-gfx/qimgv/qimgv-1.0.2.ebuild) | 8 |
2 files changed, 21 insertions, 2 deletions
diff --git a/media-gfx/qimgv/files/qimgv-1.0.2-libmpv-api2.patch b/media-gfx/qimgv/files/qimgv-1.0.2-libmpv-api2.patch new file mode 100644 index 000000000000..aa0a322382e5 --- /dev/null +++ b/media-gfx/qimgv/files/qimgv-1.0.2-libmpv-api2.patch @@ -0,0 +1,15 @@ +https://github.com/easymodo/qimgv/commit/d24f3fa9df89 +From: easymodo <easymodofrf@gmail.com> +Date: Sat, 18 Dec 2021 10:32:05 +0200 +Subject: [PATCH] fix mpv_opengl_init_params +--- a/plugins/player_mpv/src/mpvwidget.cpp ++++ b/plugins/player_mpv/src/mpvwidget.cpp +@@ -69,7 +69,7 @@ void MpvWidget::setOption(const QString& name, const QVariant& value) { + } + + void MpvWidget::initializeGL() { +- mpv_opengl_init_params gl_init_params{get_proc_address, nullptr, nullptr}; ++ mpv_opengl_init_params gl_init_params{get_proc_address, nullptr}; + mpv_render_param params[]{ + {MPV_RENDER_PARAM_API_TYPE, const_cast<char *>(MPV_RENDER_API_TYPE_OPENGL)}, + {MPV_RENDER_PARAM_OPENGL_INIT_PARAMS, &gl_init_params}, diff --git a/media-gfx/qimgv/qimgv-1.0.2.ebuild b/media-gfx/qimgv/qimgv-1.0.2-r1.ebuild index 2593b48c2c20..d988cd8f2de4 100644 --- a/media-gfx/qimgv/qimgv-1.0.2.ebuild +++ b/media-gfx/qimgv/qimgv-1.0.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -27,12 +27,16 @@ DEPEND=" exif? ( media-gfx/exiv2:= ) kde? ( kde-frameworks/kwindowsystem:5 ) opencv? ( media-libs/opencv:= ) - video? ( media-video/mpv[libmpv] ) + video? ( media-video/mpv:=[libmpv] ) " RDEPEND=" ${DEPEND} " +PATCHES=( + "${FILESDIR}"/${P}-libmpv-api2.patch +) + src_configure() { local mycmakeargs=( -DEXIV2=$(usex exif) |