29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
class Sourcery < Formula
|
|
desc "Meta-programming for Swift, stop writing boilerplate code"
|
|
homepage "https://github.com/krzysztofzablocki/Sourcery"
|
|
url "https://github.com/krzysztofzablocki/Sourcery/archive/1.4.2.tar.gz"
|
|
sha256 "2ff6b435955ec4e44e007c32fdcea35c25fe2d6336d19e613c889912c01b8b58"
|
|
license "MIT"
|
|
head "https://github.com/krzysztofzablocki/Sourcery.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "bbdf8fab133cbe83bcf468effd3ee726a607495f6a43c64f4276e469ddd2a936"
|
|
sha256 cellar: :any, big_sur: "ca698b6ec73765d6fa0a65888258246a493134f90915c4699f6cde4ad259f442"
|
|
sha256 cellar: :any, catalina: "85b8f8e922d4f6169e38fd7ea0a3afc1187fc8fe887b2477a3b495bb2d8218ed"
|
|
end
|
|
|
|
depends_on xcode: "12.0"
|
|
uses_from_macos "ruby" => :build
|
|
|
|
def install
|
|
system "rake", "build"
|
|
bin.install "cli/bin/sourcery"
|
|
lib.install Dir["cli/lib/*.dylib"]
|
|
end
|
|
|
|
test do
|
|
# Regular functionality requires a non-sandboxed environment, so we can only test version/help here.
|
|
assert_match version.to_s, shell_output("#{bin}/sourcery --version").chomp
|
|
end
|
|
end
|