35 lines
949 B
Ruby
35 lines
949 B
Ruby
class Hpa < Formula
|
|
desc "Command-line tool for managine home assesment projects"
|
|
homepage "https://git.housh.dev/michael/swift-hpa.git"
|
|
url "https://git.housh.dev/michael/swift-hpa.git",
|
|
tag: "0.1.1",
|
|
revision: "0c6e9e12280bb9d1ce5e42a028b7b6b69589b3a5"
|
|
sha256 "e6424672802fae056e423f3af77fda5a9c9bb5307ac2712ff8bfd072c1642a3b"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b93acab399346d8babcebfb85a6e2b8081715737caa926c5a0e53335e987e24c"
|
|
end
|
|
|
|
|
|
depends_on xcode: ["16.0", :build]
|
|
|
|
uses_from_macos "swift" => :build
|
|
|
|
def install
|
|
args = if OS.mac?
|
|
["--disable-sandbox"]
|
|
else
|
|
["--static-swift-stdlib"]
|
|
end
|
|
system "swift", "build", *args, "-c", "release", "--product", "hpa"
|
|
bin.install ".build/release/hpa"
|
|
generate_completions_from_executable(bin/"hpa", "--generate-completion-script")
|
|
end
|
|
|
|
test do
|
|
system "true"
|
|
end
|
|
end
|