homebrew-core/Formula/chuck.rb
2018-10-22 22:02:23 +02:00

31 lines
1 KiB
Ruby

class Chuck < Formula
desc "Concurrent, on-the-fly audio programming language"
homepage "http://chuck.cs.princeton.edu/"
url "http://chuck.cs.princeton.edu/release/files/chuck-1.4.0.0.tgz"
sha256 "2caee332b8d48e2fddad0f8a0a1811b6cf4c5afab73ae8a17b85ec759cce27ac"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "3dea1fba4982d2770ccfb10c90363a1a1342281900814dc9d617a41b758bc479" => :mojave
sha256 "8b3feed2d5a3773ee2479a05af8628e83a5fb8e355f3e269202c72fa7ff80258" => :high_sierra
sha256 "17e8770cd31f86a3cb890bca8c648a2e7321511130016b47b67b08eaceeab2b9" => :sierra
end
depends_on :xcode => :build
def install
# Support for newer macOS versions
inreplace "src/core/makefile.x/makefile.osx",
"10\\.(6|7|8|9|10|11|12|13)",
"10\\.(6|7|8|9|10|11|12|1[0-9])"
system "make", "-C", "src", "osx"
bin.install "src/chuck"
pkgshare.install "examples"
end
test do
assert_match "device", shell_output("#{bin}/chuck --probe 2>&1")
end
end