aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWonchul Lee2015-04-11 17:15:34 +0900
committerXu Cheng2015-04-13 16:10:30 +0800
commit1a242ecc969be0d733fc77a6127272d634f0bad4 (patch)
tree3467336a306cbf251d44c2a4a702973a86026b1a
parent2177efb577bc0b0311d85da82c58027fa9944fd7 (diff)
downloadhomebrew-1a242ecc969be0d733fc77a6127272d634f0bad4.tar.bz2
gst-validate 1.4.0 (new formula)
Closes #38541. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Formula/gst-validate.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/gst-validate.rb b/Library/Formula/gst-validate.rb
new file mode 100644
index 000000000..714abb960
--- /dev/null
+++ b/Library/Formula/gst-validate.rb
@@ -0,0 +1,46 @@
+class GstValidate < Formula
+ homepage "http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-validate/html/"
+ url "http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.4.0.tar.xz"
+ sha256 "ac30d1041a8cfe5d268439f5cedee7e9753ba49080fc67bff1266581198438d0"
+
+ head do
+ url "git://anongit.freedesktop.org/gstreamer/gst-devtools"
+
+ 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"
+
+ 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