Skip to content

Commit

Permalink
aacgain: test added
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#37079.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Feb 23, 2015
1 parent a09ebfb commit e484f4e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Formula/aacgain.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e484f4e

Please sign in to comment.