KEYWORDS="-* ~amd64 ~x86"
SLOT="0"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="selinux startup-notification"
+IUSE="+ffmpeg +pulseaudio selinux startup-notification"
DEPEND="app-arch/unzip"
RDEPEND="dev-libs/atk
>=sys-apps/dbus-0.60
>=dev-libs/dbus-glib-0.72
>=dev-libs/glib-2.26:2
- >=media-libs/alsa-lib-1.0.16
media-libs/fontconfig
>=media-libs/freetype-2.4.10
>=x11-libs/cairo-1.10[X]
x11-libs/libXt
>=x11-libs/pango-1.22.0
virtual/freedesktop-icon-theme
+ pulseaudio? ( || ( media-sound/pulseaudio
+ >=media-sound/apulse-0.1.9 ) )
+ ffmpeg? ( media-video/ffmpeg )
selinux? ( sec-policy/selinux-mozilla )
"
cat <<-EOF >"${ED}"usr/bin/${PN}
#!/bin/sh
unset LD_PRELOAD
- LD_LIBRARY_PATH="/opt/firefox/"
- GTK_PATH=/usr/lib/gtk-2.0/
+ LD_LIBRARY_PATH="/usr/$(get_libdir)/apulse:/opt/firefox/" \\
+ GTK_PATH=/usr/lib/gtk-3.0/ \\
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
EOF
fperms 0755 /usr/bin/${PN}
einfo "gnome-base/orbit and net-misc/curl emerged."
einfo
fi
- einfo "For HTML5 video you need media-video/ffmpeg installed."
-
- # Drop requirement of curl not built with nss as it's not necessary anymore
- #if has_version 'net-misc/curl[nss]'; then
- # einfo
- # einfo "Crashreporter won't be able to send reports"
- # einfo "if you have curl emerged with the nss USE-flag"
- # einfo
- #fi
+ use ffmpeg || ewarn "USE=-ffmpeg : HTML5 video will not render without media-video/ffmpeg installed"
+ use pulseaudio || ewarn "USE=-pulseaudio : audio will not play without apulse or pulseaudio installed"
# Update mimedb for the new .desktop file
fdo-mime_desktop_database_update