# TODO:
# Note install all browsers plus firefox plugins (firebug, web developer, greasemonkey, etc)
# setup textmate prefs (TM_XHTML, TM_ORGANIZATION_NAME, etc)
# skitch should be installed
# bonjour should be enabled and auto-connect on startup
# the rest needs refactoring elsewhere into recipes
Dir.cd($ENV['HOME'])
# Update rubygems to 1.2.0
system('gem update --system')
# Install some base gems
gem_install('ParseTree', '2.1.1')
gem_install('ruby2ruby', '1.1.8')
gem_install(%w{sake hpricot rspec Shoulda newgem newjs rbiphonetest ZenTest capistrano capistrano-ext find_gem rails rb-appscript test-parser rubyforge})
# Install all the Rails versions we might need
%w{2.0.0 2.0.1 2.0.2 2.0.4 2.1.0 2.1.1}.each do |version|
gem_install('rails', version)
end
# The following is gem_install_from_github:
# We want to manually install gem Deprec gem here
system("git clone git://github.com/mbailey/deprec.git")
Dir.cd("deprec")
system("gem build deprec.gemspec && gem install deprec*.gem")
Dir.cd("..")
FileUtils.rm_r("deprec")
# Install all our apps from the apps/ directory
app_install %w{
TextMate.dmg MySQL.pkg MacPorts.pkg
Git.pkg Quicksilver.dmg Mailplane.dmg
Fluid.dmg PostgreSQL.pkg XCode.dmg
}
# Now that XCode is installed, we need to set up some options
#system(%q{defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions ' { "ORGANIZATIONNAME" = "Dr Nic Academy Pty Ltd"; } '})
# Once PostgreSQL is installed
gem_install('postgres')
# Setup TextMate bundles
bundle_dir = "~/Library/Application Support/TextMate/Bundles/"
FileUtils.mkdir_p(bundle_dir)
Dir.cd(bundle_dir)
system("git clone git://github.com/bjeanes/tmbundle-collection.git ./")
system("git submodule update --init")
Dir.cd($ENV['HOME'])