2011-03-10 05:11:03 +00:00
|
|
|
class Aacgain < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "AAC-supporting version of mp3gain"
|
2015-02-22 19:36:24 +00:00
|
|
|
homepage "http://aacgain.altosdesign.com/"
|
2013-01-20 17:31:19 +00:00
|
|
|
# This server will autocorrect a 1.9 url back to this 1.8 tarball.
|
|
|
|
# The 1.9 version mentioned on the website is pre-release, so make
|
|
|
|
# sure 1.9 is actually out before updating.
|
2013-12-14 18:13:11 +00:00
|
|
|
# See: https://github.com/Homebrew/homebrew/issues/16838
|
2015-02-22 19:36:24 +00:00
|
|
|
url "http://aacgain.altosdesign.com/alvarez/aacgain-1.8.tar.bz2"
|
|
|
|
sha1 "331039c4231e4d85ae878795ce3095dd96dcbfdb"
|
2010-03-12 01:17:12 +00:00
|
|
|
|
2015-02-23 08:39:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "a90e244d0c89d787d1687ef2adb482624f6d2bb8" => :yosemite
|
|
|
|
sha1 "0a5c772e3ca281678d468dec7757df7517f9ae1e" => :mavericks
|
|
|
|
sha1 "98f1d3415005700417fc8116d0428a0df975b2e4" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2010-03-12 01:17:12 +00:00
|
|
|
def install
|
2015-02-22 19:36:24 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2012-07-26 05:38:15 +00:00
|
|
|
"--prefix=#{prefix}"
|
2015-02-22 19:36:24 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# aacgain modifies files in-place
|
|
|
|
# See: https://github.com/Homebrew/homebrew/pull/37080
|
|
|
|
cp test_fixtures("test.mp3"), "test.mp3"
|
|
|
|
system "#{bin}/aacgain", "test.mp3"
|
2010-03-12 01:17:12 +00:00
|
|
|
end
|
|
|
|
end
|