Skip to content

Commit 21e2463

Browse files
committed
ccextractor 0.96.2
1 parent 644b579 commit 21e2463

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Formula/c/ccextractor.rb

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
class Ccextractor < Formula
2+
desc "Tool for extracting closed captions from video files"
3+
homepage "https://www.ccextractor.org"
4+
url "https://github.com/CCExtractor/ccextractor/archive/refs/tags/v0.96.3.tar.gz"
5+
sha256 "f556273cf8279b560fda33078c68e9828e962f20ba08a6a0a811e0f8c71eae5d"
6+
license "GPL-2.0-only"
7+
8+
depends_on "pkgconf" => :build
9+
depends_on "rust" => :build
10+
depends_on "freetype"
11+
depends_on "gpac"
12+
depends_on "libpng"
13+
depends_on "protobuf-c"
14+
depends_on "utf8proc"
15+
16+
uses_from_macos "zlib"
17+
18+
on_linux do
19+
depends_on "llvm" => :build
20+
depends_on "leptonica"
21+
depends_on "tesseract"
22+
end
23+
24+
def install
25+
if OS.mac?
26+
cd "mac" do
27+
system "./build.command", "-system-libs"
28+
bin.install "ccextractor"
29+
end
30+
else
31+
cd "linux" do
32+
system "./build", "-system-libs"
33+
bin.install "ccextractor"
34+
end
35+
end
36+
end
37+
38+
test do
39+
assert_match "CCExtractor", shell_output("#{bin}/ccextractor --version")
40+
end
41+
end

0 commit comments

Comments
 (0)