class GstPluginsBase < Formula desc "GStreamer plugins (well-supported, basic set)" homepage "https://gstreamer.freedesktop.org/" url "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.16.0.tar.xz" sha256 "4093aa7b51e28fb24dfd603893fead8d1b7782f088b05ed0f22a21ef176fb5ae" bottle do sha256 "68c2133ee6fbc1cf02b6cbe2cf2196c0fe0945809101a03d92b4402745ab4306" => :mojave sha256 "4e61e9185d605eea6fb7457467a9843d6585b47845ef1ee8e0b1a7b22bdaec20" => :high_sierra sha256 "e6ce6564ba2d19701e8fde02be409a67cd91bef2cc3c85f4ca39d379aa36c73a" => :sierra end head do url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build end depends_on "gobject-introspection" => :build depends_on "pkg-config" => :build depends_on "gettext" depends_on "gstreamer" depends_on "libogg" depends_on "libvorbis" depends_on "opus" depends_on "orc" depends_on "pango" depends_on "theora" def install # gnome-vfs turned off due to lack of formula for it. args = %W[ --prefix=#{prefix} --enable-experimental --disable-libvisual --disable-alsa --disable-cdparanoia --without-x --disable-x --disable-xvideo --disable-xshm --disable-debug --disable-dependency-tracking --enable-introspection=yes ] if build.head? ENV["NOCONFIGURE"] = "yes" system "./autogen.sh" end system "./configure", *args system "make" system "make", "install" end test do gst = Formula["gstreamer"].opt_bin/"gst-inspect-1.0" output = shell_output("#{gst} --plugin volume") assert_match version.to_s, output end end