commit:     febae70ca6acbe25ae39768b434a7cbc3ea67e0e
Author:     Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  1 21:16:31 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Oct  3 19:30:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=febae70c

media-video/obs-studio: Adjust 9999-dependencies and 'postinst' phase.

Depend on 'media-video/ffmpeg:=[x264]' instead of the two packages separately,
and add 'net-misc/curl' as a potential missing required dependency.

Additionally, display more information about optional features depending on
optional packages, should they be missing.

Package-Manager: portage-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/2448

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 media-video/obs-studio/obs-studio-9999.ebuild | 29 +++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

diff --git a/media-video/obs-studio/obs-studio-9999.ebuild 
b/media-video/obs-studio/obs-studio-9999.ebuild
index 738501d..678d13d 100644
--- a/media-video/obs-studio/obs-studio-9999.ebuild
+++ b/media-video/obs-studio/obs-studio-9999.ebuild
@@ -34,8 +34,8 @@ DEPEND="
        dev-qt/qttest:5
        dev-qt/qtwidgets:5
        dev-qt/qtx11extras:5
-       media-libs/x264:=
-       media-video/ffmpeg:=
+       media-video/ffmpeg:=[x264]
+       net-misc/curl
        x11-libs/libXcomposite
        x11-libs/libXinerama
        x11-libs/libXrandr
@@ -77,7 +77,28 @@ src_configure() {
 
 pkg_postinst() {
        if ! use alsa && ! use pulseaudio; then
-               elog "To be able to use the audio capture features, either the"
-               elog "'alsa' or the 'pulseaudio' USE-flag needs to be enabled."
+               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
+
+       if ! has_version "media-libs/speex"; then
+               elog
+               elog "For the speexdsp-based noise suppression filter"
+               elog "to be available, the 'media-libs/speex' package needs"
+               elog "to be installed."
+               elog
        fi
 }

Reply via email to