homebrew-core/Formula/jstalk.rb
Jack Nagel 502ff84d9c Add an xcodebuild helper and deprecate system "xcodebuild"
In the future we can remove the ENV munging branch from Formula#system.

Closes Homebrew/homebrew#27081.
2014-02-27 21:53:21 -06:00

24 lines
647 B
Ruby

require 'formula'
class Jstalk < Formula
homepage 'http://jstalk.org/'
url 'https://github.com/ccgus/jstalk/archive/v1.0.1.tar.gz'
sha1 '9257333ca347bc29cfc5e97cc199b61cfefa2168'
head 'https://github.com/ccgus/jstalk.git'
depends_on :macos => :snow_leopard
depends_on :xcode
def install
["JSTalk Framework", "jstalk command line", "JSTalk Editor"].each do |t|
xcodebuild "-target", t, "-configuration", "Release", "ONLY_ACTIVE_ARCH=YES", "SYMROOT=build"
end
cd 'build/Release' do
bin.install 'jstalk'
prefix.install "JSTalk Editor.app"
frameworks.install 'JSTalk.framework'
end
end
end