homebrew-core/Formula/gst-validate.rb
2018-05-18 03:14:57 -07:00

54 lines
1.5 KiB
Ruby

class GstValidate < Formula
desc "Tools to validate GstElements from GStreamer"
homepage "https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-validate/html/"
url "https://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.14.1.tar.xz"
sha256 "68e3f38f66e0d04837b60090fe5d9ca1127f5df124669f34ca82e241209171e4"
bottle do
sha256 "42b4292fa742150cd9f27f9fad9bfd3d79011f949fc2ab54f384758302ac74bc" => :high_sierra
sha256 "f51d4072cf2d18f78eaac88388c248e719d89308c59ad184c233d3b97867b03b" => :sierra
sha256 "c9776a4326619234c373546a794972f298c885ccbc9cc05b57b6afb6d6d3b626" => :el_capitan
end
head do
url "https://anongit.freedesktop.org/git/gstreamer/gst-devtools.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 "gst-plugins-base"
depends_on "json-glib"
def install
args = %W[
--prefix=#{prefix}
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
]
if build.head?
ENV["NOCONFIGURE"] = "yes"
cd "validate" do
system "./autogen.sh"
system "./configure", *args
system "make"
system "make", "install"
end
else
system "./configure", *args
system "make"
system "make", "install"
end
end
test do
system "#{bin}/gst-validate-launcher", "--usage"
end
end