mp3wrap: test added
Closes Homebrew/homebrew#36850. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
6bcbbf960f
commit
099285fcef
1 changed files with 12 additions and 7 deletions
|
@ -1,9 +1,7 @@
|
|||
require 'formula'
|
||||
|
||||
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'
|
||||
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
|
||||
|
@ -13,9 +11,16 @@ class Mp3wrap < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}"
|
||||
system "make install"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue