homebrew-core/Formula/mogenerator.rb
Max Howell 1d48daaa4d With xcodebuild don't set CC, CXX, etc.
The compiler setting in the xcodeproj is overridden by the CC setting in the environment. This is a bit insane IMO since the xcodeproj itself has detailed decisions about what tools to use.

Fixes Homebrew/homebrew#6406.
2011-09-10 11:30:00 +01:00

29 lines
935 B
Ruby

require 'formula'
class Mogenerator < Formula
url 'https://github.com/rentzsch/mogenerator/tarball/1.23'
homepage 'http://rentzsch.github.com/mogenerator/'
md5 'cb6bcbb1fe8303a89e8ee27b789ac8ed'
head "https://github.com/rentzsch/mogenerator.git"
def install
system "xcodebuild -target mogenerator -configuration Release SYMROOT=symroot OBJROOT=objroot"
bin.install "symroot/Release/mogenerator"
# Install default demplates
(prefix+'templates').install Dir['templates/*.motemplate']
end
def caveats; <<-EOS.undent
A default set of Mogenerator templates have been installed to:
#{prefix}/templates
If you haven't written your own templates, you may wish to copy these for
your own use:
mkdir -p "#{ENV['HOME']}/Library/Application Support/mogenerator"
cp #{prefix}/templates/*.motemplate "#{ENV['HOME']}/Library/Application Support/mogenerator/"
EOS
end
end