Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/obs-studio/, media-video/obs-studio/files/
Date: Thu, 28 Feb 2019 22:49:50
Message-Id: 1551394172.a2b062dd635f1aaa21ee81e9e6abd7a1c4e45f79.monsieurp@gentoo
1 commit: a2b062dd635f1aaa21ee81e9e6abd7a1c4e45f79
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 27 00:23:31 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 28 22:49:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2b062dd
7
8 media-video/obs-studio: remove old version and unused patches.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 media-video/obs-studio/Manifest | 1 -
15 .../obs-studio-21.1.2-use-less-automagic.patch | 167 ---------------------
16 .../files/obs-studio-22.0.3-fdk-build-fix.patch | 52 -------
17 media-video/obs-studio/obs-studio-22.0.3.ebuild | 134 -----------------
18 4 files changed, 354 deletions(-)
19
20 diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest
21 index 8210c29f369..4e440484dd9 100644
22 --- a/media-video/obs-studio/Manifest
23 +++ b/media-video/obs-studio/Manifest
24 @@ -1,2 +1 @@
25 -DIST obs-studio-22.0.3.tar.gz 6015365 BLAKE2B e2c3aec7f97bbad2ec70a46d59035335d605a478ab1e4ff10a077d81c9ade5deef1ca56cf3ffc46d4d2ab89339d98a68aa5ca8c6ca240ed82939b59803af151c SHA512 491f7ce44c741d144c621eb645fe00604e1eb98ff7dac03dffe51ba78a742e6015e1f96f21aad69e16a22d9546b6cdb51b5c1a4defd96e7c64f099de83a31f04
26 DIST obs-studio-23.0.1.tar.gz 6223214 BLAKE2B c3b65ad9134aefc36a3fa33b8d185a1ee76f76c10edd30d5ad8a7af86605c4e7b3b8d83c5570203d926655131f7c20f4ef11dcbf55c7af745efc2b68d4933c54 SHA512 6877d4bf635a9769d634683a85075a5fe3a5de1fcc83882647dfbc379a897eee05b69c2159e290ff73f53aa7c03027ea4ea15e1169de57c2c50f4e504eff410f
27
28 diff --git a/media-video/obs-studio/files/obs-studio-21.1.2-use-less-automagic.patch b/media-video/obs-studio/files/obs-studio-21.1.2-use-less-automagic.patch
29 deleted file mode 100644
30 index 2c28c8e080d..00000000000
31 --- a/media-video/obs-studio/files/obs-studio-21.1.2-use-less-automagic.patch
32 +++ /dev/null
33 @@ -1,167 +0,0 @@
34 -From eee6541153cfb6788ee088181781793de100e54c Mon Sep 17 00:00:00 2001
35 -From: Jimi Huotari <chiitoo@g.o>
36 -Date: Mon, 9 Jul 2018 02:20:10 +0300
37 -Subject: [PATCH 1/2] deps/obs-scripting: Use less automagic for Lua/Python
38 - detection
39 -
40 -This adds build-time options for disabling the Lua and/or Python
41 -scripting support in cases where users do not wish to build
42 -it, but have the required libraries installed.
43 ----
44 - deps/obs-scripting/CMakeLists.txt | 73 +++++++++++++++++++------------
45 - 1 file changed, 45 insertions(+), 28 deletions(-)
46 -
47 -diff --git a/deps/obs-scripting/CMakeLists.txt b/deps/obs-scripting/CMakeLists.txt
48 -index 835c1b30..46412779 100644
49 ---- a/deps/obs-scripting/CMakeLists.txt
50 -+++ b/deps/obs-scripting/CMakeLists.txt
51 -@@ -1,6 +1,7 @@
52 - cmake_minimum_required(VERSION 2.8)
53 -
54 - if(NOT ENABLE_SCRIPTING)
55 -+ message(STATUS "Scripting plugin disabled")
56 - return()
57 - endif()
58 -
59 -@@ -11,44 +12,60 @@ if(MSVC)
60 - w32-pthreads)
61 - endif()
62 -
63 --find_package(Luajit QUIET)
64 --find_package(PythonDeps QUIET)
65 --find_package(SwigDeps QUIET 2)
66 -+option(DISABLE_LUA "Disable Lua scripting support" OFF)
67 -+option(DISABLE_PYTHON "Disable Python scripting support" OFF)
68 -
69 - set(COMPILE_PYTHON FALSE CACHE BOOL "" FORCE)
70 - set(COMPILE_LUA FALSE CACHE BOOL "" FORCE)
71 -
72 --if(NOT SWIG_FOUND)
73 -- message(STATUS "Scripting: SWIG not found; scripting disabled")
74 -- return()
75 --endif()
76 -+if(NOT DISABLE_LUA)
77 -+ find_package(Luajit QUIET)
78 -
79 --if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND)
80 -- message(STATUS "Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled")
81 -- return()
82 --endif()
83 --
84 --if(NOT LUAJIT_FOUND)
85 -- message(STATUS "Scripting: Luajit not found; Luajit support disabled")
86 -+ if(NOT DISABLE_LUA AND NOT LUAJIT_FOUND)
87 -+ message(STATUS "Luajit support not found.")
88 -+ set(LUAJIT_FOUND FALSE)
89 -+ else()
90 -+ message(STATUS "Scripting: Luajit supported")
91 -+ set(COMPILE_LUA TRUE CACHE BOOL "" FORCE)
92 -+ endif()
93 - else()
94 -- message(STATUS "Scripting: Luajit supported")
95 -- set(COMPILE_LUA TRUE CACHE BOOL "" FORCE)
96 -+ message(STATUS "Scripting: Luajit support disabled")
97 -+ set(LUAJIT_FOUND FALSE)
98 - endif()
99 -
100 --if(NOT PYTHONLIBS_FOUND)
101 -- message(STATUS "Scripting: Python 3 not found; Python support disabled")
102 -+if(NOT DISABLE_PYTHON)
103 -+ find_package(PythonDeps QUIET)
104 -+
105 -+ if(NOT DISABLE_PYTHON AND NOT PYTHONLIBS_FOUND)
106 -+ message(STATUS "Python support not found.")
107 -+ set(PYTHON_FOUND FALSE)
108 -+ set(PYTHONLIBS_FOUND FALSE)
109 -+ else()
110 -+ message(STATUS "Scripting: Python 3 supported")
111 -+ set(PYTHON_FOUND TRUE)
112 -+ set(COMPILE_PYTHON TRUE CACHE BOOL "" FORCE)
113 -+
114 -+ get_filename_component(PYTHON_LIB "${PYTHON_LIBRARIES}" NAME)
115 -+ string(REGEX REPLACE "\\.[^.]*$" "" PYTHON_LIB ${PYTHON_LIB})
116 -+
117 -+ if(WIN32)
118 -+ string(REGEX REPLACE "_d" "" PYTHON_LIB "${PYTHON_LIB}")
119 -+ endif()
120 -+ endif()
121 -+else()
122 -+ message(STATUS "Scripting: Python 3 support disabled")
123 - set(PYTHON_FOUND FALSE)
124 - set(PYTHONLIBS_FOUND FALSE)
125 --else()
126 -- message(STATUS "Scripting: Python 3 supported")
127 -- set(PYTHON_FOUND TRUE)
128 -- set(COMPILE_PYTHON TRUE CACHE BOOL "" FORCE)
129 --
130 -- get_filename_component(PYTHON_LIB "${PYTHON_LIBRARIES}" NAME)
131 -- string(REGEX REPLACE "\\.[^.]*$" "" PYTHON_LIB ${PYTHON_LIB})
132 -- if(WIN32)
133 -- string(REGEX REPLACE "_d" "" PYTHON_LIB "${PYTHON_LIB}")
134 -- endif()
135 -+endif()
136 -+
137 -+find_package(SwigDeps QUIET 2)
138 -+
139 -+if(NOT SWIG_FOUND)
140 -+ message(STATUS "Scripting: SWIG not found; scripting disabled")
141 -+endif()
142 -+
143 -+if(NOT PYTHONLIBS_FOUND AND NOT LUAJIT_FOUND)
144 -+ message(STATUS "Scripting: Neither Python 3 nor Luajit was found; scripting plugin disabled")
145 - endif()
146 -
147 - set(SCRIPTING_ENABLED ON CACHE BOOL "Interal global cmake variable" FORCE)
148 ---
149 -2.18.0
150 -
151 -From 79006adaf2b93ed4ddc07ff236a9ed1fcd09e47f Mon Sep 17 00:00:00 2001
152 -From: Jimi Huotari <chiitoo@g.o>
153 -Date: Wed, 11 Jul 2018 02:08:51 +0300
154 -Subject: [PATCH 2/2] obs-filters: Use less automagic for SpeexDSP detection
155 -
156 -This adds a build-time option for disabling the SpeexDSP-based
157 -Noise Suppression filter support in cases where users do not
158 -wish to build it, but have the required library installed.
159 ----
160 - plugins/obs-filters/CMakeLists.txt | 24 +++++++++++++++++-------
161 - 1 file changed, 17 insertions(+), 7 deletions(-)
162 -
163 -diff --git a/plugins/obs-filters/CMakeLists.txt b/plugins/obs-filters/CMakeLists.txt
164 -index ec4289cc..4d862b0a 100644
165 ---- a/plugins/obs-filters/CMakeLists.txt
166 -+++ b/plugins/obs-filters/CMakeLists.txt
167 -@@ -1,13 +1,23 @@
168 - project(obs-filters)
169 -
170 --find_package(Libspeexdsp QUIET)
171 --if(LIBSPEEXDSP_FOUND)
172 -- set(obs-filters_LIBSPEEXDSP_SOURCES
173 -- noise-suppress-filter.c)
174 -- set(obs-filters_LIBSPEEXDSP_LIBRARIES
175 -- ${LIBSPEEXDSP_LIBRARIES})
176 -+option(DISABLE_SPEEXDSP "Disable building of the SpeexDSP-based Noise Suppression filter" OFF)
177 -+
178 -+if(DISABLE_SPEEXDSP)
179 -+ message(STATUS "SpeexDSP support disabled")
180 -+ set(LIBSPEEXDSP_FOUND FALSE)
181 - else()
182 -- message(STATUS "Speexdsp library not found, speexdsp filters disabled")
183 -+ find_package(Libspeexdsp QUIET)
184 -+
185 -+ if(NOT LIBSPEEXDSP_FOUND)
186 -+ message(STATUS "SpeexDSP support not found")
187 -+ set(LIBSPEEXDSP_FOUND FALSE)
188 -+ else()
189 -+ message(STATUS "SpeexDSP supported")
190 -+ set(obs-filters_LIBSPEEXDSP_SOURCES
191 -+ noise-suppress-filter.c)
192 -+ set(obs-filters_LIBSPEEXDSP_LIBRARIES
193 -+ ${LIBSPEEXDSP_LIBRARIES})
194 -+ endif()
195 - endif()
196 -
197 - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/obs-filters-config.h.in"
198 ---
199 -2.18.0
200 -
201
202 diff --git a/media-video/obs-studio/files/obs-studio-22.0.3-fdk-build-fix.patch b/media-video/obs-studio/files/obs-studio-22.0.3-fdk-build-fix.patch
203 deleted file mode 100644
204 index 73329cf8040..00000000000
205 --- a/media-video/obs-studio/files/obs-studio-22.0.3-fdk-build-fix.patch
206 +++ /dev/null
207 @@ -1,52 +0,0 @@
208 -From 5cf2b5fbf925412620e2a40552d6348203851cb3 Mon Sep 17 00:00:00 2001
209 -From: pkviet <pkv.stream@×××××.com>
210 -Date: Thu, 29 Nov 2018 21:10:45 +0100
211 -Subject: [PATCH] obs-libfdk: Compatibility fix for new API
212 -
213 -fdk-aac v2.0.0 (aacenc 4.0.0) changes the AACENC_InfoStruct:
214 -the encoderDelay parameter is replaced by two, nDelay and
215 -nDelayCore. This patch checks the lib version and adjust the parameter
216 -accordingly.
217 ----
218 - plugins/obs-libfdk/obs-libfdk.c | 14 ++++++++------
219 - 1 file changed, 8 insertions(+), 6 deletions(-)
220 -
221 -diff --git a/plugins/obs-libfdk/obs-libfdk.c b/plugins/obs-libfdk/obs-libfdk.c
222 -index d6eb496184..94b139de57 100644
223 ---- a/plugins/obs-libfdk/obs-libfdk.c
224 -+++ b/plugins/obs-libfdk/obs-libfdk.c
225 -@@ -9,7 +9,6 @@
226 -
227 - #include <fdk-aac/aacenc_lib.h>
228 -
229 --
230 - static const char *libfdk_get_error(AACENC_ERROR err)
231 - {
232 - switch(err) {
233 -@@ -224,7 +223,7 @@ static bool libfdk_encode(void *data, struct encoder_frame *frame,
234 - void *in_ptr;
235 - void *out_ptr;
236 - AACENC_ERROR err;
237 --
238 -+ int64_t encoderDelay;
239 -
240 - in_ptr = frame->data[0];
241 - in_size = enc->frame_size_bytes;
242 -@@ -261,10 +260,13 @@ static bool libfdk_encode(void *data, struct encoder_frame *frame,
243 - }
244 -
245 - *received_packet = true;
246 --
247 -- packet->pts = enc->total_samples -
248 -- enc->info.encoderDelay; // TODO: Just a guess, find out if that's actualy right
249 -- packet->dts = enc->total_samples - enc->info.encoderDelay;
250 -+#if (AACENCODER_LIB_VL0 >= 4)
251 -+ encoderDelay= enc->info.nDelay;
252 -+#else
253 -+ encoderDelay= enc->info.encoderDelay;
254 -+#endif
255 -+ packet->pts = enc->total_samples - encoderDelay;
256 -+ packet->dts = enc->total_samples - encoderDelay;
257 - packet->data = enc->packet_buffer;
258 - packet->size = out_args.numOutBytes;
259 - packet->type = OBS_ENCODER_AUDIO;
260
261 diff --git a/media-video/obs-studio/obs-studio-22.0.3.ebuild b/media-video/obs-studio/obs-studio-22.0.3.ebuild
262 deleted file mode 100644
263 index c15bd0ab071..00000000000
264 --- a/media-video/obs-studio/obs-studio-22.0.3.ebuild
265 +++ /dev/null
266 @@ -1,134 +0,0 @@
267 -# Copyright 1999-2018 Gentoo Authors
268 -# Distributed under the terms of the GNU General Public License v2
269 -
270 -EAPI=6
271 -
272 -PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} )
273 -
274 -inherit cmake-utils gnome2-utils python-single-r1
275 -
276 -if [[ ${PV} == *9999 ]]; then
277 - inherit git-r3
278 - EGIT_REPO_URI="https://github.com/obsproject/obs-studio.git"
279 - EGIT_SUBMODULES=()
280 -else
281 - SRC_URI="https://github.com/obsproject/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
282 - KEYWORDS="~amd64 ~x86"
283 -fi
284 -
285 -DESCRIPTION="Software for Recording and Streaming Live Video Content"
286 -HOMEPAGE="https://obsproject.com"
287 -
288 -LICENSE="GPL-2"
289 -SLOT="0"
290 -IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python speex truetype v4l"
291 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
292 -
293 -COMMON_DEPEND="
294 - >=dev-libs/jansson-2.5
295 - dev-qt/qtcore:5
296 - dev-qt/qtdeclarative:5
297 - dev-qt/qtgui:5
298 - dev-qt/qtmultimedia:5
299 - dev-qt/qtnetwork:5
300 - dev-qt/qtquickcontrols:5
301 - dev-qt/qtsql:5
302 - dev-qt/qttest:5
303 - dev-qt/qtwidgets:5
304 - dev-qt/qtx11extras:5
305 - media-video/ffmpeg:=[x264]
306 - net-misc/curl
307 - x11-libs/libXcomposite
308 - x11-libs/libXinerama
309 - x11-libs/libXrandr
310 - alsa? ( media-libs/alsa-lib )
311 - fdk? ( media-libs/fdk-aac:= )
312 - imagemagick? ( media-gfx/imagemagick:= )
313 - jack? ( virtual/jack )
314 - luajit? ( dev-lang/luajit:2 )
315 - nvenc? (
316 - || (
317 - <media-video/ffmpeg-4[nvenc]
318 - >=media-video/ffmpeg-4[video_cards_nvidia]
319 - )
320 - )
321 - pulseaudio? ( media-sound/pulseaudio )
322 - python? ( ${PYTHON_DEPS} )
323 - speex? ( media-libs/speexdsp )
324 - truetype? (
325 - media-libs/fontconfig
326 - media-libs/freetype
327 - )
328 - v4l? ( media-libs/libv4l )
329 -"
330 -DEPEND="${COMMON_DEPEND}
331 - luajit? ( dev-lang/swig )
332 - python? ( dev-lang/swig )
333 -"
334 -RDEPEND="${COMMON_DEPEND}"
335 -
336 -PATCHES=(
337 - "${FILESDIR}/${PN}-21.1.2-use-less-automagic.patch"
338 - "${FILESDIR}/${PN}-22.0.3-fdk-build-fix.patch" # bug 672430
339 -)
340 -
341 -CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
342 -
343 -pkg_setup() {
344 - use python && python-single-r1_pkg_setup
345 -}
346 -
347 -src_configure() {
348 - local libdir=$(get_libdir)
349 - local mycmakeargs=(
350 - -DDISABLE_ALSA=$(usex !alsa)
351 - -DDISABLE_FREETYPE=$(usex !truetype)
352 - -DDISABLE_JACK=$(usex !jack)
353 - -DDISABLE_LIBFDK=$(usex !fdk)
354 - -DDISABLE_PULSEAUDIO=$(usex !pulseaudio)
355 - -DDISABLE_SPEEXDSP=$(usex !speex)
356 - -DDISABLE_V4L2=$(usex !v4l)
357 - -DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick)
358 - -DOBS_MULTIARCH_SUFFIX=${libdir#lib}
359 - -DOBS_VERSION_OVERRIDE=${PV}
360 - -DUNIX_STRUCTURE=1
361 - )
362 -
363 - if use luajit || use python; then
364 - mycmakeargs+=(
365 - -DDISABLE_LUA=$(usex !luajit)
366 - -DDISABLE_PYTHON=$(usex !python)
367 - -DENABLE_SCRIPTING=yes
368 - )
369 - else
370 - mycmakeargs+=( -DENABLE_SCRIPTING=no )
371 - fi
372 -
373 - cmake-utils_src_configure
374 -}
375 -
376 -pkg_postinst() {
377 - gnome2_icon_cache_update
378 -
379 - if ! use alsa && ! use pulseaudio; then
380 - elog
381 - elog "For the audio capture features to be available,"
382 - elog "either the 'alsa' or the 'pulseaudio' USE-flag needs to"
383 - elog "be enabled."
384 - elog
385 - fi
386 -
387 - if ! has_version "sys-apps/dbus"; then
388 - elog
389 - elog "The 'sys-apps/dbus' package is not installed, but"
390 - elog "could be used for disabling hibernating, screensaving,"
391 - elog "and sleeping. Where it is not installed,"
392 - elog "'xdg-screensaver reset' is used instead"
393 - elog "(if 'x11-misc/xdg-utils' is installed)."
394 - elog
395 - fi
396 -}
397 -
398 -pkg_postrm() {
399 - gnome2_icon_cache_update
400 -}