homebrew-core/Formula/ccextractor.rb
2015-10-13 02:36:35 +01:00

32 lines
1 KiB
Ruby

class Ccextractor < Formula
desc "Free, GPL licensed closed caption tool"
homepage "http://ccextractor.sourceforge.net/"
url "https://downloads.sourceforge.net/project/ccextractor/ccextractor/0.75/ccextractor.src.0.75.zip"
sha256 "fb6ed33d516b9198e1b625fec4fce99f079e28f1c556eff4552f53c92ecc9cca"
head "https://github.com/ccextractor/ccextractor.git"
revision 1
bottle do
cellar :any
revision 1
sha256 "58a191a71de18ec0dd05dc87d939ec77734ae56be0a5ddb474ee0752daeb272d" => :el_capitan
sha256 "ccefb5fb2a0ac270ed2e59bcffdb9510f583b2b71134b51b1cb521fb04db997d" => :yosemite
sha256 "d912fde7ea48d6c50a2c675d851e2ca5c2edd52b06074e126ab708e63f7e7e8b" => :mavericks
end
depends_on "cmake" => :build
depends_on "libpng"
def install
system "cmake", "src", *std_cmake_args
system "make"
system "make", "install"
(share/"examples").install "docs/ccextractor.cnf.sample"
end
test do
touch testpath/"test"
system "ccextractor", "test"
assert File.exist? "test.srt"
end
end