1 |
commit: 728ceb5d902caeb288610ec4bb20190ad3278f72 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 15:03:35 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 15:04:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728ceb5d |
7 |
|
8 |
media-video/simplescreenrecorder: Bump to version 0.4.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
media-video/simplescreenrecorder/Manifest | 1 + |
14 |
.../simplescreenrecorder-0.4.1.ebuild | 101 +++++++++++++++++++++ |
15 |
2 files changed, 102 insertions(+) |
16 |
|
17 |
diff --git a/media-video/simplescreenrecorder/Manifest b/media-video/simplescreenrecorder/Manifest |
18 |
index 74c8cbdd47d..2510abf8ea5 100644 |
19 |
--- a/media-video/simplescreenrecorder/Manifest |
20 |
+++ b/media-video/simplescreenrecorder/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST simplescreenrecorder-0.3.11.tar.gz 1823944 BLAKE2B b7692ad158b4784f0222dd47227b85d33aae7eb416ed87d2eda1040027c910ec8d0ebe6a7e164e77cb9c3f6f2756e15fe97a7f05f45c92465473d2ae90e86b34 SHA512 5919774a00cd7015cd7db40561efaea43809b9465508b7770db9eb0fc87f338746e5cd4a79a0ab6c09e516257fa80184c3dcb5ab400c0ef2c0a8cf50ea2a073f |
23 |
DIST simplescreenrecorder-0.4.0.tar.gz 1867593 BLAKE2B 0997c4e72c142ebfa74658c1fd27d8d01ceb3810f659df0bf899004224d3944a58476fd6b54b318d712fa4d284684a221f387c7e3e63d4b397312ab9e0786988 SHA512 aa4970aba010884153c9d3155a0869288a5b9b8723cf617471148ad875f1af29f594403c1682303345c578cc0dc3f0a4b3596e4937d3afa949a652b83dcd0b36 |
24 |
+DIST simplescreenrecorder-0.4.1.tar.gz 1893293 BLAKE2B d05765788b23073bd03997b92dfa34e3437514ccd88216dea429305f4d43ac25019d141b248ee4a4844d72fd6a87f196579e876ee16a235da34cb3f2404ce5e3 SHA512 b890fafb65a87c298562d25388384577408d7ccbb0b1280bb4fdad198c9b9581893e68b99aa9e478a61c59736689ae40be0f30132d56ee9a9796b8885541d8d5 |
25 |
|
26 |
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.4.1.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..98efd341c92 |
29 |
--- /dev/null |
30 |
+++ b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.1.ebuild |
31 |
@@ -0,0 +1,101 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_ECLASS=cmake |
38 |
+inherit cmake-multilib flag-o-matic xdg |
39 |
+ |
40 |
+if [[ ${PV} = 9999 ]]; then |
41 |
+ inherit git-r3 |
42 |
+fi |
43 |
+ |
44 |
+DESCRIPTION="A Simple Screen Recorder" |
45 |
+HOMEPAGE="https://www.maartenbaert.be/simplescreenrecorder" |
46 |
+LICENSE="GPL-3" |
47 |
+PKGNAME="ssr" |
48 |
+if [[ ${PV} = 9999 ]] ; then |
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 pulseaudio theora 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-libs/mesa[${MULTILIB_USEDEP},X(+)] |
67 |
+ media-video/ffmpeg[vorbis?,vpx?,x264?,mp3?,theora?] |
68 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
69 |
+ x11-libs/libXext |
70 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
71 |
+ virtual/glu[${MULTILIB_USEDEP}] |
72 |
+ jack? ( virtual/jack ) |
73 |
+ pulseaudio? ( media-sound/pulseaudio ) |
74 |
+" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ dev-qt/linguist-tools:5 |
77 |
+" |
78 |
+ |
79 |
+pkg_pretend() { |
80 |
+ if [[ "${ABI}" == amd64 ]]; then |
81 |
+ elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system" |
82 |
+ elog "When added 32bit GLInject libraries are also included. This is" |
83 |
+ elog "required if you want to use OpenGL recording on 32bit applications." |
84 |
+ elog |
85 |
+ fi |
86 |
+ |
87 |
+ if has_version media-video/ffmpeg[x264] && has_version media-libs/x264[10bit] ; then |
88 |
+ ewarn |
89 |
+ ewarn "media-libs/x264 is currently built with 10bit useflag." |
90 |
+ ewarn "This is known to prevent simplescreenrecorder from recording x264 videos" |
91 |
+ ewarn "correctly. Please build media-libs/x264 without 10bit if you want to " |
92 |
+ ewarn "record videos with x264." |
93 |
+ ewarn |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+pkg_setup() { |
98 |
+ # QT requires -fPIC. Compile fails otherwise. |
99 |
+ # Recently removed from the default compile options upstream |
100 |
+ # https://github.com/MaartenBaert/ssr/commit/25fe1743058f0d1f95f6fbb39014b6ac146b5180 |
101 |
+ append-flags -fPIC |
102 |
+} |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ # required because xdg.eclass overrides default cmake_src_prepare |
106 |
+ cmake_src_prepare |
107 |
+} |
108 |
+ |
109 |
+multilib_src_configure() { |
110 |
+ local mycmakeargs=( |
111 |
+ -DENABLE_X86_ASM="$(usex asm)" |
112 |
+ -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)" |
113 |
+ -DWITH_JACK="$(multilib_native_usex jack)" |
114 |
+ -DWITH_GLINJECT="true" |
115 |
+ ) |
116 |
+ |
117 |
+ if multilib_is_native_abi ; then |
118 |
+ mycmakeargs+=( |
119 |
+ -DENABLE_32BIT_GLINJECT="false" |
120 |
+ -DWITH_QT5="true" |
121 |
+ ) |
122 |
+ else |
123 |
+ mycmakeargs+=( |
124 |
+ # https://bugs.gentoo.org/660438 |
125 |
+ -DCMAKE_INSTALL_LIB32DIR="$(get_libdir)" |
126 |
+ -DENABLE_32BIT_GLINJECT="true" |
127 |
+ -DWITH_SIMPLESCREENRECORDER="false" |
128 |
+ ) |
129 |
+ fi |
130 |
+ |
131 |
+ cmake_src_configure |
132 |
+} |