1 |
commit: 54a42e4bf640950e1002221314ca919bcdabd85d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 9 11:14:44 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 9 11:22:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54a42e4b |
7 |
|
8 |
media-video/simplescreenrecorder: Bump to version 0.4.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.97, 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.0-metainfo.patch | 37 +++++++ |
15 |
.../simplescreenrecorder-0.4.0.ebuild | 114 +++++++++++++++++++++ |
16 |
3 files changed, 152 insertions(+) |
17 |
|
18 |
diff --git a/media-video/simplescreenrecorder/Manifest b/media-video/simplescreenrecorder/Manifest |
19 |
index 9a3f1c2fe3c..74c8cbdd47d 100644 |
20 |
--- a/media-video/simplescreenrecorder/Manifest |
21 |
+++ b/media-video/simplescreenrecorder/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST simplescreenrecorder-0.3.11.tar.gz 1823944 BLAKE2B b7692ad158b4784f0222dd47227b85d33aae7eb416ed87d2eda1040027c910ec8d0ebe6a7e164e77cb9c3f6f2756e15fe97a7f05f45c92465473d2ae90e86b34 SHA512 5919774a00cd7015cd7db40561efaea43809b9465508b7770db9eb0fc87f338746e5cd4a79a0ab6c09e516257fa80184c3dcb5ab400c0ef2c0a8cf50ea2a073f |
24 |
+DIST simplescreenrecorder-0.4.0.tar.gz 1867593 BLAKE2B 0997c4e72c142ebfa74658c1fd27d8d01ceb3810f659df0bf899004224d3944a58476fd6b54b318d712fa4d284684a221f387c7e3e63d4b397312ab9e0786988 SHA512 aa4970aba010884153c9d3155a0869288a5b9b8723cf617471148ad875f1af29f594403c1682303345c578cc0dc3f0a4b3596e4937d3afa949a652b83dcd0b36 |
25 |
|
26 |
diff --git a/media-video/simplescreenrecorder/files/simplescreenrecorder-0.4.0-metainfo.patch b/media-video/simplescreenrecorder/files/simplescreenrecorder-0.4.0-metainfo.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..799afe23e26 |
29 |
--- /dev/null |
30 |
+++ b/media-video/simplescreenrecorder/files/simplescreenrecorder-0.4.0-metainfo.patch |
31 |
@@ -0,0 +1,37 @@ |
32 |
+From 47078d2790e8c2f982dacfe27f998b7307b600c9 Mon Sep 17 00:00:00 2001 |
33 |
+From: Lars Wendler <polynomial-c@g.o> |
34 |
+Date: Thu, 9 Apr 2020 13:06:54 +0200 |
35 |
+Subject: [PATCH] Rename appdata to metainfo |
36 |
+ |
37 |
+See https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html |
38 |
+chapter 2.1.2 "Filesystem locations" |
39 |
+ |
40 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
41 |
+--- |
42 |
+ CMakeLists.txt | 4 ++-- |
43 |
+ ...recorder.appdata.xml => simplescreenrecorder.metainfo.xml} | 0 |
44 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
45 |
+ rename data/{simplescreenrecorder.appdata.xml => simplescreenrecorder.metainfo.xml} (100%) |
46 |
+ |
47 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
48 |
+index 7d7167b..760c889 100644 |
49 |
+--- a/CMakeLists.txt |
50 |
++++ b/CMakeLists.txt |
51 |
+@@ -86,8 +86,8 @@ if(WITH_SIMPLESCREENRECORDER) |
52 |
+ DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/applications |
53 |
+ ) |
54 |
+ install( |
55 |
+- FILES data/simplescreenrecorder.appdata.xml |
56 |
+- DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/appdata |
57 |
++ FILES data/simplescreenrecorder.metainfo.xml |
58 |
++ DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/metainfo |
59 |
+ ) |
60 |
+ |
61 |
+ # icons |
62 |
+diff --git a/data/simplescreenrecorder.appdata.xml b/data/simplescreenrecorder.metainfo.xml |
63 |
+similarity index 100% |
64 |
+rename from data/simplescreenrecorder.appdata.xml |
65 |
+rename to data/simplescreenrecorder.metainfo.xml |
66 |
+-- |
67 |
+2.26.0 |
68 |
+ |
69 |
|
70 |
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-0.4.0.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.0.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..4edd7070ece |
73 |
--- /dev/null |
74 |
+++ b/media-video/simplescreenrecorder/simplescreenrecorder-0.4.0.ebuild |
75 |
@@ -0,0 +1,114 @@ |
76 |
+# Copyright 1999-2020 Gentoo Authors |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=7 |
80 |
+ |
81 |
+CMAKE_ECLASS=cmake |
82 |
+inherit cmake-multilib flag-o-matic xdg |
83 |
+ |
84 |
+if [[ ${PV} = 9999 ]]; then |
85 |
+ inherit git-r3 |
86 |
+fi |
87 |
+ |
88 |
+DESCRIPTION="A Simple Screen Recorder" |
89 |
+HOMEPAGE="https://www.maartenbaert.be/simplescreenrecorder" |
90 |
+LICENSE="GPL-3" |
91 |
+PKGNAME="ssr" |
92 |
+if [[ ${PV} = 9999 ]] ; then |
93 |
+ EGIT_REPO_URI="https://github.com/MaartenBaert/${PKGNAME}.git" |
94 |
+ EGIT_BOOTSTRAP="" |
95 |
+else |
96 |
+ SRC_URI="https://github.com/MaartenBaert/${PKGNAME}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
97 |
+ KEYWORDS="~amd64 ~x86" |
98 |
+ S="${WORKDIR}/${PKGNAME}-${PV}" |
99 |
+fi |
100 |
+ |
101 |
+SLOT="0" |
102 |
+IUSE="+asm jack mp3 pulseaudio theora vorbis vpx x264" |
103 |
+ |
104 |
+RDEPEND=" |
105 |
+ dev-qt/qtcore:5 |
106 |
+ dev-qt/qtgui:5 |
107 |
+ dev-qt/qtwidgets:5 |
108 |
+ dev-qt/qtx11extras:5 |
109 |
+ media-libs/alsa-lib:0= |
110 |
+ media-libs/mesa[${MULTILIB_USEDEP},X(+)] |
111 |
+ || ( |
112 |
+ media-video/ffmpeg[vorbis?,vpx?,x264?,mp3?,theora?] |
113 |
+ media-video/libav[vorbis?,vpx?,x264?,mp3?,theora?] |
114 |
+ ) |
115 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
116 |
+ x11-libs/libXext |
117 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
118 |
+ virtual/glu[${MULTILIB_USEDEP}] |
119 |
+ jack? ( virtual/jack ) |
120 |
+ pulseaudio? ( media-sound/pulseaudio ) |
121 |
+" |
122 |
+DEPEND="${RDEPEND} |
123 |
+ dev-qt/linguist-tools:5 |
124 |
+" |
125 |
+ |
126 |
+PATCHES=( |
127 |
+ "${FILESDIR}/${PN}-0.4.0-metainfo.patch" |
128 |
+) |
129 |
+ |
130 |
+pkg_pretend() { |
131 |
+ if [[ "${ABI}" == amd64 ]]; then |
132 |
+ elog "You may want to add USE flag 'abi_x86_32' when running a 64bit system" |
133 |
+ elog "When added 32bit GLInject libraries are also included. This is" |
134 |
+ elog "required if you want to use OpenGL recording on 32bit applications." |
135 |
+ elog |
136 |
+ fi |
137 |
+ |
138 |
+ if { has_version media-video/ffmpeg[x264] || has_version media-video/libav[x264] ; } && has_version media-libs/x264[10bit] ; then |
139 |
+ ewarn |
140 |
+ ewarn "media-libs/x264 is currently built with 10bit useflag." |
141 |
+ ewarn "This is known to prevent simplescreenrecorder from recording x264 videos" |
142 |
+ ewarn "correctly. Please build media-libs/x264 without 10bit if you want to " |
143 |
+ ewarn "record videos with x264." |
144 |
+ ewarn |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+pkg_setup() { |
149 |
+ # QT requires -fPIC. Compile fails otherwise. |
150 |
+ # Recently removed from the default compile options upstream |
151 |
+ # https://github.com/MaartenBaert/ssr/commit/25fe1743058f0d1f95f6fbb39014b6ac146b5180 |
152 |
+ append-flags -fPIC |
153 |
+} |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ # required because xdg.eclass overrides default cmake_src_prepare |
157 |
+ cmake_src_prepare |
158 |
+} |
159 |
+ |
160 |
+multilib_src_configure() { |
161 |
+ local mycmakeargs=( |
162 |
+ -DENABLE_X86_ASM="$(usex asm)" |
163 |
+ -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)" |
164 |
+ -DWITH_JACK="$(multilib_native_usex jack)" |
165 |
+ -DWITH_GLINJECT="true" |
166 |
+ ) |
167 |
+ |
168 |
+ # libav doesn't have AVFrame::channels |
169 |
+ # https://github.com/MaartenBaert/ssr/issues/195#issuecomment-45646159 |
170 |
+ if has_version media-video/libav ; then |
171 |
+ mycmakeargs+=( -DENABLE_FFMPEG_VERSIONS="false" ) |
172 |
+ fi |
173 |
+ |
174 |
+ if multilib_is_native_abi ; then |
175 |
+ mycmakeargs+=( |
176 |
+ -DENABLE_32BIT_GLINJECT="false" |
177 |
+ -DWITH_QT5="true" |
178 |
+ ) |
179 |
+ else |
180 |
+ mycmakeargs+=( |
181 |
+ # https://bugs.gentoo.org/660438 |
182 |
+ -DCMAKE_INSTALL_LIB32DIR="$(get_libdir)" |
183 |
+ -DENABLE_32BIT_GLINJECT="true" |
184 |
+ -DWITH_SIMPLESCREENRECORDER="false" |
185 |
+ ) |
186 |
+ fi |
187 |
+ |
188 |
+ cmake_src_configure |
189 |
+} |