homebrew-core/Formula/musepack.rb
2019-01-25 14:42:08 +00:00

39 lines
1.4 KiB
Ruby

class Musepack < Formula
desc "Audio compression format and tools"
homepage "https://www.musepack.net/"
url "https://files.musepack.net/source/musepack_src_r475.tar.gz"
version "r475"
sha256 "a4b1742f997f83e1056142d556a8c20845ba764b70365ff9ccf2e3f81c427b2b"
bottle do
cellar :any
sha256 "ec10306392c8b871cb2d9fa2fe4920c6de43e8bdebb8f35095bf853031c098e9" => :mojave
sha256 "717935f1cb28a6f4b19fb8c9e8e606aa3156479539a809ce6e69ebf3016c2166" => :high_sierra
sha256 "26b774c3ca9b6c43cfdc868d71e635d292bcf218d0577fbc271be5138e8ef3c0" => :sierra
sha256 "33e4734a8714484a2c506241d91ab45145c19228abe51d355e0cbd60020ee11a" => :el_capitan
sha256 "2e6bad894063f1178ff43b5cd10a899b82baa757228c3a51488793a4a22acdf2" => :yosemite
sha256 "4ff9d23d8631300ff2619d9f1a7d99e07f8636c6e8d8db8dbf1335a21c1f7e27" => :mavericks
end
depends_on "cmake" => :build
depends_on "libcuefile"
depends_on "libreplaygain"
resource "test-mpc" do
url "https://trac.ffmpeg.org/raw-attachment/ticket/1160/decodererror.mpc"
sha256 "b16d876b58810cdb7fc06e5f2f8839775efeffb9b753948a5a0f12691436a15c"
end
def install
system "cmake", ".", *std_cmake_args
system "make", "install"
lib.install "libmpcdec/libmpcdec.dylib"
end
test do
resource("test-mpc").stage do
assert_match(/441001 samples decoded in/,
shell_output("#{bin}/mpcdec decodererror.mpc 2>&1"))
end
end
end