homebrew-core/Formula/chuck.rb

27 lines
854 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Chuck < Formula
homepage 'http://chuck.cs.princeton.edu/'
2014-02-08 16:12:55 +00:00
url 'http://chuck.cs.princeton.edu/release/files/chuck-1.3.3.0.tgz'
sha1 'fdf70c860c9fabf45a8caf07830bc70548ce3bba'
def install
cd "src" do
# On 10.9, chuck fails to set flags to link against the
# private framework it needs
# See: https://github.com/Homebrew/homebrew/issues/26519
inreplace 'makefile.osx' do |s|
# Continuation of another line, which the change_make_var! will mangle
s.gsub! ' -weak_framework MultitouchSupport', ''
s.change_make_var! 'LINK_EXTRAS',
'-F/System/Library/PrivateFrameworks -weak_framework MultitouchSupport'
s.remove_make_var! 'ISYSROOT'
end
system "make osx"
bin.install "chuck"
end
(share/'chuck').install "examples/"
end
end