2010-12-31 09:00:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mogenerator < Formula
|
2011-07-24 16:59:37 +00:00
|
|
|
url 'https://github.com/rentzsch/mogenerator/tarball/1.23'
|
2010-12-31 09:00:54 +00:00
|
|
|
homepage 'http://rentzsch.github.com/mogenerator/'
|
2011-07-24 16:59:37 +00:00
|
|
|
md5 'cb6bcbb1fe8303a89e8ee27b789ac8ed'
|
2011-05-27 05:02:55 +00:00
|
|
|
head "https://github.com/rentzsch/mogenerator.git"
|
2010-12-31 09:00:54 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "xcodebuild -target mogenerator -configuration Release SYMROOT=symroot OBJROOT=objroot"
|
|
|
|
bin.install "symroot/Release/mogenerator"
|
2011-07-24 16:59:37 +00:00
|
|
|
|
|
|
|
# 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
|
2010-12-31 09:00:54 +00:00
|
|
|
end
|
|
|
|
end
|