File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-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.3.tar.gz"
5+ sha256 "17037e8cc52773d3c9a88dcaeb1921cec9a0e4f92ff355fcc318585da41c25b4"
6+ license "GPL-2.0-only"
7+
8+ bottle do
9+ sha256 cellar : :any , arm64_tahoe : "2f0aa09821576492695638e9a18ad46146bcf707b1d05fb21acaee0366bf47fc"
10+ sha256 cellar : :any , arm64_sequoia : "d82db02d25dfcb70c32a72c9e9c6776fc554b2e454330d1c954229f801b1a052"
11+ sha256 cellar : :any , arm64_sonoma : "8772c66a99b20e38da45853be84661b6afab8f6c82786f00742535c984dc0278"
12+ sha256 cellar : :any , sonoma : "c05af963b7e418702626652d8a1d692b6ededdeede9f93744b72a447f1a7ad11"
13+ sha256 cellar : :any_skip_relocation , arm64_linux : "28ee674242b720a3393c2f1b0da9262a0f80e494f74478bc0675fb730a677052"
14+ sha256 cellar : :any_skip_relocation , x86_64_linux : "e845311c9f2490dd8548b3154b10d44dd2a1e46a9e563107204fa9c8565c3030"
15+ end
16+
17+ depends_on "pkgconf" => :build
18+ depends_on "rust" => :build
19+ depends_on "freetype"
20+ depends_on "gpac"
21+ depends_on "libpng"
22+ depends_on "protobuf-c"
23+ depends_on "utf8proc"
24+
25+ uses_from_macos "zlib"
26+
27+ on_linux do
28+ depends_on "llvm" => :build
29+ depends_on "leptonica"
30+ depends_on "tesseract"
31+ end
32+
33+ def install
34+ if OS . mac?
35+ cd "mac" do
36+ system "./build.command" , "-system-libs"
37+ bin . install "ccextractor"
38+ end
39+ else
40+ cd "linux" do
41+ system "./build" , "-system-libs"
42+ bin . install "ccextractor"
43+ end
44+ end
45+ end
46+
47+ test do
48+ assert_match "CCExtractor" , shell_output ( "#{ bin } /ccextractor --version" )
49+ end
50+ end
You can’t perform that action at this time.
0 commit comments