homebrew-core/Formula/mogenerator.rb
2018-06-28 08:32:15 -07:00

27 lines
1 KiB
Ruby

class Mogenerator < Formula
desc "Generate Objective-C code for Core Data custom classes"
homepage "https://rentzsch.github.io/mogenerator/"
url "https://github.com/rentzsch/mogenerator/archive/1.31.tar.gz"
sha256 "aab49260799a1bb58d1c3240f227db0a5ce18fb54bda72f45d07c8c8b375061f"
head "https://github.com/rentzsch/mogenerator.git"
bottle do
cellar :any_skip_relocation
sha256 "b5313f7dd8eeb5b379f6c64615104c23250b97c7c05de779427a29c573464f32" => :high_sierra
sha256 "19c0ec0b7f39deec9c99f4ede5ae1538acad0b3768db7b0557e15660efb41789" => :sierra
sha256 "eb94c192bb659183c72f970f1230948ce875ed49b53f0e7bb540660e7dae2353" => :el_capitan
sha256 "ceedcaabd71b51758c0b03e4b14be0f228e030af83651ad6f774c08d5910123b" => :yosemite
end
depends_on :xcode => :build
depends_on :macos => :yosemite
def install
xcodebuild "-target", "mogenerator", "-configuration", "Release", "SYMROOT=symroot", "OBJROOT=objroot"
bin.install "symroot/Release/mogenerator"
end
test do
system "#{bin}/mogenerator", "--version"
end
end