File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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.2.tar.gz"
5+ sha256 "f11c53f9d194296d8b560c7fd10fef2450c82da45c49d52cbe51b99149e80ac5"
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
You can’t perform that action at this time.
0 commit comments