media-video/obs-studio: Adjust 9999-dependencies and 'postinst' phase.
authorJimi Huotari <chiitoo@gentoo.org>
Sat, 1 Oct 2016 21:16:31 +0000 (00:16 +0300)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 3 Oct 2016 19:30:32 +0000 (21:30 +0200)
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@gentoo.org>
media-video/obs-studio/obs-studio-9999.ebuild

index 738501dcba0a97e50ffcb399750535e8c439003b..678d13dc8d77943de34558cb6f353e6373840772 100644 (file)
@@ -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
 }