54 lines
1.5 KiB
Ruby
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.12.3.tar.xz"
|
|
sha256 "5139949d20274fdd702492438eeab2c9e55aa82f60aca17db27ebd3faf08489e"
|
|
|
|
bottle do
|
|
sha256 "52c6332470b9d9aa7eff6abaf6fa795ad0520d0b44243bf4c1951f63660dc124" => :high_sierra
|
|
sha256 "7f8fcb6f6d7a74c4e7f14f4bcfc6e58d43c7005008bf03d09aadf22a94a3fd18" => :sierra
|
|
sha256 "68afdac5c2b853d7b3664ad91012d739ed9405affabd3a921d2a6cd82a53966d" => :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 "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "gobject-introspection"
|
|
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
|