33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
class Cclive < Formula
|
|
desc "Command-line video extraction utility"
|
|
homepage "https://cclive.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/cclive/0.7/cclive-0.7.16.tar.xz"
|
|
sha256 "586a120faddcfa16f5bb058b5c901f1659336c6fc85a0d3f1538882a44ee10e1"
|
|
revision 3
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "2ea1ae5e7b943c10a475487b07bce6bd6ae9c31b566925b8d517acfd9274b292" => :mojave
|
|
sha256 "5f249a48060074837ea7d628783ed52d7bf764a613cb643c7e0af8ae47d2e1e4" => :high_sierra
|
|
sha256 "561b79d162682fe1f604ade8123482b3dc9ebd958834a074f4cc1f67b77f7fb8" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "boost"
|
|
depends_on "pcre"
|
|
depends_on "quvi"
|
|
|
|
conflicts_with "clozure-cl", :because => "both install a ccl binary"
|
|
|
|
def install
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
url = "https://youtu.be/VaVZL7F6vqU"
|
|
output = shell_output("#{bin}/cclive --no-download #{url} 2>&1")
|
|
assert_match "Martin Luther King Jr Day", output
|
|
end
|
|
end
|