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.12.2.tar.xz" sha256 "5067dce3afe197a9536fea0107c77213fab536dff4a213b07fc60378d5510675" bottle do sha256 "3644bdcb9ca64408cdff25efec03c19bd91a394b4930967c665d7df61037b65b" => :sierra sha256 "6943a85ab34673219745856445aea3e965335b7ae0b85c395920f0927d008e1d" => :el_capitan sha256 "8230958310b091ede8c263c8b2e5bee2b5e55793649c6c54f0aff95ff6a002c2" => :yosemite 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 "pkg-config" => :build depends_on "gettext" depends_on "gstreamer" # The set of optional dependencies is based on the intersection of # https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/REQUIREMENTS # and Homebrew formulae depends_on "gobject-introspection" depends_on "orc" => :recommended depends_on "libogg" => :optional depends_on "opus" => :optional depends_on "pango" => :optional depends_on "theora" => :optional depends_on "libvorbis" => :optional 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