Skip to content

Commit a5a9c75

Browse files
authored
Merge pull request #232705 from Homebrew/videoalchemy
videoalchemy 1.0.0 (new formula)
2 parents 367c2b2 + 3c240c4 commit a5a9c75

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Formula/v/videoalchemy.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
class Videoalchemy < Formula
2+
desc "Toolkit expanding video processing capabilities"
3+
homepage "https://viddotech.github.io/videoalchemy/"
4+
url "https://github.com/viddotech/videoalchemy/archive/refs/tags/1.0.0.tar.gz"
5+
sha256 "1ad4ab7e1037a84a7a894ff7dd5e0e3b1b33ded684eace4cadc606632bbc5e3d"
6+
license "MIT"
7+
head "https://github.com/viddotech/videoalchemy.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "f90306872d961d0f3b3faa8591c95d22f55f989d5176e3365b7e03a1f158ed24"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f90306872d961d0f3b3faa8591c95d22f55f989d5176e3365b7e03a1f158ed24"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "f90306872d961d0f3b3faa8591c95d22f55f989d5176e3365b7e03a1f158ed24"
13+
sha256 cellar: :any_skip_relocation, sonoma: "2e949c0b167c2278117aa0e3340c623b67419920e1de8c933f016581fd183579"
14+
sha256 cellar: :any_skip_relocation, ventura: "2e949c0b167c2278117aa0e3340c623b67419920e1de8c933f016581fd183579"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "f53966609f56765856602f4a631171eaafeefb0fb2bb6bc9bf26fc25650ddc92"
16+
end
17+
18+
depends_on "go" => :build
19+
20+
def install
21+
ldflags = "-s -w -X main.version=#{version} -X main.date=#{time.iso8601}"
22+
system "go", "build", *std_go_args(ldflags:), "./cmd/compose"
23+
24+
generate_completions_from_executable(bin/"videoalchemy", "completion", shells: [:bash, :zsh, :fish, :pwsh])
25+
end
26+
27+
test do
28+
assert_match version.to_s, shell_output("#{bin}/videoalchemy --version")
29+
30+
(testpath/"test.yaml").write <<~YAML
31+
version: '1.0'
32+
tasks:
33+
- name: "Test Task"
34+
command: "echo Hello, Videoalchemy!"
35+
YAML
36+
37+
output = shell_output("#{bin}/videoalchemy compose -f test.yaml")
38+
assert_match "Validation Error: generate_path => is required", output
39+
end
40+
end

0 commit comments

Comments
 (0)