1 |
commit: 67469a0e4ef30244aac92adde06855f5343270b2 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 29 11:50:32 2022 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 29 11:55:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67469a0e |
7 |
|
8 |
media-video/simplescreenrecorder: Bump to version 0.4.4 |
9 |
|
10 |
Converted some elog calls to einfo. Added "opengl" USE flag. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/733970 |
13 |
Closes: https://bugs.gentoo.org/766815 |
14 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
15 |
|
16 |
media-video/simplescreenrecorder/Manifest | 1 + |
17 |
.../simplescreenrecorder-0.4.4.ebuild | 105 +++++++++++++++++++++ |
18 |
2 files changed, 106 insertions(+) |
19 |
|
20 |
diff --git a/media-video/simplescreenrecorder/Manifest b/media-video/simplescreenrecorder/Manifest |
21 |
index c7bcb7952774..6cf208454ae7 100644 |
22 |
--- a/media-video/simplescreenrecorder/Manifest |
23 |
+++ b/media-video/simplescreenrecorder/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST simplescreenrecorder-0.4.2.tar.gz 1912151 BLAKE2B d8a4605a82e49693f94ecfac8853405a660a4528c3001961b1734d4387e49eeb4c91603929b3cd5d5b67a23a6ec839ace606b29666b916960f10322e6ec1b452 SHA512 60b0127d7f82f294e5a8f015363e37a10b5492089a0178b07a5e383c7e4b857102ed2bda7a95e3c67293a255f892481aeaf4037c583320d68d463637348ed7f7 |
26 |
DIST simplescreenrecorder-0.4.3.tar.gz 1918958 BLAKE2B 9d0e07255c7345d8752a8f49fd2e7947db4058c6e6bdbe1239955f96f06543eff24b207bcd049d07eb7d3d5815ad5f1c77721e1fa139f940b1deb3b3da7a46e0 SHA512 c930045d6763bdb026cee80fe82aa0e973de7a1bd92bce9650c5cae627f5d8f8d913f260024410a41170081c8eda61c1aea346bc2d9740b8dc169a3952b3bfd0 |
27 |
+DIST simplescreenrecorder-0.4.4.tar.gz 1961269 BLAKE2B 05c7635840f8461ab324f740f0cc554eb544ed91b00cdf39c80f861e6a8631f59afbdcc9fe958830b0f1e31eedb90f11d29c114ce4bbb612f1756264502f069f SHA512 a90549a2709490482d70559073e505e669417a93abf16124b98c021e6d2bf08b91b53eb68e006df4f80fcee9fe4da2624bf8de979618953adb3f37eb1d471525 |
28 |
|
29 |
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.4.4.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.4.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..5c2e985195d7 |
32 |
--- /dev/null |
33 |
+++ b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.4.ebuild |
34 |
@@ -0,0 +1,105 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+CMAKE_ECLASS=cmake |
41 |
+inherit cmake-multilib flag-o-matic xdg |
42 |
+ |
43 |
+DESCRIPTION="A Simple Screen Recorder" |
44 |
+HOMEPAGE="https://www.maartenbaert.be/simplescreenrecorder" |
45 |
+LICENSE="GPL-3" |
46 |
+PKGNAME="ssr" |
47 |
+if [[ ${PV} = 9999 ]] ; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/MaartenBaert/${PKGNAME}.git" |
50 |
+ EGIT_BOOTSTRAP="" |
51 |
+else |
52 |
+ SRC_URI="https://github.com/MaartenBaert/${PKGNAME}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~x86" |
54 |
+ S="${WORKDIR}/${PKGNAME}-${PV}" |
55 |
+fi |
56 |
+ |
57 |
+SLOT="0" |
58 |
+IUSE="+asm jack mp3 opengl pulseaudio theora v4l vorbis vpx x264" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ dev-qt/qtcore:5 |
62 |
+ dev-qt/qtgui:5 |
63 |
+ dev-qt/qtwidgets:5 |
64 |
+ dev-qt/qtx11extras:5 |
65 |
+ media-libs/alsa-lib:0= |
66 |
+ media-video/ffmpeg[vorbis?,vpx?,x264?,mp3?,theora?] |
67 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
68 |
+ x11-libs/libXext |
69 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
70 |
+ x11-libs/libXi |
71 |
+ x11-libs/libXinerama |
72 |
+ virtual/glu[${MULTILIB_USEDEP}] |
73 |
+ v4l? ( media-libs/libv4l ) |
74 |
+ jack? ( virtual/jack ) |
75 |
+ opengl? ( media-libs/libglvnd[${MULTILIB_USEDEP},X] ) |
76 |
+ pulseaudio? ( media-sound/pulseaudio ) |
77 |
+" |
78 |
+DEPEND="${RDEPEND}" |
79 |
+BDEPEND="dev-qt/linguist-tools:5" |
80 |
+ |
81 |
+REQUIRED_USE="abi_x86_32? ( opengl )" |
82 |
+ |
83 |
+pkg_pretend() { |
84 |
+ if [[ "${ABI}" == amd64 ]] ; then |
85 |
+ einfo "You may want to add USE flag 'abi_x86_32' when running a 64bit system" |
86 |
+ einfo "When added 32bit GLInject libraries are also included. This is" |
87 |
+ einfo "required if you want to use OpenGL recording on 32bit applications." |
88 |
+ einfo |
89 |
+ fi |
90 |
+ |
91 |
+ if has_version media-video/ffmpeg[x264] && has_version media-libs/x264[10bit] ; then |
92 |
+ ewarn |
93 |
+ ewarn "media-libs/x264 is currently built with 10bit useflag." |
94 |
+ ewarn "This is known to prevent simplescreenrecorder from recording x264 videos" |
95 |
+ ewarn "correctly. Please build media-libs/x264 without 10bit if you want to " |
96 |
+ ewarn "record videos with x264." |
97 |
+ ewarn |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+pkg_setup() { |
102 |
+ # QT requires -fPIC. Compile fails otherwise. |
103 |
+ # Recently removed from the default compile options upstream |
104 |
+ # https://github.com/MaartenBaert/ssr/commit/25fe1743058f0d1f95f6fbb39014b6ac146b5180 |
105 |
+ append-flags -fPIC |
106 |
+} |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ # required because xdg.eclass overrides default cmake_src_prepare |
110 |
+ cmake_src_prepare |
111 |
+} |
112 |
+ |
113 |
+multilib_src_configure() { |
114 |
+ local mycmakeargs=( |
115 |
+ -DENABLE_JACK_METADATA="$(multilib_native_usex jack)" |
116 |
+ -DENABLE_X86_ASM="$(usex asm)" |
117 |
+ -DWITH_OPENGL_RECORDING="$(usex opengl)" |
118 |
+ -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)" |
119 |
+ -DWITH_JACK="$(multilib_native_usex jack)" |
120 |
+ -DWITH_GLINJECT="$(usex opengl)" |
121 |
+ -DWITH_V4L2="$(multilib_native_usex v4l)" |
122 |
+ ) |
123 |
+ |
124 |
+ if multilib_is_native_abi ; then |
125 |
+ mycmakeargs+=( |
126 |
+ -DENABLE_32BIT_GLINJECT="false" |
127 |
+ -DWITH_QT5="true" |
128 |
+ ) |
129 |
+ else |
130 |
+ mycmakeargs+=( |
131 |
+ # https://bugs.gentoo.org/660438 |
132 |
+ -DCMAKE_INSTALL_LIB32DIR="$(get_libdir)" |
133 |
+ -DENABLE_32BIT_GLINJECT="true" |
134 |
+ -DWITH_SIMPLESCREENRECORDER="false" |
135 |
+ ) |
136 |
+ fi |
137 |
+ |
138 |
+ cmake_src_configure |
139 |
+} |