Skip to content

Commit

Permalink
chuck 1.3.5.0
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#36804.

Signed-off-by: Jack Nagel <[email protected]>
  • Loading branch information
afh authored and jacknagel committed Feb 14, 2015
1 parent 488df80 commit adbbedb
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions Formula/chuck.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Chuck < Formula
homepage "http://chuck.cs.princeton.edu/"
url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.4.0.tgz"
sha1 "d32faae2cb60fc81d2716b477cf2d54bc548d9c6"
url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.5.0.tgz"
sha1 "a97ad56f9fd1b0793ead099cc9723e888b3782c3"

bottle do
cellar :any
Expand All @@ -10,11 +10,6 @@ class Chuck < Formula
sha1 "f9831daea9100f13865049b40057fcec6b6e6203" => :mountain_lion
end

# Homebrew already takes care of setting the sysroot;
# also lets the build work on CLT.
# Also fixes the version regex for 10.10+; reported to chuck-dev.
patch :DATA

def install
system "make", "-C", "src", "osx"
bin.install "src/chuck"
Expand All @@ -25,20 +20,3 @@ def install
assert_match /probe \[success\]/m, shell_output("#{bin}/chuck --probe 2>&1")
end
end

__END__
diff --git a/src/makefile.osx b/src/makefile.osx
index 4531ee1..65cee97 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -1,9 +1,7 @@
# uncomment the following to force 32-bit compilation
# FORCE_M32=-m32

-ifneq ($(shell sw_vers -productVersion | egrep '10\.[6789](\.[0-9]+)?'),)
-SDK=$(shell xcodebuild -sdk macosx -version | grep '^Path:' | sed 's/Path: \(.*\)/\1/')
-ISYSROOT=-isysroot $(SDK)
+ifneq ($(shell sw_vers -productVersion | egrep '10\.([6789]|1[0-9]+)(\.[0-9]+)?'),)
LINK_EXTRAS=-F/System/Library/PrivateFrameworks \
-weak_framework MultitouchSupport
else

0 comments on commit adbbedb

Please sign in to comment.