2012-08-07 06:45:13 +00:00
|
|
|
class Ccextractor < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Free, GPL licensed closed caption tool"
|
2014-08-17 16:31:33 +00:00
|
|
|
homepage "http://ccextractor.sourceforge.net/"
|
2015-02-03 04:07:12 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/ccextractor/ccextractor/0.75/ccextractor.src.0.75.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "fb6ed33d516b9198e1b625fec4fce99f079e28f1c556eff4552f53c92ecc9cca"
|
2015-02-03 04:07:12 +00:00
|
|
|
head "https://github.com/ccextractor/ccextractor.git"
|
2015-02-03 08:53:56 +00:00
|
|
|
revision 1
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libpng"
|
2012-08-07 06:45:13 +00:00
|
|
|
|
2015-02-03 07:55:01 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-03 11:01:10 +00:00
|
|
|
sha1 "2bd02af2ba9c80f8cdf6871eaaf2daac5fdbf4ae" => :yosemite
|
|
|
|
sha1 "3a8e49c088e63b8d3b20e7819265c59d35b970cb" => :mavericks
|
|
|
|
sha1 "1d77c07e0c5477c813219b4fd44e8479e720ce92" => :mountain_lion
|
2015-02-03 07:55:01 +00:00
|
|
|
end
|
|
|
|
|
2012-08-07 06:45:13 +00:00
|
|
|
def install
|
2015-02-03 08:53:56 +00:00
|
|
|
system "cmake", "src", *std_cmake_args
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
(share/"examples").install "docs/ccextractor.cnf.sample"
|
2015-02-03 04:07:12 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-02-03 08:53:56 +00:00
|
|
|
touch testpath/"test"
|
|
|
|
system "ccextractor", "test"
|
|
|
|
assert File.exist? "test.srt"
|
2012-08-07 06:45:13 +00:00
|
|
|
end
|
|
|
|
end
|