2014-03-24 15:36:12 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class LSmash < Formula
|
2014-06-22 16:05:43 +00:00
|
|
|
homepage "http://l-smash.github.io/l-smash/"
|
2014-05-24 12:30:43 +00:00
|
|
|
url "https://github.com/l-smash/l-smash.git", :tag => "v1.11.7", :shallow => false
|
2014-03-24 15:36:12 +00:00
|
|
|
head "https://github.com/l-smash/l-smash.git"
|
|
|
|
|
2014-03-26 08:53:08 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-05-24 12:40:07 +00:00
|
|
|
sha1 "8e76e28f5f8727e19e872ef410569e42b720468d" => :mavericks
|
|
|
|
sha1 "dc3a85de0c338dfebdc68e69ea5957639103c797" => :mountain_lion
|
|
|
|
sha1 "e112033ac79be6aedf04a25cd76d4b815253d5a6" => :lion
|
2014-03-26 08:53:08 +00:00
|
|
|
end
|
|
|
|
|
2014-03-24 15:36:12 +00:00
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}", "--enable-shared"]
|
|
|
|
|
|
|
|
# For getting version information correctly in the configure
|
|
|
|
buildpath.install_symlink cached_download/".git"
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/boxdumper", "-v"
|
|
|
|
system "#{bin}/muxer", "-v"
|
|
|
|
system "#{bin}/remuxer", "-v"
|
|
|
|
system "#{bin}/timelineeditor", "-v"
|
|
|
|
end
|
|
|
|
end
|