forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaacgain.rb
31 lines (28 loc) · 1.09 KB
/
aacgain.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Aacgain < Formula
desc "AAC-supporting version of mp3gain"
homepage "http://aacgain.altosdesign.com/"
# 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.
# See: https://github.com/Homebrew/homebrew/issues/16838
url "http://aacgain.altosdesign.com/alvarez/aacgain-1.8.tar.bz2"
sha1 "331039c4231e4d85ae878795ce3095dd96dcbfdb"
bottle do
cellar :any
sha1 "a90e244d0c89d787d1687ef2adb482624f6d2bb8" => :yosemite
sha1 "0a5c772e3ca281678d468dec7757df7517f9ae1e" => :mavericks
sha1 "98f1d3415005700417fc8116d0428a0df975b2e4" => :mountain_lion
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
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"
end
end