commit:     f4671528d31484f621606681eeaec7d3a9127a06
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 29 20:01:41 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Oct  2 23:58:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4671528

media-video/obs-studio: remove version 26.1.2 and update metadata/files

The 'imagemagick' USE-flag and the '-fix-alsa-crash.patch' are no
longer used after 26.1.2 is gone.

Package-Manager: Portage-3.0.24, Repoman-3.0.3
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/22444
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-video/obs-studio/Manifest                    |   1 -
 .../files/obs-studio-26.1.2-fix-alsa-crash.patch   |  30 ----
 media-video/obs-studio/metadata.xml                |   1 -
 media-video/obs-studio/obs-studio-26.1.2-r2.ebuild | 167 ---------------------
 4 files changed, 199 deletions(-)

diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest
index 99613fc54b2..4c88e779fa6 100644
--- a/media-video/obs-studio/Manifest
+++ b/media-video/obs-studio/Manifest
@@ -1,6 +1,5 @@
 DIST cef_binary_4280_linux64.tar.bz2 79740715 BLAKE2B 
c648a9a4205094450f9eae407e98cbc3da2b7cd81b3c19c4f52cfa3efcca01dce40528018996c65f026eb97520d78040165d1906b0d19236a86e76ec39c58c26
 SHA512 
060a5a8716a75b4b96dfb6ac28c132e22b93107915d680311c1b9d4fd12c7712a9e3497338eac6d2b9f4e74f2dc005a75d195c597bba049e4731fe3724f519ba
 DIST obs-browser-2a338b7c76d5dd0a6b23f1d49affefd40213b0e9.tar.gz 89474 BLAKE2B 
ff76a884ffbb7765430a14a7de2955164e9d8823f5dd48bd85e6d0452022b706517e935d813ad78a45adf5eca95fda02e17ae81dbd721145d3ecd169c5a70537
 SHA512 
bcc8e38505b3cabd7c0e3edcd34ed21141efaa09a9bb0af79fefb57e315531f0ee089b79696802fa052659f66e0becf304286ef82afcf16283ed6664cb5cedd4
 DIST obs-browser-f1a61c5a2579e5673765c31a47c2053d4b502d4b.tar.gz 79259 BLAKE2B 
28cfa46928de0b5e626b384673f7b92b3a48cb631066dda06288c51df78f06b913707a1295a5142d4521505b0678a6c639bfbb5b8a066d585fa12849578a382e
 SHA512 
3ecab39bfb36774ac501de087ca70ecde12f408cfd54cdf12539a92e89d0cf531767a066ff77139389158c46beee423cf1848081ed187890b86241aa96f7b179
-DIST obs-studio-26.1.2.tar.gz 16624899 BLAKE2B 
655a6c71d3a0ae6ae1fc2d166a148002bb17d6eaec06d5633a10fdbfe7f42e073526ede83cd36ad21c440debe870b41b43724caa00633733f1e196d918304adc
 SHA512 
cd95fbf587f7edfe415cae75299d65c1d771bb118649fb839ae43d77145d87725c23df3360aa7b8c35ab8b62e5ec7983a8b02f8b102caa78f768eb58b4263417
 DIST obs-studio-27.0.1.tar.gz 15787807 BLAKE2B 
c2ea571f06a81b2e87ce5d9fd010610ea6cc2753223e6373025f0389972d4638a5f3ff1802f9f0af2c631d71ebcf4603e064da804e8c89eb032b1ad5743d1bd4
 SHA512 
c15dda62c1f212f623914e61a90c6b1e035720fb84d64726c14f43d77ae7569777a23d04221db34347ce610e7c3407c29e726ae36412e98e34ea2ddb2072b7f3
 DIST obs-studio-27.1.1.tar.gz 15994581 BLAKE2B 
43ec33b36e9d63636c9b9b750788795cb2e31866e2572d18e405836c569e24a375108b0fda5826b56c9a13839210c8a51cf3fef22d589f816c189c6bb76b826e
 SHA512 
911fec2168ea0d378dfc295e10851ab436fb9f94ea7bb6aef6d00d32ea427b34e4929c955b138973b3f635e55ef17aa9272faaff4f9ba2c1c3c97c082318d59c

diff --git 
a/media-video/obs-studio/files/obs-studio-26.1.2-fix-alsa-crash.patch 
b/media-video/obs-studio/files/obs-studio-26.1.2-fix-alsa-crash.patch
deleted file mode 100644
index 2e52926feba..00000000000
--- a/media-video/obs-studio/files/obs-studio-26.1.2-fix-alsa-crash.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 41367bb2b4732507248f2b3c2e43e2aa46c5ef2a Mon Sep 17 00:00:00 2001
-From: Jimi Huotari <[email protected]>
-Date: Wed, 30 Dec 2020 03:14:34 +0200
-Subject: [PATCH] UI: Fix crash when no audio backends are available
-
-This commit prevents a crash in, for example, Linux configurations
-where PulseAudio is disabled, which leads into 'mod' being 'null',
-which in turn leads into a segmentation fault when an ALSA source
-is selected.
-
-Closes https://github.com/obsproject/obs-studio/issues/3485
----
- UI/context-bar-controls.cpp | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/UI/context-bar-controls.cpp b/UI/context-bar-controls.cpp
-index 9dff8979a2..9ef850b6d1 100644
---- a/UI/context-bar-controls.cpp
-+++ b/UI/context-bar-controls.cpp
-@@ -179,6 +179,10 @@ void AudioCaptureToolbar::Init()
- 
-       obs_module_t *mod =
-               get_os_module("win-wasapi", "mac-capture", "linux-pulseaudio");
-+      if (!mod) {
-+              return;
-+      }
-+
-       const char *device_str =
-               get_os_text(mod, "Device", "CoreAudio.Device", "Device");
-       ui->deviceLabel->setText(device_str);

diff --git a/media-video/obs-studio/metadata.xml 
b/media-video/obs-studio/metadata.xml
index de6926e4749..b16a1b2e5db 100644
--- a/media-video/obs-studio/metadata.xml
+++ b/media-video/obs-studio/metadata.xml
@@ -19,7 +19,6 @@
     <flag name="browser">Enable browser source support via (precompiled) 
CEF.</flag>
     <flag name="decklink">Build the Decklink plugin.</flag>
     <flag name="fdk">Build with LibFDK AAC support.</flag>
-    <flag name="imagemagick">Use ImageMagick for image loading instead of 
FFmpeg.</flag>
     <flag name="nvenc">Build with NVENC encoding support for nVidia video 
cards.</flag>
     <flag name="pipewire">Build with PipeWire support.</flag>
     <flag name="python">Build with scripting support for Python 3.</flag>

diff --git a/media-video/obs-studio/obs-studio-26.1.2-r2.ebuild 
b/media-video/obs-studio/obs-studio-26.1.2-r2.ebuild
deleted file mode 100644
index 0ff7ff59c0e..00000000000
--- a/media-video/obs-studio/obs-studio-26.1.2-r2.ebuild
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
-LUA_COMPAT=( luajit )
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit cmake lua-single python-single-r1 xdg-utils
-
-if [[ ${PV} == *9999 ]]; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/obsproject/obs-studio.git";
-       EGIT_SUBMODULES=()
-else
-       SRC_URI="https://github.com/obsproject/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~amd64 ~ppc64 ~x86"
-fi
-
-DESCRIPTION="Software for Recording and Streaming Live Video Content"
-HOMEPAGE="https://obsproject.com";
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="+alsa fdk imagemagick jack lua nvenc pulseaudio python speex +ssl 
truetype v4l vlc"
-REQUIRED_USE="
-       lua? ( ${LUA_REQUIRED_USE} )
-       python? ( ${PYTHON_REQUIRED_USE} )
-"
-
-BDEPEND="
-       lua? ( dev-lang/swig )
-       python? ( dev-lang/swig )
-"
-DEPEND="
-       >=dev-libs/jansson-2.5:=
-       dev-qt/qtcore:5
-       dev-qt/qtdeclarative:5
-       dev-qt/qtgui:5
-       dev-qt/qtmultimedia:5
-       dev-qt/qtnetwork:5
-       dev-qt/qtquickcontrols:5
-       dev-qt/qtsql:5
-       dev-qt/qtsvg:5
-       dev-qt/qtwidgets:5
-       dev-qt/qtx11extras:5
-       dev-qt/qtxml:5
-       media-libs/x264:=
-       media-video/ffmpeg:=[x264]
-       net-misc/curl
-       sys-apps/dbus
-       sys-libs/zlib
-       virtual/udev
-       x11-libs/libX11
-       x11-libs/libXcomposite
-       x11-libs/libXfixes
-       x11-libs/libXinerama
-       x11-libs/libXrandr
-       x11-libs/libxcb
-       alsa? ( media-libs/alsa-lib )
-       fdk? ( media-libs/fdk-aac:= )
-       imagemagick? ( media-gfx/imagemagick:= )
-       jack? ( virtual/jack )
-       lua? ( ${LUA_DEPS} )
-       nvenc? ( >=media-video/ffmpeg-4[video_cards_nvidia] )
-       pulseaudio? ( media-sound/pulseaudio )
-       python? ( ${PYTHON_DEPS} )
-       speex? ( media-libs/speexdsp )
-       ssl? ( net-libs/mbedtls:= )
-       truetype? (
-               media-libs/fontconfig
-               media-libs/freetype
-       )
-       v4l? ( media-libs/libv4l )
-       vlc? ( media-video/vlc:= )
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-26.1.2-fix-alsa-crash.patch"
-       "${FILESDIR}/${PN}-26.1.2-python-3.8.patch" # 
https://github.com/obsproject/obs-studio/pull/3335
-)
-
-pkg_setup() {
-       use lua && lua-single_pkg_setup
-       use python && python-single-r1_pkg_setup
-}
-
-src_configure() {
-       local libdir=$(get_libdir)
-       local mycmakeargs=(
-               -DDISABLE_ALSA=$(usex !alsa)
-               -DDISABLE_FREETYPE=$(usex !truetype)
-               -DDISABLE_JACK=$(usex !jack)
-               -DDISABLE_LIBFDK=$(usex !fdk)
-               -DDISABLE_PULSEAUDIO=$(usex !pulseaudio)
-               -DDISABLE_SPEEXDSP=$(usex !speex)
-               -DDISABLE_V4L2=$(usex !v4l)
-               -DDISABLE_VLC=$(usex !vlc)
-               -DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick)
-               -DOBS_MULTIARCH_SUFFIX=${libdir#lib}
-               -DUNIX_STRUCTURE=1
-               -DWITH_RTMPS=$(usex ssl)
-       )
-
-       if [[ ${PV} != *9999 ]]; then
-               mycmakeargs+=(
-                       -DOBS_VERSION_OVERRIDE=${PV}
-               )
-       fi
-
-       if use lua || use python; then
-               mycmakeargs+=(
-                       -DDISABLE_LUA=$(usex !lua)
-                       -DDISABLE_PYTHON=$(usex !python)
-                       -DENABLE_SCRIPTING=yes
-               )
-       else
-               mycmakeargs+=( -DENABLE_SCRIPTING=no )
-       fi
-
-       cmake_src_configure
-}
-
-src_install() {
-       cmake_src_install
-       #external plugins may need some things not installed by default, 
install them here
-       insinto /usr/include/obs/UI/obs-frontend-api
-       doins UI/obs-frontend-api/obs-frontend-api.h
-}
-
-pkg_postinst() {
-       xdg_icon_cache_update
-
-       if ! use alsa && ! use pulseaudio; then
-               elog
-               elog "For the audio capture features to be available,"
-               elog "either the 'alsa' or the 'pulseaudio' USE-flag needs to"
-               elog "be enabled."
-               elog
-       fi
-
-       if ! has_version "sys-apps/dbus"; then
-               elog
-               elog "The 'sys-apps/dbus' package is not installed, but"
-               elog "could be used for disabling hibernating, screensaving,"
-               elog "and sleeping.  Where it is not installed,"
-               elog "'xdg-screensaver reset' is used instead"
-               elog "(if 'x11-misc/xdg-utils' is installed)."
-               elog
-       fi
-}
-
-pkg_postinst() {
-       if use python; then
-               ewarn "This ebuild applies a patch that is not yet accepted 
upstream,"
-               ewarn "and while it fixes Python support at least to some 
extent, it"
-               ewarn "may cause other issues."
-               ewarn ""
-               ewarn "Please report any such issues to the Gentoo maintainer."
-       fi
-}
-
-pkg_postrm() {
-       xdg_icon_cache_update
-}

Reply via email to