2012-05-13 15:47:11 +00:00
|
|
|
class Alac < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Basic decoder for Apple Lossless Audio Codec files (ALAC)"
|
2015-05-22 19:51:22 +00:00
|
|
|
homepage "https://web.archive.org/web/20150319040222/http://craz.net/programs/itunes/alac.html"
|
|
|
|
url "https://web.archive.org/web/20150510210401/http://craz.net/programs/itunes/files/alac_decoder-0.2.0.tgz"
|
|
|
|
sha256 "7f8f978a5619e6dfa03dc140994fd7255008d788af848ba6acf9cfbaa3e4122f"
|
|
|
|
|
2016-02-15 23:09:29 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-26 05:27:45 +00:00
|
|
|
sha256 "3c833c71834ea65498c761d4fe444a26e97e107433de526ab55ad1fb0d36a2ba" => :sierra
|
2016-02-15 23:09:29 +00:00
|
|
|
sha256 "4cb85c125553c6c2a49576790c5be5e0b89096569131df3b8576f3499e65ef5a" => :el_capitan
|
|
|
|
sha256 "a3a54a254a147f3a1173870bdd2e9399043b3e506d8c04383f99cf3ce67a4fca" => :yosemite
|
|
|
|
sha256 "20cca431ce69d7eb2e5d894ebbfffdbc633eef2b3447be6d0afdb7c25cac8c0e" => :mavericks
|
|
|
|
end
|
|
|
|
|
2012-05-13 15:47:11 +00:00
|
|
|
def install
|
|
|
|
system "make", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
|
2015-05-22 19:51:22 +00:00
|
|
|
bin.install "alac"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-09-26 16:10:41 +00:00
|
|
|
sample = test_fixtures("test.m4a")
|
|
|
|
assert_equal "file type: mp4a\n", shell_output("#{bin}/alac -t #{sample}", 100)
|
2012-05-13 15:47:11 +00:00
|
|
|
end
|
|
|
|
end
|