aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-02-22 20:36:24 +0100
committerMike McQuaid2015-02-23 14:33:27 +0000
commit7d3c97728f8e6b5562835fa648309a2e2030d9b2 (patch)
tree2996af4fd6fca25a130f70bd7d7f745fbc261ab8 /Library/Formula
parent0525d23171c92541491e6c38b919f498c6fc73fd (diff)
downloadhomebrew-7d3c97728f8e6b5562835fa648309a2e2030d9b2.tar.bz2
aacgain: test added
Closes #37079. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aacgain.rb20
1 files changed, 13 insertions, 7 deletions
diff --git a/Library/Formula/aacgain.rb b/Library/Formula/aacgain.rb
index 7546f5787..49579cd85 100644
--- a/Library/Formula/aacgain.rb
+++ b/Library/Formula/aacgain.rb
@@ -1,17 +1,23 @@
-require 'formula'
-
class Aacgain < Formula
- homepage 'http://aacgain.altosdesign.com/'
+ 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'
+ url "http://aacgain.altosdesign.com/alvarez/aacgain-1.8.tar.bz2"
+ sha1 "331039c4231e4d85ae878795ce3095dd96dcbfdb"
def install
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make install"
+ 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