mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
25 lines
715 B
Ruby
25 lines
715 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|
|
|
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
|