homebrew-core/Formula/mp3wrap.rb
Baptiste Fontaine 099285fcef mp3wrap: test added
Closes Homebrew/homebrew#36850.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-16 13:05:14 +00:00

26 lines
873 B
Ruby

class Mp3wrap < Formula
homepage "http://mp3wrap.sourceforge.net/"
url "https://downloads.sourceforge.net/project/mp3wrap/mp3wrap/mp3wrap%200.5/mp3wrap-0.5-src.tar.gz"
sha1 "458b7e9dce5d7a867b1be73554dd14043a4cd421"
bottle do
cellar :any
sha1 "5569a9dbeabf76247ef2e98fdeb6f0c8fda4c188" => :mavericks
sha1 "691e84d652214da84193bd6ca194cf308fed986d" => :mountain_lion
sha1 "bd461a4b06439c0fb736fd5546607e5261d9130b" => :lion
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
source = test_fixtures("test.mp3")
system "#{bin}/mp3wrap", "#{testpath}/t.mp3", source, source
assert File.exist? testpath/"t_MP3WRAP.mp3"
end
end