26 lines
854 B
Ruby
26 lines
854 B
Ruby
require 'formula'
|
|
|
|
class Chuck < Formula
|
|
homepage 'http://chuck.cs.princeton.edu/'
|
|
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
|