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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "2bb8e27aa8f8434a4861fdbc70adb9cb4b47e1dfe472910d62d6042cb80a2ee1"
|
2010-03-12 01:17:12 +00:00
|
|
|
|
2015-02-23 08:39:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "72ceb23c5d6c6a474470873eb42c7adabc8b723d4e828a6408a9c5f9ea915d70" => :yosemite
|
|
|
|
sha256 "29b50db18863bba43907eeabac5221005cc1b2c733ef0f73efa2ff6264ff6bc0" => :mavericks
|
|
|
|
sha256 "b4004c239d2443b4278b09222685ff19b8ca1b0dc8a39903db85966f4d57c1ab" => :mountain_lion
|
2015-02-23 08:39:35 +00:00
|
|
|
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
|