28 lines
1003 B
Ruby
28 lines
1003 B
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.0.0.tar.gz"
|
|
sha256 "5947267143fc63504bb21c094accad8c51160834f204a9b108211f28525bfbe4"
|
|
license "MIT"
|
|
head "https://github.com/krzysztofzablocki/Sourcery.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "18df6fc42860b714ce6f2e31e0c2df6409927d793d4c5594b3e752feae42d6a7" => :catalina
|
|
sha256 "adbafe637b3ffb78250e1ad95514d1c9fe597331fe13e89925381783803bf255" => :mojave
|
|
end
|
|
|
|
depends_on xcode: "10.2"
|
|
|
|
def install
|
|
system "swift", "build", "--disable-sandbox", "-c", "release", "-Xswiftc",
|
|
"-target", "-Xswiftc", "x86_64-apple-macosx10.11"
|
|
bin.install ".build/release/sourcery"
|
|
lib.install Dir[".build/release/*.dylib"]
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/sourcery --version").chomp
|
|
end
|
|
end
|