Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/simplescreenrecorder/
Date: Tue, 29 Mar 2022 11:55:30
Message-Id: 1648554915.2ded61bf2f0fdcc6f39eb949ac43ad3d052be6e9.polynomial-c@gentoo
1 commit: 2ded61bf2f0fdcc6f39eb949ac43ad3d052be6e9
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 11:54:27 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 11:55:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ded61bf
7
8 media-video/simplescreenrecorder: Synced live ebuild
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 .../simplescreenrecorder-9999.ebuild | 23 ++++++++++++----------
13 1 file changed, 13 insertions(+), 10 deletions(-)
14
15 diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild
16 index 337ba993d166..5c2e985195d7 100644
17 --- a/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild
18 +++ b/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild
19 @@ -1,7 +1,7 @@
20 -# Copyright 1999-2020 Gentoo Authors
21 +# Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=7
25 +EAPI=8
26
27 CMAKE_ECLASS=cmake
28 inherit cmake-multilib flag-o-matic xdg
29 @@ -21,7 +21,7 @@ else
30 fi
31
32 SLOT="0"
33 -IUSE="+asm jack mp3 pulseaudio theora v4l vorbis vpx x264"
34 +IUSE="+asm jack mp3 opengl pulseaudio theora v4l vorbis vpx x264"
35
36 RDEPEND="
37 dev-qt/qtcore:5
38 @@ -29,7 +29,6 @@ RDEPEND="
39 dev-qt/qtwidgets:5
40 dev-qt/qtx11extras:5
41 media-libs/alsa-lib:0=
42 - media-libs/libglvnd[${MULTILIB_USEDEP},X]
43 media-video/ffmpeg[vorbis?,vpx?,x264?,mp3?,theora?]
44 x11-libs/libX11[${MULTILIB_USEDEP}]
45 x11-libs/libXext
46 @@ -39,17 +38,20 @@ RDEPEND="
47 virtual/glu[${MULTILIB_USEDEP}]
48 v4l? ( media-libs/libv4l )
49 jack? ( virtual/jack )
50 + opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP},X] )
51 pulseaudio? ( media-sound/pulseaudio )
52 "
53 DEPEND="${RDEPEND}"
54 BDEPEND="dev-qt/linguist-tools:5"
55
56 +REQUIRED_USE="abi_x86_32? ( opengl )"
57 +
58 pkg_pretend() {
59 - if [[ "${ABI}" == amd64 ]]; then
60 - elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system"
61 - elog "When added 32bit GLInject libraries are also included. This is"
62 - elog "required if you want to use OpenGL recording on 32bit applications."
63 - elog
64 + if [[ "${ABI}" == amd64 ]] ; then
65 + einfo "You may want to add USE flag 'abi_x86_32' when running a 64bit system"
66 + einfo "When added 32bit GLInject libraries are also included. This is"
67 + einfo "required if you want to use OpenGL recording on 32bit applications."
68 + einfo
69 fi
70
71 if has_version media-video/ffmpeg[x264] && has_version media-libs/x264[10bit] ; then
72 @@ -78,9 +80,10 @@ multilib_src_configure() {
73 local mycmakeargs=(
74 -DENABLE_JACK_METADATA="$(multilib_native_usex jack)"
75 -DENABLE_X86_ASM="$(usex asm)"
76 + -DWITH_OPENGL_RECORDING="$(usex opengl)"
77 -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)"
78 -DWITH_JACK="$(multilib_native_usex jack)"
79 - -DWITH_GLINJECT="true"
80 + -DWITH_GLINJECT="$(usex opengl)"
81 -DWITH_V4L2="$(multilib_native_usex v4l)"
82 )