homebrew-core/Formula/chuck.rb

30 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Chuck < Formula
desc "Concurrent, on-the-fly audio programming language"
2014-05-23 18:27:49 +00:00
homepage "http://chuck.cs.princeton.edu/"
url "http://chuck.cs.princeton.edu/release/files/chuck-1.3.5.2.tgz"
sha256 "e900b8545ffcb69c6d49354b18c43a9f9b8f789d3ae822f34b408eaee8d3e70b"
2014-11-14 19:31:10 +00:00
bottle do
2016-02-23 17:33:18 +00:00
cellar :any_skip_relocation
2016-11-05 05:56:03 +00:00
rebuild 1
sha256 "4322101b14bb7c235ddd6fb2f102a8f182acb0106ece63bc53d64f3a77224998" => :sierra
sha256 "4322101b14bb7c235ddd6fb2f102a8f182acb0106ece63bc53d64f3a77224998" => :el_capitan
sha256 "c34fd149bd7c3a419087f963ecea469b953b5eebd8099457fbf5ed2bb0876357" => :yosemite
2014-11-14 19:31:10 +00:00
end
depends_on :xcode => :build
def install
# issue caused by the new macOS version, patch submitted upstream
# to the chuck-dev mailing list
inreplace "src/makefile.osx", '10\.(6|7|8|9|10|11)(\\.[0-9]+)?', MacOS.version
2014-05-23 18:27:49 +00:00
system "make", "-C", "src", "osx"
bin.install "src/chuck"
2015-07-31 15:36:37 +00:00
pkgshare.install "examples"
end
test do
assert_match /probe \[success\]/m, shell_output("#{bin}/chuck --probe 2>&1")
end
end