diff options
| author | Baptiste Fontaine | 2015-01-01 18:21:24 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-01 21:34:12 +0000 |
| commit | b88e9105568f158db1abf8393712056d19ff0ecd (patch) | |
| tree | 328b03d2fbdd771bae75418588645e53c080d7f8 /Library/Formula | |
| parent | 87e1baceba5b111d349eed4a93fd42dc0daf6119 (diff) | |
| download | homebrew-b88e9105568f158db1abf8393712056d19ff0ecd.tar.bz2 | |
mp3cat: modernize + test added
Closes #35428.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mp3cat.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Library/Formula/mp3cat.rb b/Library/Formula/mp3cat.rb index 12e7b487e..9c4180ea2 100644 --- a/Library/Formula/mp3cat.rb +++ b/Library/Formula/mp3cat.rb @@ -1,12 +1,14 @@ -require 'formula' - class Mp3cat < Formula - homepage 'http://tomclegg.net/mp3cat' - url 'http://tomclegg.net/software/mp3cat-0.4.tar.gz' - sha1 '442d2b2b546fec4535c2aa892a8fc61db21eb917' + homepage "http://tomclegg.net/mp3cat" + url "http://tomclegg.net/software/mp3cat-0.4.tar.gz" + sha1 "442d2b2b546fec4535c2aa892a8fc61db21eb917" def install system "make" - bin.install %W( mp3cat mp3log mp3log-conf mp3dirclean mp3http mp3stream-conf ) + bin.install %w(mp3cat mp3log mp3log-conf mp3dirclean mp3http mp3stream-conf) + end + + test do + pipe_output("#{bin}/mp3cat -v --noclean - -", test_fixtures("test.mp3")) end end |
